Re: automatically mounted filesysystems in /media
- From: Rikishi 42 <fsck_spam@xxxxxxxxxx>
- Date: Thu, 30 Aug 2007 22:48:58 +0200
On 2007-08-30, Rob <ramseyrt@xxxxxxxxx> wrote:
I just partitioned an external USB hard drive, creating one 40GB vfat
(/dev/sdb1) and on 40GB ext3 (/dev/sdb2) filesystem. When I'm logged
into KDE, the system automatically mounts the two filesystems as /
media/disk (/dev/sdb1) and /media/disk-1 (/dev/sdb2).
How do I change the names that these are automatically mounted with?
I realize I could manually mount them using the fstab, but this
external storage is attaching to a laptop and will not always be
connected.
Just give the partitions a "disk label" (like you can in DOS/Windows).
To give a label to an ext2/3 partition (I prefer ext2 on an USB drive BTW),
just use:
e2label /dev/sdb2 USB_EXT
.... and the partition will appear as /media/USB_EXT at the next mount.
For the FAT partition, you might have to define the label on a Win machine.
Can't remember if I ever did it from Linux.
Limit the names to max 12 chars. More is possible but not recommended,
especially in FAT.
Certain chars may not be allowed. ('_' might not be, for instance)
--
There is an art, it says, or rather, a knack to flying.
The knack lies in learning how to throw yourself at the ground and miss.
Douglas Adams
.
- References:
- Prev by Date: Re: Video editing et al
- Next by Date: Re: vfat not seen by Vista
- Previous by thread: Re: automatically mounted filesysystems in /media
- Index(es):
Relevant Pages
|
|