Hello,
I've run into a very weird problem here. I'm using an external USB
harddisk and when I plug it, it's correctly detected:
usb 4-1: new high speed USB device using ehci_hcd and address 2
usb 4-1: new device found, idVendor=059b, idProduct=007e
usb 4-1: new device strings: Mfr=56, Product=63, SerialNumber=88
usb 4-1: Product: Iomega HDD USB 2.0 Drive
usb 4-1: Manufacturer: Iomega
usb 4-1: SerialNumber: 03000B5AE5F4
usb 4-1: configuration #1 chosen from 1 choice
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
scsi 0:0:0:0: Direct-Access ST325082 3A PQ: 0 ANSI: 0
usb-storage: device scan complete
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 33 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 33 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
If I try to mount /dev/sda1, I got the following error:
# mount /dev/sda1 /mnt
mount: /dev/sda1 already mounted or /mnt busy
And it is really not mounted:
# grep sda /proc/mounts
#
Looking at /proc/partitions I identified that /dev/sda1 is "the same" as
/dev/dm-6:
8 0 244198584 sda
8 1 244196001 sda1
253 5 244198584 dm-5
253 6 244196001 dm-6
If I try to mount /dev/dm-6, it works:
# mount /dev/dm-6 /mnt
# cat /proc/mounts | grep mnt
/dev/dm-6 /mnt ext3 rw,data=ordered 0 0
#
If I unplug the disk and plug it again, it will be detected as /dev/sdb:
usb 4-1: USB disconnect, address 2
usb 4-1: new high speed USB device using ehci_hcd and address 3
usb 4-1: new device found, idVendor=059b, idProduct=007e
usb 4-1: new device strings: Mfr=56, Product=63, SerialNumber=88
usb 4-1: Product: Iomega HDD USB 2.0 Drive
usb 4-1: Manufacturer: Iomega
usb 4-1: SerialNumber: 03000B5AE5F4
usb 4-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb 4-1: reset high speed USB device using ehci_hcd and address 3
scsi 1:0:0:0: Direct-Access ST325082 3A PQ: 0 ANSI: 0
sd 1:0:0:0: [sdb] 488397168 512-byte hardware sectors (250059 MB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 33 00 00 00
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] 488397168 512-byte hardware sectors (250059 MB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 33 00 00 00
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 1:0:0:0: [sdb] Attached SCSI disk
sd 1:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
Mounting /dev/sdb1 works as expected:
# mount /dev/sdb1 /mnt
# cat /proc/mounts | grep mnt
/dev/sdb1 /mnt ext3 rw,data=ordered 0 0
But, if I try to mount /dev/dm-6 now, it doesn't work:
# mount /dev/dm-6 /mnt
mount: you must specify the filesystem type
And I get a lot of error messages on dmesg:
scsi 0:0:0:0: rejecting I/O to dead device
Buffer I/O error on device dm-6, logical block 244195904
Buffer I/O error on device dm-6, logical block 244195905
Buffer I/O error on device dm-6, logical block 244195906
Buffer I/O error on device dm-6, logical block 244195907
scsi 0:0:0:0: rejecting I/O to dead device
Buffer I/O error on device dm-6, logical block 244195904
scsi 0:0:0:0: rejecting I/O to dead device
Buffer I/O error on device dm-6, logical block 244195905
scsi 0:0:0:0: rejecting I/O to dead device
Buffer I/O error on device dm-6, logical block 244195906
scsi 0:0:0:0: rejecting I/O to dead device
Buffer I/O error on device dm-6, logical block 244195907
scsi 0:0:0:0: rejecting I/O to dead device
Buffer I/O error on device dm-6, logical block 244195904
scsi 0:0:0:0: rejecting I/O to dead device
Buffer I/O error on device dm-6, logical block 244195905
scsi 0:0:0:0: rejecting I/O to dead device
scsi 0:0:0:0: rejecting I/O to dead device
scsi 0:0:0:0: rejecting I/O to dead device
scsi 0:0:0:0: rejecting I/O to dead device
scsi 0:0:0:0: rejecting I/O to dead device
I'm following Factory (Beta-3 on PPC: 2.6.22.5-4-default #1 2007/08/27
09:51:45 UTC ppc ppc ppc GNU/Linux), and I don't remember seeing this problem,
let's say, 20 days ago. I'd appreciate any help to debug this, I'll start
by trying with older kernels.
Below, the full dmesg for reference.
Thanks!
Leonardo
Using PowerMac machine description
Total memory = 1024MB; using 2048kB for hash table (at cfe00000)
Linux version 2.6.22.5-4-default (geeko@buildhost) (gcc version 4.2.1
(SUSE Linux)) #1 2007/08/27 09:51:45 UTC
Found initrd at 0xc4100000:0xc4390c00
Found UniNorth memory controller & host bridge @ 0xf8000000 revision: 0xd2
Mapped at 0xfdfc0000
Found a Intrepid mac-io controller, rev: 0, mapped at 0xfdf40000
Processor NAP mode on idle enabled.
PowerMac motherboard: Mac mini
Entering add_active_range(0, 0, 262144) 0 entries of 256 used
Found UniNorth PCI host bridge at 0x00000000f0000000. Firmware bus number: 0->0
Found UniNorth PCI host bridge at 0x00000000f2000000. Firmware bus number: 0->0
Found UniNorth PCI host bridge at 0x00000000f4000000. Firmware bus number: 0->0
via-pmu: Server Mode is disabled
PMU driver v2 initialized for Core99, firmware: 55
nvram: Checking bank 0...
nvram: gen0=228, gen1=229
nvram: Active bank is: 1
nvram: OF partition at 0x410
nvram: XP partition at 0x1020
nvram: NR partition at 0x1120
Top of RAM: 0x40000000, Total RAM: 0x40000000
Memory hole size: 0MB
Zone PFN ranges:
DMA 0 -> 196608
Normal 196608 -> 196608
HighMem 196608 -> 262144
early_node_map[1] active PFN ranges
0: 0 -> 262144
On node 0 totalpages: 262144
DMA zone: 1536 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 195072 pages, LIFO batch:31
Normal zone: 0 pages used for memmap
HighMem zone: 512 pages used for memmap
HighMem zone: 65024 pages, LIFO batch:15
Built 1 zonelists. Total pages: 260096
Kernel command line: root=/dev/vg/root quiet sysrq=1
mpic: Setting up MPIC " MPIC 1 " version 1.2 at 80040000, max 4 CPUs
mpic: ISU size: 64, shift: 6, mask: 3f
mpic: Initializing for 64 sources
PID hash table entries: 4096 (order: 12, 16384 bytes)
GMT Delta read from XPRAM: 0 minutes, DST: off
time_init: decrementer frequency = 41.620997 MHz
time_init: processor frequency = 1416.666661 MHz
Console: colour dummy device 80x25
console handover: boot [udbg0] -> real [tty0]
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
High memory: 262144k
Memory: 1028688k/1048576k available (4392k kernel code, 281256k
reserved, 164k data, 467k bss, 208k init)
Calibrating delay loop... 83.20 BogoMIPS (lpj=166400)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
device-tree: Duplicate name in /cpus/PowerPC,G4@0, renamed to "l2-cache#1"
NET: Registered protocol family 16
KeyWest i2c @0xf8001003 irq 42 /uni-n@f8000000/i2c@f8001000
channel 0 bus <multibus>
channel 1 bus <multibus>
KeyWest i2c @0x80018000 irq 26 /pci@f2000000/mac-io@17/i2c@18000
channel 0 bus <multibus>
PMU i2c /pci@f2000000/mac-io@17/via-pmu@16000/pmu-i2c
channel 1 bus <multibus>
channel 2 bus <multibus>
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 0 of device 0001:10:18.0
PCI: Cannot allocate resource region 0 of device 0001:10:19.0
Apple USB OHCI 0001:10:18.0 disabled by firmware
Apple USB OHCI 0001:10:19.0 disabled by firmware
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
Unpacking initramfs... done
Freeing initrd memory: 2627k freed
Thermal assist unit not available
audit: initializing netlink socket (disabled)
audit(1188436210.328:1): initialized
highmem bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: Enabling device 0000:00:10.0 (0006 -> 0007)
radeonfb (0000:00:10.0): Invalid ROM signature 0 should be 0xaa55
radeonfb: Retrieved PLL infos from Open Firmware
radeonfb: Reference=27.00 MHz (RefDiv=12) Memory=190.00 Mhz, System=250.00 MHz
radeonfb: PLL min 12000 max 35000
i2c-adapter i2c-2: unable to read EDID block.
i2c-adapter i2c-2: unable to read EDID block.
i2c-adapter i2c-2: unable to read EDID block.
radeonfb: Monitor 1 type CRT found
radeonfb: EDID probed
radeonfb: Monitor 2 type CRT found
radeonfb: EDID probed
Console: switching to colour frame buffer device 160x64
radeonfb (0000:00:10.0): ATI Radeon Yb
Generic RTC Driver v1.07
Macintosh non-volatile memory driver v1.1
pmac_zilog: 0.6 (Benjamin Herrenschmidt