Mount USB HDD to a certain /media/folder after boot
SYNass IT Ubuntu / Linux
i-ubux at synass.net
Sun May 25 05:13:01 UTC 2008
On Sat, 2008-05-24 at 12:12 +0200, Mario Vukelic wrote:
> On Sat, 2008-05-24 at 10:55 +0200, Catalin David wrote:
> > I have an external NTFS formatted 500GB external USB drive which is not
> > always plugged in when I turn on the laptop. So... I was wondering if
> > there is any way to make it mount directly to a special folder in
> > /media (for example disk_).
>
> AFAICT, this should work automatically if the disk in question has a
> volume name. Seem the man page for tune2fs (hint: -L option)
>
> > I know that /etc/fstab takes care of these
> > details,
>
> Not for external devices, usually. They are mounted automatically (using
> pmount) by a combination of HAL, dbus, and udev (IIRC)
>
> > but I don't know whether it will also work for plugged in HDD
> > after the boot sequence, while running Ubuntu.
>
> Works for me (with disks that have a volume label)
Hi Mario & other intererested Ubuntians
I am (still) struggling with my external TCP-IP/USB HDD, here USB in
particular, too !
With GParted 0.3.6 I have created two partitions:
/dev/sdb5 - fs: ntfs - label: LD142ntfs
/dev/sdb6 - fs: ext3 - label: LD142ext3
vol_id is recognizing both and fstab got their entries with UUID's !!
One thing I noticed is a messy display of blkid with different
beginnings like following:
Some entries start with UUID ...
... others with TYPE ...
,,, and some with LABEL
and here is the blkid:
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 ??
TIA for any advice, help, hints and suggestions.
Cheers, svobi
More information about the ubuntu-users
mailing list