Tool (setup script?) for re-writing /etc/fstab?
Hi,
I urgently need to have my /etc/fstab rewritten by some sort of tool - I kind of fucked it up (though only regarding my non-Linux-fs's) and I'd like to be able to access the data again. Couldn't I restart the setup tool that did this for me? What's it called? TIA, Mik |
The syntax of fstab is simple, I don't think a programmer made a tool for edit it. Post your fstab, the error(s) will be quickly fixed ;)
|
Any texteditor and man fstab should do. You can take a look to your current mounted drives in fstab format with the command:
Code:
cat /etc/mtab |
Ok, I'm working my way through man fstab and man mount while re-writing my fstab (no touching the lines of swap, proc, devpts and / tho :p), but I am stuck with the fifth and sixth field. It says, the fifth field determines wether a filesystem needs to be dumped, and the sixth field is something about mount order - what would I have to put in there for three vfat-partitions, one ntfs-partitoin and my /dev/floppy?
|
For VFAT and NTFS filesystems, there's no need to set those other then 0 0 .
Your / (root) filesystem should be checked and will be the first to check (1 1) , other Linux filesystems (other then swap, proc, sys, etc) will get 1 2 . They will be checked, but after your / fs is checked. Removeable media get 0 0 as well . :) |
It worked! :)
I read man fstab as well as man mount and rewrote the whole thing. thanx to you all! :D |
All times are GMT -5. The time now is 03:57 PM. |