Mount USB HDD to a certain /media/folder after boot

SYNass IT Ubuntu / Linux i-ubux at synass.net
Mon May 26 06:10:48 UTC 2008


Hi David
Thanks for your efforts and feedbacks ! ;-)

On Sun, 2008-05-25 at 20:50 -0700, David Vincent wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Derek Broughton wrote:
> > David Vincent wrote:
> >
> >>> /dev/sdb6: LABEL="LD142ext3"
> UUID="0f05abd4-500c-43b8-992d-71351e8aaa41"
> >>>
> >>>
> >>> With "mount LD142ntfs" I am told, only root can do !
> >>> OK, with "sudo mount LD142ntfs" I am asked for the PWD and it
> seems
> >>> working but I can't find and see anything !!
> >>>
> >>> Trying the same with LD142ext3 ends following:
> >>> sna at WS222:~$ sudo mount -L LD142ext3
> >>> [sudo] password for sna:
> >>> mount: mount point /dev/sdb6 is not a directory
> >>> sna at WS222:~$
> >>>
> >>> What am I doing wrong here ??
> >> you appear to be trying to mount by disk label and not by UUID or
> the
> >> /dev/sdb* parition.
> >
> > OK...  What's wrong with that - it's the best method imo.  In fact,
> if he
> > doesn't have an entry for this in /etc/fstab, it should _always_ be
> getting
> > mounted to /media/LABEL (ie, in this case, /media/LD142ext3)
> 
> :)  for some reason i thought you couldn't mount by disklabel.
> whoops.  should have thought that one through some more, i have some
> removable drives i've labeled so they are mounted by name and show up
> nicely in nautilus.

Well, as already prescribed above, I was able to get LD142ntfs mounted !
The LD142ext3 indeed gave back a complaint about mount mountpoint is not
a directory !!
2 equal partitions with the ONLY difference in its disklabel behave
differently !?
Very curious !!! ;-|


> i believe back there somewhere he asked how to mount his two drives to
> the same spot on boot (not hotplugged) even though they were usb.
> since i've experienced my usb drives moving around (for example if i
> plug in a new drive in front of the others on the usb bus things
> shift) from /dev/sdc1 to /dev/sde1 and such i've learned it best to
> mount things by UUID.  so that's my advice.
> 
> sure you can label your drives and then let Ubuntu's automounting
> thingy mount them predictably, or you can find the UUIDs, add them to
> your /etc/fstab, and set it in stone.  i'm sure there are other ways
> to do this too.

In one of my recent posts I explained how and why I do prefer a human
readable identification:
I am able to recognize my well-structured nomenclature which makes
identification easier than 
these strange UUID's. Risking a typo with these elaborate UUID's is much
bigger too than with my 
own created and more logical namings. ;-D

> 
> i have a mythtv server and i use an external usb drive to store
> videos.  i need it to be mounted on the same folder every boot so
> that's what i have done and for me it always works.

Exactly, especially when it comes to some more complex environment and
periphery an 
easy and proper identification helps a lot to avoid problems and it also
makes problem 
solvings much easier  too !! ;-))

Cheers, svobi





More information about the ubuntu-users mailing list