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

Mario Vukelic mario.vukelic at dantian.org
Sat May 24 10:12:25 UTC 2008


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)





More information about the ubuntu-users mailing list