LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-11-2004, 06:49 AM   #1
MikTheUser
LQ Newbie
 
Registered: Jun 2004
Posts: 26

Rep: Reputation: 15
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
 
Old 07-11-2004, 06:53 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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
 
Old 07-11-2004, 06:54 AM   #3
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
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
 
Old 07-11-2004, 07:13 AM   #4
MikTheUser
LQ Newbie
 
Registered: Jun 2004
Posts: 26

Original Poster
Rep: Reputation: 15
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 ), 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?
 
Old 07-11-2004, 07:18 AM   #5
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
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 .
 
Old 07-11-2004, 09:12 AM   #6
MikTheUser
LQ Newbie
 
Registered: Jun 2004
Posts: 26

Original Poster
Rep: Reputation: 15
It worked!

I read man fstab as well as man mount and rewrote the whole thing. thanx to you all!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing a package manager tool... need help. _UnPrEdictAbLe_ Programming 2 05-20-2005 12:13 AM
slackware setup tool berrance Slackware 5 11-24-2004 03:56 PM
Does Windoze98 have a partitioning tool during setup? Fear58 General 5 06-25-2004 08:34 AM
Writing a Script Nyc0n Linux - General 2 05-27-2002 07:21 PM
writing a Script spanky5125 Linux - Security 5 01-08-2002 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration