How To: Mounting a USB 2.0 Hard Drive to SUSE Linux

robert.pappas_at_gmail.com
Date: 04/30/05


Date: 30 Apr 2005 10:55:10 -0700

After much twiddling, I finally figured out how to get an external USB
2.0 Hard Drive to mount PROPERLY in SUSE Linux, and also automatically
re-mount correctly upon boot-up without causing fsck issues.

There have been just TONS of postings on the subject of USB drives and
Linux, and yet none suggestions worked for me.

What finally worked for me was making an entry in /etc/fstab EXACTLY
like this:

/dev/sda1 /usbdrive subfs
rw,exec,nosuid,nodev,sync,procuid,iocharset=utf8 0 0

(That's all one line, and be SURE to have the "0 0" at the end and not
"1 2" or anything else.)

I've counted no less than 11 other postings suggesting alternative
/etc/fstab entries, of which ZERO worked for ME. So, perhaps this is a
really touchy thing.

But, I've run into this problem on 3 different machines running various
versions of Suse Linux, and each having a different brand of USB
external drive. So, this solution can't be TOO uncommon.

And if this helps, here is some more information on the problem I had:

1) Went to the local computer hardware store, bought an external USB
Hard-Drive.
2) Plugged USB drive into SUSE Linux box.
3) Used the YAST Partitioner tool to format the drive as ext3. (I've
also tried Reiser and ext2)
4) The YAST Partitioner tool adds an entry to /etc/fstab to mount the
USB drive as a regular hard-drive.
5) Everything works fine, and I can access the drive just fine.
6) Upon next boot-up, I get a hard Linux crash with an error telling me
that one of my drives failed fsck.
7) Upon investigation, it seems that the Suse Linux bootup process is
trying to run fsck on my USB drive before the USB drivers have even
loaded. So no wonder there is a problem.
8) Disabling fsck in the /etc/fstab allowed Linux to at least boot, but
my drive still didn't mount properly and I could read/write to it.
9) I just assumed my USB drive was "somehow" not Linux compatible, so I
gave up for a while. But then I ran into this same problem on two
other Linux machines with different brands external USB drives. So, I
twiddled and twiddled and twiddled with settings in /etc/fstab until I
came up with just the right "magic" combination of things that made it
happy.

I hope this helps someone! :)

Robert Pappas



Relevant Pages

  • Re: Mount USB HDD to a certain /media/folder after boot
    ... SYNass IT Ubuntu / Linux wrote: ... the next character represents the order the drives are detected by linux ... disk - sda1 and sda2 for example. ... your disks is a good idea if you use automounting otherwise for your usb ...
    (Ubuntu)
  • [opensuse] Re: Large capacity USB external hard drive experiences please
    ... they will accept a return if the product doesn't work with Linux. ... I've owned two of the Maxtor OneTouch III drives - one of them suffered a ... USB, and I think Firewire. ... card never worked properly for me. ...
    (SuSE)
  • Re: wont recognise some of my usb flash drive
    ... when I put them into my Linux box they are not recognised at all. ... And other USB sticks work fine in both machines. ... In the Linux box, after plugging it in, do dmesg. ... Do get that bit right or your drives are toast!) ...
    (uk.comp.os.linux)
  • Re: USB Voodoo?
    ... You have to make a bootable CD and boot into DOS to use it to image ... USB drives. ... Ext2 and Linux swap partitions. ... my USB Linux drives, and has no problems with the Linux partition formats. ...
    (microsoft.public.windowsxp.general)
  • HIGHMEM slows down 2.6.11-rc3-bk7 machine
    ... disabled in BIOS, mainly USB/NET/FIREWIRE/SATA stuff. ... Linux agpgart interface v0.100 Dave Jones ... usbcore: registered new driver hub ... ehci_hcd 0000:00:1d.7: new USB bus registered, ...
    (Linux-Kernel)