Automount of external harddrive fails after install from USB CD drive

Bug #283903 reported by Henning Carstens
4
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

It's a USB hard drive with one ntfs partition. When pluggin in it says

Oct 15 19:02:45 fusel kernel: [ 6547.624017] usb 8-5: new high speed USB device using ehci_hcd and address 5
Oct 15 19:02:45 fusel kernel: [ 6547.777920] usb 8-5: configuration #1 chosen from 1 choice
Oct 15 19:02:45 fusel kernel: [ 6547.779031] scsi10 : SCSI emulation for USB Mass Storage devices
Oct 15 19:02:50 fusel kernel: [ 6552.835564] scsi 10:0:0:0: Direct-Access Maxtor 6 L200P0 BAH4 PQ: 0 ANSI: 0
Oct 15 19:02:50 fusel kernel: [ 6552.837657] sd 10:0:0:0: [sdb] 398297088 512-byte hardware sectors (203928 MB)
Oct 15 19:02:50 fusel kernel: [ 6552.839276] sd 10:0:0:0: [sdb] Write Protect is off
Oct 15 19:02:50 fusel kernel: [ 6552.841904] sd 10:0:0:0: [sdb] 398297088 512-byte hardware sectors (203928 MB)
Oct 15 19:02:51 fusel kernel: [ 6552.843525] sd 10:0:0:0: [sdb] Write Protect is off
Oct 15 19:02:51 fusel kernel: [ 6552.845605] sdb: sdb1
Oct 15 19:02:51 fusel kernel: [ 6552.876932] sd 10:0:0:0: [sdb] Attached SCSI disk
Oct 15 19:02:51 fusel kernel: [ 6552.877977] sd 10:0:0:0: Attached scsi generic sg2 type 0
Oct 15 19:02:51 fusel kernel: [ 6553.273407] UDF-fs: No partition found (1)
Oct 15 19:02:51 fusel kernel: [ 6553.317529] ISOFS: Unable to identify CD-ROM format.

So it seems the automounter thinks it's a cdrom drive. When I click on "hc extern" (the partition name) in Gnome's location bar, the two last lines repeat (UDF-fs etc.). There is also a error popup:

--
Cannot mount volume.
Invalid mount option when attempting to mount the volume 'hc extern'.
--

Manual mounting works:
# mount -v -t ntfs-3g /dev/sdb1 /media/hc\ extern/
(no message, it just works)

I'm using Ubuntu 8.10 beta. Please answer, if more info is needed. I don't know which program is responsible for automounting...

# uname -a
Linux fusel 2.6.27-7-generic #1 SMP Tue Oct 14 18:40:44 UTC 2008 i686 GNU/Linux

Revision history for this message
Connor Imes (ckimes) wrote :

Can you please post the output of the following commands with the drive plugged in, I think it may be conflicting with an entry in /etc/fstab

sudo fdisk -l
cat /etc/fstab
sudo blkid
mount

Revision history for this message
Richard Gash (rdgash) wrote :

I have the same problem, no automount of usb external drives, I can maually mount the drive okay using
mount -v -t vfat -o noatime /dev/sdb1 /media/sdb1. When plugging in the drive, popup appears saying, cannot mount volume, invalid mount option when attempting to mount the volume 'VOLNAME'
 results for requested info is attached

Revision history for this message
Henning Carstens (mail-henning-carstens) wrote :

Solution: I installed Ubuntu with a USB stick, probably with /dev/sdb1 as a device descriptor. So I had two lines for CD-ROM in /etc/fstab:

/dev/sdb1 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd0 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0

