Tuesday, January 25, 2011

Permanently Mount Ext3/Ext4 Drives with Write Permissions

Ext3/Ext4 are Linux specific file systems. In order to mount them permanently, follow the steps below.

1. Find the UUID of your intended partition.

sudo blkid

Find your intended partition and copy the UUID (without quotes).

2. Edit /etc/fstab

gksudo gedit /etc/fstab

Paste this text at the end of that file.

UUID=<uuid>     /place/to/mount     ext4     defaults    0     2

Where <uuid> is the UUID we copied from the blkid command. /place/to/mount is the mount directory. ext4 is the filesystem.

Save and close this file.

3. Test your mounts.

sudo mount -a

This should mount your drive.

4. chown

sudo chown <username>:<username> /place/to/mount

Where <username> is your username and /place/to/mount is the mount directory.

Hopefully, your shares will be mounted automatically on a reboot and you will be the owner.

Enjoy!

Related Posts:

File System