Re: etch: cannot mount usb hd
On 24/03/2008, Jörg Becker <[EMAIL PROTECTED]> wrote: > No, I don't find any error or warning message about my sdc2, but from > device-mapper, in the kernel logs. > Mar 19 16:19:41 gandalf kernel: Filesystem "dm-0": Disabling barriers, not > supported by the underlying device This sounds as a harmless warning. > Mar 19 16:19:41 gandalf kernel: device-mapper: table: 254:8: linear: > dm-linear: Device lookup failed > Mar 19 16:19:41 gandalf kernel: device-mapper: ioctl: error adding target to > table These sound as something wrong, but I don't know anything about the device mapper, so I'm not sure if they are relevant to your problem. Have you googled for this errors? Have you tried to disabled the device mapper (if nothing depends on it)? Sometimes it helps to boot from a CD (e.g., Debian installer, Knoppix), and see what happens with a different configuration. If the error is still there you can concentrate on the similarities between your configuration and that of the CD; if the error goes away you concentrate on the differences. Regards, Bernardo
Re: etch: cannot mount usb hd
On Sunday 23 March 2008 19:49, Bernardo Dal Seno wrote: > On 19/03/2008, Jörg Becker <[EMAIL PROTECTED]> wrote: > > I also tried noauto in fstab an manually mount after boot. But with the > > same result: device is busy. > > Does any error or warning message appear in kernel logs? Either at > startup, or when you try to mount the device? > No, I don't find any error or warning message about my sdc2, but from device-mapper, in the kernel logs. Mar 19 16:19:41 gandalf kernel: SCSI device sdc: 586072367 512-byte hdwr sectors (300069 MB) Mar 19 16:19:41 gandalf kernel: sdc: Write Protect is off Mar 19 16:19:41 gandalf kernel: sdc: Mode Sense: 03 00 00 00 Mar 19 16:19:41 gandalf kernel: sdc: assuming drive cache: write through Mar 19 16:19:41 gandalf kernel: SCSI device sdc: 586072367 512-byte hdwr sectors (300069 MB) Mar 19 16:19:41 gandalf kernel: sdc: Write Protect is off Mar 19 16:19:41 gandalf kernel: sdc: Mode Sense: 03 00 00 00 Mar 19 16:19:41 gandalf kernel: sdc: assuming drive cache: write through Mar 19 16:19:41 gandalf kernel: sdc: sdc1 sdc2 sdc3 Mar 19 16:19:41 gandalf kernel: sd 0:0:0:0: Attached scsi disk sdc Nothing about mounting sdc2 or /media/backup. But after device scan I have some errors: Mar 19 16:19:41 gandalf kernel: usb-storage: device scan complete Mar 19 16:19:41 gandalf kernel: Filesystem "dm-0": Disabling barriers, not supported by the underlying device Mar 19 16:19:41 gandalf kernel: loop: loaded (max 8 devices) Mar 19 16:19:41 gandalf kernel: device-mapper: table: 254:8: linear: dm-linear: Device lookup failed Mar 19 16:19:41 gandalf kernel: device-mapper: ioctl: error adding target to table Mar 19 16:19:41 gandalf kernel: device-mapper: table: 254:8: linear: dm-linear: Device lookup failed ...repeated some times... Mar 19 16:19:41 gandalf kernel: device-mapper: ioctl: error adding target to table Mar 19 16:19:41 gandalf kernel: device-mapper: table: 254:11: linear: dm-linear: Device lookup failed Mar 19 16:19:41 gandalf kernel: device-mapper: ioctl: error adding target to table ...repeated some times... Mar 19 16:19:41 gandalf kernel: XFS mounting filesystem sda1 Mar 19 16:19:41 gandalf kernel: Ending clean XFS mount for filesystem: sda1 Mar 19 16:19:41 gandalf kernel: Filesystem "dm-5": Disabling barriers, not supported by the underlying device Mar 19 16:19:41 gandalf kernel: XFS mounting filesystem dm-5 Mar 19 16:19:41 gandalf kernel: Ending clean XFS mount for filesystem: dm-5 Mar 19 16:19:41 gandalf kernel: Filesystem "dm-4": Disabling barriers, not supported by the underlying device Mar 19 16:19:41 gandalf kernel: XFS mounting filesystem dm-4 Mar 19 16:19:41 gandalf kernel: Ending clean XFS mount for filesystem: dm-4 Mar 19 16:19:41 gandalf kernel: Filesystem "dm-1": Disabling barriers, not supported by the underlying device Mar 19 16:19:41 gandalf kernel: XFS mounting filesystem dm-1 Mar 19 16:19:41 gandalf kernel: Ending clean XFS mount for filesystem: dm-1 Mar 19 16:19:41 gandalf kernel: Filesystem "dm-2": Disabling barriers, not supported by the underlying device Mar 19 16:19:41 gandalf kernel: XFS mounting filesystem dm-2 Mar 19 16:19:41 gandalf kernel: Ending clean XFS mount for filesystem: dm-2 Mar 19 16:19:41 gandalf kernel: Filesystem "dm-6": Disabling barriers, not supported by the underlying device Mar 19 16:19:41 gandalf kernel: XFS mounting filesystem dm-6 Mar 19 16:19:41 gandalf kernel: Ending clean XFS mount for filesystem: dm-6 Mar 19 16:19:41 gandalf kernel: Filesystem "dm-7": Disabling barriers, not supported by the underlying device Mar 19 16:19:41 gandalf kernel: XFS mounting filesystem dm-7 Mar 19 16:19:41 gandalf kernel: Ending clean XFS mount for filesystem: dm-7 Mar 19 16:19:41 gandalf kernel: Adding 6152184k swap on /dev/mapper/gandalf-swap_1. Priority:-1 extents:1 across:6152184k After resetting my usb hd I get: Mar 19 17:21:01 gandalf kernel: usb 6-1: USB disconnect, address 2 Mar 19 17:21:11 gandalf kernel: usb 6-1: new high speed USB device using ehci_hcd and address 8 Mar 19 17:21:11 gandalf kernel: usb 6-1: configuration #1 chosen from 1 choice Mar 19 17:21:11 gandalf kernel: scsi6 : SCSI emulation for USB Mass Storage devices Mar 19 17:21:11 gandalf kernel: usb-storage: device found at 8 Mar 19 17:21:11 gandalf kernel: usb-storage: waiting for device to settle before scanning Mar 19 17:21:16 gandalf kernel: Vendor: WDC WD30 Model: 00JB-00KFA0 Rev: 08.0 Mar 19 17:21:16 gandalf kernel: Type: Direct-Access ANSI SCSI revision: 00 Mar 19 17:21:16 gandalf kernel: SCSI device sdf: 586072367 512-byte hdwr sectors (300069 MB) Mar 19 17:21:16 gandalf kernel: sdf: Write Protect is off Mar 19 17:21:16 gandalf kernel: sdf: Mode Sense: 03 00 00 00 Mar 19 17:21:16 gandalf kernel: sdf: assuming drive cache: write through Mar 19 17:21:16 gandalf kernel: SCSI device sdf: 586072367 512-byte hdwr sectors (300069 MB) Mar 19 17:21:16 gandalf kernel: sdf: Write Protect is off Mar 19 17:21:16 gandalf
Re: etch: cannot mount usb hd
On 19/03/2008, Jörg Becker <[EMAIL PROTECTED]> wrote: > I also tried noauto in fstab an manually mount after boot. But with the same > result: device is busy. Does any error or warning message appear in kernel logs? Either at startup, or when you try to mount the device? Happy Easter Bernardo
Re: etch: cannot mount usb hd
On Wednesday 19 March 2008 19:15, Bob McGowan wrote: > Have you tried unmounting it, perhaps using the -n (don't write mtab) or > -f (force unmount, usually useful with unreachable NFS server mounts, > but who knows?). umount -n /dev/sdc2 umount: /dev/sdc2: not mounted umount -f /dev/sdc2 umount2: Invalid argument because not nfs? umount: /dev/sdc2: not mounted I also tried noauto in fstab an manually mount after boot. But with the same result: device is busy. Jörg
Re: etch: cannot mount usb hd
Jörg Becker wrote: On Tuesday 18 March 2008 00:11, Bernardo Dal Seno wrote: Does "cat /proc/mount" produce the same result? -- Can you mount it read-only (-o ro)? mount /media/backup/: mount: /dev/disk/by-id/usb-WDC_WD30_00JB-00KFA0_0-part2 already mounted or /media/backup busy sudo mount -o ro /dev/sdc2 /mnt/ mount: /dev/sdc2 already mounted or /mnt/tmp/ busy Jörg Have you tried unmounting it, perhaps using the -n (don't write mtab) or -f (force unmount, usually useful with unreachable NFS server mounts, but who knows?). This may clear the kernel's bad mount info and allow you to then mount the drive. Maybe. I hope this actually helps. -- Bob McGowan smime.p7s Description: S/MIME Cryptographic Signature
Re: etch: cannot mount usb hd
On Monday 17 March 2008 23:21, Ron Johnson wrote: > Maybe it's still spinning up during the first power-up attempt? If > so, and it gets external power, maybe turn it on first? I tried it without success. Jörg
Re: etch: cannot mount usb hd
On Tuesday 18 March 2008 00:11, Bernardo Dal Seno wrote: > Does "cat /proc/mount" produce the same result? > yes > Do you see any entry that you cannot identify as a disk you know > (beside the usual proc, sysfs...)? Maybe there is a node in /dev > referring to sdc with another name. > I think this looks good, but no usb hd rootfs / rootfs rw 0 0 none /sys sysfs rw 0 0 none /proc proc rw,nodiratime 0 0 udev /dev tmpfs rw 0 0 /dev/mapper/gandalf-root / xfs rw 0 0 /dev/mapper/gandalf-root /dev/.static/dev xfs rw 0 0 tmpfs /lib/init/rw tmpfs rw,nosuid 0 0 usbfs /proc/bus/usb usbfs rw,nosuid,nodev,noexec 0 0 tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0 devpts /dev/pts devpts rw,nosuid,noexec 0 0 /dev/sda1 /boot xfs rw 0 0 /dev/mapper/gandalf-home /home xfs rw 0 0 /dev/mapper/gandalf-tmp /tmp xfs rw 0 0 /dev/mapper/gandalf-usr /usr xfs rw 0 0 /dev/mapper/gandalf-var /var xfs rw 0 0 /dev/mapper/gandalf-opt /opt xfs rw 0 0 /dev/mapper/gandalf-shared_data /shared_data xfs rw 0 0 binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0 > > Can you read the disk? E.g. (probably to be done as root) > dd if=/dev/sdc of=/dev/null count=10 > dd if=/dev/sdc2 of=/dev/null count=10 > 10+0 records in 10+0 records out 5120 bytes (5.1 kB) copied, 8.6e-05 seconds, 59.5 MB/s > Can you mount it read-only (-o ro)? mount /media/backup/: mount: /dev/disk/by-id/usb-WDC_WD30_00JB-00KFA0_0-part2 already mounted or /media/backup busy sudo mount -o ro /dev/sdc2 /mnt/ mount: /dev/sdc2 already mounted or /mnt/tmp/ busy Jörg
Re: etch: cannot mount usb hd
On 17/03/2008, Jörg Becker <[EMAIL PROTECTED]> wrote: > I cannot mount an usb hd when it was connected while switching on my machine. > The message is the famous "already mounted or busy". I found many things in > google, but nothing matches my problem. > > symptoms: > - device is detected on startup (currently /dev/sdc with 3 partitions sdc1-3) > - mount -> usb hd not in list, so not mounted yet Does "cat /proc/mount" produce the same result? Do you see any entry that you cannot identify as a disk you know (beside the usual proc, sysfs...)? Maybe there is a node in /dev referring to sdc with another name. > - lsofs -> empty for both the device (/dev/sdc2) and the mount point > - tried different mount points (no shell / file manager blocks the mount > point > - sudo mount -a / open disk in konqueror-> "already mounted or busy" Can you read the disk? E.g. (probably to be done as root) dd if=/dev/sdc of=/dev/null count=10 dd if=/dev/sdc2 of=/dev/null count=10 Can you mount it read-only (-o ro)? Bernardo
Re: etch: cannot mount usb hd
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/17/08 12:04, Jörg Becker wrote: > Hello everyone, > > I cannot mount an usb hd when it was connected while switching on my machine. > The message is the famous "already mounted or busy". I found many things in > google, but nothing matches my problem. > > symptoms: > - device is detected on startup (currently /dev/sdc with 3 partitions sdc1-3) > - mount -> usb hd not in list, so not mounted yet > - lsofs -> empty for both the device (/dev/sdc2) and the mount point > - tried different mount points (no shell / file manager blocks the mount point > - sudo mount -a / open disk in konqueror-> "already mounted or busy" > > After restarting the usb hd I can mount its partitions without any problems. > This is true for both mounting via fstab entry (my backup partition should be > auto mounted on startup without any desktop support) and the user partition > which is auto mounted by kde. Maybe it's still spinning up during the first power-up attempt? If so, and it gets external power, maybe turn it on first? If power-thru-USB, maybe set it to noauto mount, and put the mount command in /etc/rc.local. - -- Ron Johnson, Jr. Jefferson LA USA "Working with women is a pain in the a**." My wife -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFH3u7wS9HxQb37XmcRAsoTAJ9Qhle3nP80V6XFnWA+KvC54LuBfACeM6Fz SIIjNKmLlapo5zEcbF5cZuo= =cWlR -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
etch: cannot mount usb hd
Hello everyone, I cannot mount an usb hd when it was connected while switching on my machine. The message is the famous "already mounted or busy". I found many things in google, but nothing matches my problem. symptoms: - device is detected on startup (currently /dev/sdc with 3 partitions sdc1-3) - mount -> usb hd not in list, so not mounted yet - lsofs -> empty for both the device (/dev/sdc2) and the mount point - tried different mount points (no shell / file manager blocks the mount point - sudo mount -a / open disk in konqueror-> "already mounted or busy" After restarting the usb hd I can mount its partitions without any problems. This is true for both mounting via fstab entry (my backup partition should be auto mounted on startup without any desktop support) and the user partition which is auto mounted by kde. Tanks for any help Jörg