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

Owen Townend owen.townend at gmail.com
Tue May 27 03:56:46 UTC 2008


On 26/05/2008, David Vincent <dvincent at sleepdeprived.ca> wrote:
>
> let's see if i can get this right.
>
>  every drive is represented in /dev as a /dev/sd**.  the "s" means scsi
>  and yes, even if you have ide drives it uses the s, they changed to that
>  a while ago, someone else could tell you why.  the "d" stands for disk,
>  the next character represents the order the drives are detected by linux
>  so if you have a sda and a sdb, a is the first drive and b is the second
>  (for example on an ide channel the a would be the master and the b would
>  be the slave).  then you get a number to represent the partition on the
>  disk - sda1 and sda2 for example.
>
>  once a removable drive is automounted by ubuntu it is mounted in the
>  /media folder on a new folder named after the disklabel if you've
>  labeled your disks or the device name like cdrom0 or floppy0.  labeling
>  your disks is a good idea if you use automounting otherwise for your usb
>  devices ubuntu will use names like "disk" and "disk1" which aren't very
>  descriptive and as i have written before, if you mount them in a
>  different order those names will swap around and then things get
>  confusing (if you plug them in in a different order then the /dev/sd**
>  will change).  removable drives include cds, dvds, usb disks, floppies,
>  and more.
>
[snip]

Hey,

One thing that hasn't come up is that removable USB drives in Ubuntu
can have their mountpoints changed using the right-click -> Properties
-> Volume -> Settings

This will set the mount options based on the UUID. You can see and
change the options using gconf-editor and looking in system ->
storage.

cheers,
Owen.




More information about the ubuntu-users mailing list