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

David Vincent dvincent at sleepdeprived.ca
Sun May 25 13:34:18 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> sna at WS222:~$ blkid
> /dev/sda1: UUID="D2C47460C47448AD" LABEL="WS222C_120GB" TYPE="ntfs"
> /dev/sda6: TYPE="swap" UUID="59dfd5da-748a-4f9f-99c3-5529c7c96204"
> /dev/sda7: LABEL="WS222_uROOT 7.10"
> UUID="edf0353d-b99b-41d6-b7aa-57fad83fab35" SEC_TYPE="ext2" TYPE="ext3"
> /dev/sda5: LABEL="WS222_uHOME"
> UUID="a27937eb-32e3-4774-88bd-27166fb722ea" SEC_TYPE="ext2" TYPE="ext3"
> /dev/sdb5: UUID="62A61C050DE7D73C" LABEL="LD142ntfs" TYPE="ntfs"
> /dev/sdb6: LABEL="LD142ext3" UUID="0f05abd4-500c-43b8-992d-71351e8aaa41"
> SEC_TYPE="ext2" TYPE="ext3"
> sna at WS222: ~$
>
>
> 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.  also you don't specify where to actually mount eh
partition - where do you want this mounted?

try this:

$ mkdir /media/NTFS1
$ sudo mount /dev/sdb5 /media/NTFS1

then...

$ mkdir /media/NTFS2
$ sudo mount /dev/sdb6 /media/NTFS2

they should be mounted in /media now and might even show up on the
desktop.  i believe you wanted them to mount on a specific folder on
boot?  the /dev/sdb5 and /dev/sdb6 designations can change (if your
system picks up a new USB drive before it sees this one while booting
for example) so if you want to make absolutely sure those get mounted to
the same spot each boot then you have to use the UUIDs in  your fstab file.

- -d

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIOWrafpRzWFIV0XMRAjIzAJ9j2y7vtueg174irqytVp354cogrgCcDw/e
ByTABB+7myBRFR51+YdNWnE=
=DxNO
-----END PGP SIGNATURE-----





More information about the ubuntu-users mailing list