Discussion:
Can't mount ipod "mount: /dev/sdb2 is not a valid block device"
Fred Perloff
2004-02-16 15:07:15 UTC
Permalink
I have an ipod connected to the firewire card. When I try to mount it, I
receive the error "mount: /dev/sdb2 is not a valid block device"

I know the hardware is working, because the computer also boots into
Windows 2K, which connects to the ipod.

Any ideas where to look?

TIA,
Fred.

Kernel RedHat Fedora Core 1 2.4.22-1.2149
ieee1394 & libraw come from the Fedora source tree
OCHI

dmesg:
ohci1394: $Rev: 1010 $ Ben Collins <***@debian.org>
ohci1394_0: OHCI-1394 1.0 (PCI): IRQ=[10] MMIO=[e3001000-e30017ff] Max
Packet=[2048]
ieee1394: Node added: ID:BUS[0-00:1023] GUID[000a2700020a57bf]
ieee1394: Host added: ID:BUS[0-01:1023] GUID[001106000000350f]
SCSI subsystem driver Revision: 1.00
....
sbp2: $Rev: 1010 $ Ben Collins <***@debian.org>
scsi1 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Error logging into SBP-2 device - login failed
....

cat /proc/bus/ieee1394/devices:
Node[0-00:1023] GUID[000a2700020a57bf]:
Vendor ID: `Apple Computer, Inc.' [0x000a27]
Capabilities: 0x0083c0
Bus Options:
IRMC(0) CMC(0) ISC(0) BMC(0) PMC(0) GEN(0)
LSPD(2) MAX_REC(2048) CYC_CLK_ACC(255)
Unit Directory 0:
Vendor/Model ID: Apple Computer, Inc. [000a27] / iPod [000000]
Software Specifier ID: 00609e
Software Version: 010483
Length (in quads): 8
Node[0-01:1023] GUID[001106000000350f]:
Vendor ID: `Linux OHCI-1394' [0x004063]
Capabilities: 0x0083c0
Bus Options:
IRMC(1) CMC(1) ISC(1) BMC(0) PMC(0) GEN(0)
LSPD(2) MAX_REC(2048) CYC_CLK_ACC(0)
Host Node Status:
Host Driver : ohci1394
Nodes connected : 2
Nodes active : 2
SelfIDs received: 2
Irm ID : [0-01:1023]
BusMgr ID : [0-63:1023]
In Bus Reset : no
Root : yes
Cycle Master : yes
IRM : yes
Bus Manager : no

cat /proc/scsi/scsi:
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: TOSHIBA Model: DVD-ROM SD-M1612 Rev: 1004
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: TEAC Model: CD-W524E Rev: 1.0E
Type: CD-ROM ANSI SCSI revision: 02


lspci:

00:0c.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host
Controller (rev 46) (prog-if 10 [OHCI])
Subsystem: VIA Technologies, Inc. IEEE 1394 Host Controller

lsmod:
ide-scsi 11856 0
ieee1394 64100 0 [sbp2 ohci1394]
ohci1394 28456 0 (unused)
sbp2 20076 0 (unused)
scsi_mod 70792 4 [sg sr_mod sbp2 ide-scsi]
sg 30188 0 (autoclean)
sr_mod 16664 0 (autoclean)
--
Fred Perloff <***@mind.net>
Stefan Richter
2004-02-16 20:44:04 UTC
Permalink
If there is no other SCSI harddisk, use sda instead of sdb.
Post by Fred Perloff
ieee1394: sbp2: Error logging into SBP-2 device - login failed
Maybe the sbp2 driver wants to login faster than the iPod
accepts. In that case, try "modprobe -r sbp2; modprobe sbp2"
while the iPod is plugged in.

Looks like the 2.4.22 kernel doesn't play so well with iPods.
according to http://www.linux1394.org/view_device.php?id=652 .
If you can solve or work around it, we are certainly interested
in your findings.
Post by Fred Perloff
after attempting to mount /dev/sdb2, I see that sd_mod also loads.
Yes, it is auto-loaded when an sd* device file is accessed.
--
Stefan Richter
-=====-=-=-- --=- =----
http://arcgraph.de/sr/
Fred Perloff
2004-02-17 03:22:04 UTC
Permalink
Success. I have mounted the ipod.
Post by Stefan Richter
If there is no other SCSI harddisk, use sda instead of sdb.
Yes. Exactly right. Believe me, I had tried this before, but wasn't
having any success. I have a Disk-on-key (a USB storage device), that is
recognized as /dev/sda when it is plugged in.
Post by Stefan Richter
Post by Fred Perloff
ieee1394: sbp2: Error logging into SBP-2 device - login failed
Maybe the sbp2 driver wants to login faster than the iPod
accepts. In that case, try "modprobe -r sbp2; modprobe sbp2"
while the iPod is plugged in.
Looks like the 2.4.22 kernel doesn't play so well with iPods.
according to http://www.linux1394.org/view_device.php?id=652 .
If you can solve or work around it, we are certainly interested
in your findings.
It's working well now. modprobe sbp2. rescan-scsi-bus.sh. mount. I don't
truly understand what changed, but I can't blame the kernel.

Thanks for your help and interest
--
Fred Perloff <***@mind.net>
Stefan Richter
2004-02-17 10:16:01 UTC
Permalink
Post by Fred Perloff
It's working well now. modprobe sbp2. rescan-scsi-bus.sh. mount. I don't
truly understand what changed, but I can't blame the kernel.
Does it work only if you load sbp2 manually after you connected
the iPod? Or does it also work now with sbp2 pre-loaded or auto-
loaded at the moment when the iPod is connected?
--
Stefan Richter
-=====-=-=-- --=- =---=
http://arcgraph.de/sr/
Loading...