LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Tool (setup script?) for re-writing /etc/fstab? (https://www.linuxquestions.org/questions/slackware-14/tool-setup-script-for-re-writing-etc-fstab-203671/)

MikTheUser 07-11-2004 06:49 AM

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

keefaz 07-11-2004 06:53 AM

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 ;)

rotvogel 07-11-2004 06:54 AM

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

MikTheUser 07-11-2004 07:13 AM

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?

rotvogel 07-11-2004 07:18 AM

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 . :)

MikTheUser 07-11-2004 09:12 AM

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.