When I remove the first one (or add a # before it), everything works fine.

There even was a hint in the documentation (https://help.ubuntu.com/community/Installation/FromUSBStick), I did not see at first.

Thanks for the help.

Revision history for this message
Connor Imes (ckimes) wrote :

Since this is not an actual bug, I am setting it to Invalid (Closed) instead of Fix Released. Richard, you should file a help request on the Answers part of Launchpad, or on the Ubuntu Forums.
Thank you.

Revision history for this message
Richard Gash (rdgash) wrote : Re: [Bug 283903] Re: Automount of external harddrive with ntfs does not work

Thanks,
I was able to fix this by removing the cdrom definition for sdb1 in fstab. I
do respectively disagree about this not being a bug, I believe it to be an
installation related bug. The fstab was created from a fresh 8.10 beta
install from cdrom, the entry for sdb1 should not have been present in fstab
and was apparently placed there during the install process.
Thanks for you help,
Richard

On Thu, Oct 16, 2008 at 4:13 PM, Connor Imes <email address hidden> wrote:

> Since this is not an actual bug, I am setting it to Invalid (Closed)
> instead of Fix Released. Richard, you should file a help request on the
> Answers part of Launchpad, or on the Ubuntu Forums.
> Thank you.
>
> ** Changed in: ubuntu
> Status: Fix Released => Invalid
>
> --
> Automount of external harddrive with ntfs does not work
> https://bugs.launchpad.net/bugs/283903
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Ubuntu: Invalid
>
> Bug description:
> It's a USB hard drive with one ntfs partition. When pluggin in it says
>
> Oct 15 19:02:45 fusel kernel: [ 6547.624017] usb 8-5: new high speed USB
> device using ehci_hcd and address 5
> Oct 15 19:02:45 fusel kernel: [ 6547.777920] usb 8-5: configuration #1
> chosen from 1 choice
> Oct 15 19:02:45 fusel kernel: [ 6547.779031] scsi10 : SCSI emulation for
> USB Mass Storage devices
> Oct 15 19:02:50 fusel kernel: [ 6552.835564] scsi 10:0:0:0: Direct-Access
> Maxtor 6 L200P0 BAH4 PQ: 0 ANSI: 0
> Oct 15 19:02:50 fusel kernel: [ 6552.837657] sd 10:0:0:0: [sdb] 398297088
> 512-byte hardware sectors (203928 MB)
> Oct 15 19:02:50 fusel kernel: [ 6552.839276] sd 10:0:0:0: [sdb] Write
> Protect is off
> Oct 15 19:02:50 fusel kernel: [ 6552.841904] sd 10:0:0:0: [sdb] 398297088
> 512-byte hardware sectors (203928 MB)
> Oct 15 19:02:51 fusel kernel: [ 6552.843525] sd 10:0:0:0: [sdb] Write
> Protect is off
> Oct 15 19:02:51 fusel kernel: [ 6552.845605] sdb: sdb1
> Oct 15 19:02:51 fusel kernel: [ 6552.876932] sd 10:0:0:0: [sdb] Attached
> SCSI disk
> Oct 15 19:02:51 fusel kernel: [ 6552.877977] sd 10:0:0:0: Attached scsi
> generic sg2 type 0
> Oct 15 19:02:51 fusel kernel: [ 6553.273407] UDF-fs: No partition found (1)
> Oct 15 19:02:51 fusel kernel: [ 6553.317529] ISOFS: Unable to identify
> CD-ROM format.
>
> So it seems the automounter thinks it's a cdrom drive. When I click on "hc
> extern" (the partition name) in Gnome's location bar, the two last lines
> repeat (UDF-fs etc.). There is also a error popup:
>
> --
> Cannot mount volume.
> Invalid mount option when attempting to mount the volume 'hc extern'.
> --
>
> Manual mounting works:
> # mount -v -t ntfs-3g /dev/sdb1 /media/hc\ extern/
> (no message, it just works)
>
> I'm using Ubuntu 8.10 beta. Please answer, if more info is needed. I don't
> know which program is responsible for automounting...
>
> # uname -a
> Linux fusel 2.6.27-7-generic #1 SMP Tue Oct 14 18:40:44 UTC 2008 i686
> GNU/Linux
>

--
Richard D. Gash
<email address hidden>

Revision history for this message
Henning Carstens (mail-henning-carstens) wrote : Re: Automount of external harddrive with ntfs does not work

It's a duplicate of bug 150872 (https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/150872).

An I agree with Richard: It's a bug. Non-CD installations are getting more important due to "Netbooks" and cheap flash storage.

The installer even detected my CD-ROM, why didn't it detect that the USB stick is a removable device?

So in my opinion it's a bug and removing the line in /etc/fstab is only a workaround...

Revision history for this message
Connor Imes (ckimes) wrote :

Ahh, you are correct, I misread "I installed Ubuntu with a USB stick" for "I installed Ubuntu on a USB stick". I will mark this bug as a duplicate. Thank you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.