≡ Menu

Linux: Mount Disk Partition Using LABEL

How do I mount the filesystem (disk partition) using the filesystem label on the ext3/ext4 file system located on USB disk or hard disk under Linux operating systems?

The

Please note that my actual device name is /dev/sdf1. Feel free to replace actual label names and mount point as per your requirements.

Update /etc/fstab File

You can update the /etc/fstab file as follows to mount it automatically using the disk label:

LABEL=seagate_2tb_usb     /media/usb    ext3   defaults 0 0

See also:

Share this tutorial on:
{ 3 comments… add one }
  • Paul M November 4, 2011, 2:20 pm

    mount /dev/disk/by-label/SOMEDISKNAME /mnt/foobar

    or put this in fstab

    LABEL=SOMEDISKNAME /mnt/foobar vfat users,uid=1000,gid=users,umask=0002,utf8=true 0 0

  • Feji Thomas May 15, 2014, 4:20 am

    How do i find the Label if the disk failed? We have no option from the /etc/fstab to identify the disk/partiotion information!!

  • Desmond September 24, 2014, 7:20 am

    I am on ubuntu 14.04 LTS. The e2label works fine.

    However I am not able to see the device in Nautilus files, under devices.

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: , , , , , , , , , ,