Automounting a USB hard disk in Ubuntu server - how?
Chris G
cl at isbd.net
Tue Apr 29 16:43:22 UTC 2008
On Tue, Apr 29, 2008 at 03:50:25PM +0200, Mario Vukelic wrote:
> On Tue, 2008-04-29 at 14:36 +0100, Chris G wrote:
> >
> > I'm not convinced that things will get automounted (by default) in
> > Ubuntu Server, remember there isn't any GUI running.
>
> Google is your friend :) I searched for "mount an external usb disk in
> ubuntu server" (without the quotes):
>
>
> <http://www.google.com/search?q=mount+an+external+usb+disk+in+ubuntu
> +server>
>
> First hit: <http://ubuntuforums.org/showthread.php?t=245566>
>
> It seems you need to load module usb-storage. Do so with "sudo modprobe
> usb-storage", then plug in the drive and see whether it works. If so,
> you can enter "usb-storage" into /etc/modules to make it load on boot.
>
No, I already have usb-storage, it reports a little higher up dmesg, I
should have included more:-
[ 15.296000] Initializing USB Mass Storage driver...
[ 15.300000] scsi2 : SCSI emulation for USB Mass Storage devices
[ 15.328000] usb-storage: device found at 2
[ 15.328000] usb-storage: waiting for device to settle before scanning
[ 15.328000] usbcore: registered new interface driver usb-storage
[ 15.328000] USB Mass Storage support registered.
[ 20.328000] usb-storage: device scan complete
[ 20.328000] scsi 2:0:0:0: Direct-Access SAMSUNG HD501LJ PQ: 0 ANSI: 2 CCS
[ 20.328000] sd 2:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
[ 20.328000] sd 2:0:0:0: [sdb] Write Protect is off
[ 20.328000] sd 2:0:0:0: [sdb] Mode Sense: 00 38 00 00
[ 20.328000] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 20.332000] sd 2:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
[ 20.332000] sd 2:0:0:0: [sdb] Write Protect is off
[ 20.332000] sd 2:0:0:0: [sdb] Mode Sense: 00 38 00 00
[ 20.332000] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 20.332000] sdb:<7>eth0: no IPv6 routers present
[ 24.620000] Installing knfsd (copyright (C) 1996 okir at monad.swb.de).
[ 24.776000] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[ 24.780000] NFSD: starting 90-second grace period
[ 27.832000] sdb1
[ 27.832000] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 27.832000] sd 2:0:0:0: Attached scsi generic sg1 type 0
I don't think usb-storage has anything to do with *mounting* the disk
drive, it's just a driver that recognises the disk.
What I need is something to automount the drive after all the above
has happened.
--
Chris Green
More information about the ubuntu-users
mailing list