25Jul/102
Simply adding a Linux Partition via fstab
Just add something like the following to /etc/fstab...
UUID=1208c5dc-d4a6-a7a2-8352-ab12ecd64412 /media/disk-1 ext4 relatime,errors=remount-ro 0 2
... where
- UUID uniquely identifies the partition you wish to add (you can get the UUID for you drive using
ls -l /dev/disk/by-uuid) - /media/disk-1/ can be changed to be location on your system - it's where the partition will be added
- I don't really have a monkeys of what the other settings do, but I think they are more or less the usual defaults. Works for me!
Bang! Short blog post! Goodnight!
July 25th, 2010 - 23:12
Well for your edification:
FSTYPE ext4 in your case. If you want portability of what FSTYPE to mount then select auto.
OPTIONS relatime,errors=remount-ro relatime does a update of all inode access date and time stamps since the las mount. errors will mount the filesystem read only if errors in the mount occur, if it can do so.
DUMP 0 set to 0 the partition will not be backed up using the dump command. Most users don’t even know what dump is.
FSCK 2 Priority order for fsck command to check the filesystem on boot. Set it to 0 if you don’t want the partition scanned.
August 4th, 2010 - 09:39
@JohnMc That’s great. Thanks a mill for that. I’ve never looked up what those last two numbers meant (the DUMP and the FSCK) so it’s reassuring to know what they do now. I have a feeling that I’ll be returning to your clarification more than once in future. Cheers!