labeling usb drives (xfs)

Roby electricalsciences at adelphia.net
Sat Jun 2 19:01:13 UTC 2007


Ben Edwards wrote:

> I have a number of external usb drives with xfs file systems on them.
> Is there a way of labeling then so they dont just show up as disk-1,
> disk-2...?
> 
> Ben

Perhaps like this:

Create unique volume labels for each drive:
  sudo mkfs.xfs -L monday ...
  sudo mkfs.xfs -L tuesday ...

Create matching entries in /etc/fstab:
  LABEL=monday   /media/monday   xfs ...
  LABEL=tuesday  /media/tuesday  xfs ...

Create /media mountpoints:
  sudo mkdir /media/monday
  sudo mkdir /media/tuesday







More information about the ubuntu-users mailing list