Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Slackware Linux Help
Reload this Page Corrupted fstab
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Slackware Linux Help For help and Discussion about Slackware linux

Reply
 
Thread Tools Display Modes
Old 04-26-2008   #1 (permalink)
pfeigl
Just Joined!
 
Join Date: Apr 2008
Location: Ontario
Posts: 76
Exclamation Corrupted fstab

Hello all. I shut down my machine after it was on for about a week and it would not boot. I booted off the CD and found that fstab was corrupted. I edited the file. Saved with:wq! and checked it again and it was good. I rebooted and fstab was corrupted again and all my edits were lost. If anyone has any idea what the heck is going on I would be very grateful.
pfeigl is offline   Reply With Quote
Old 04-26-2008   #2 (permalink)
Jonathan183
Linux Engineer
 
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,280
You did change fstab on the hard drive rather than /etc/fstab for the CD?
Can you post fstab for your hard drive.
Jonathan183 is offline   Reply With Quote
Old 04-26-2008   #3 (permalink)
pfeigl
Just Joined!
 
Join Date: Apr 2008
Location: Ontario
Posts: 76
Post Fstab entries

Hi. We meet again.. The only entry is for proc. I had to create the entries for the HDD etc and they just get blown away every time I reboot. Except the /proc entry. It stays OK for some reason.

Peter
pfeigl is offline   Reply With Quote
Old 04-26-2008   #4 (permalink)
Jonathan183
Linux Engineer
 
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,280
Hi Peter ...
I got round to installing slackware eventually ... I get an fstab like this
Code:
root@ubuntu:~# mkdir /manmount
root@ubuntu:~# mount /dev/sda12 /manmount
root@ubuntu:~# cat /manmount/etc/fstab
/dev/sda5        swap             swap        defaults         0   0
/dev/sda12       /                ext3        defaults         1   1
/dev/sda7        /home            ext3        defaults         1   2
/dev/sda15       /Gentoo-root     ext3        defaults         1   2
/dev/sda2        /Windows-Vista   ntfs        ro               1   0
/dev/sda4        /NTFS-data       ntfs        ro               1   0
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
root@ubuntu:~#
Can you post equivalent when you boot from the live CD?
Jonathan183 is offline   Reply With Quote
Old 04-26-2008   #5 (permalink)
pfeigl
Just Joined!
 
Join Date: Apr 2008
Location: Ontario
Posts: 76
fstab code

Here is the entire fstab file:

BOF
proc /proc proc defaults 0 0
EOF

Peter
pfeigl is offline   Reply With Quote
Old 04-26-2008   #6 (permalink)
Jonathan183
Linux Engineer
 
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,280
Thats exactly what I get for /etc/fstab if I boot from slackware12 cd1. Just to be clear about the process you are going through ...
boot from slackware cd 1 & login as root then type
Code:
mkdir /manmount
mount /dev/sda1 /manmount
vi /manmount/etc/fstab
You modify the contents of the fstab and save changes
You can do
Code:
cat /manmount/etc/fstab
and it shows your modifications. But after a reboot the changes are lost.
Jonathan183 is offline   Reply With Quote
Old 04-26-2008   #7 (permalink)
pfeigl
Just Joined!
 
Join Date: Apr 2008
Location: Ontario
Posts: 76
Unhappy manmount

Yes manmount does an admirable job of creating an fstab file, but like we hav e both seen, the changes are for nought...

Let me know if you have a brainwave...

Thanks, Peter
pfeigl is offline   Reply With Quote
Old 04-26-2008   #8 (permalink)
Jonathan183
Linux Engineer
 
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,280
If you go through the same process and then
Code:
cp /manmount/etc/fstab /manmount/etc/fstabback
does the fstabback file exist after you reboot?
Are you using
Code:
umount /dev/sda1
before the reboot?
Jonathan183 is offline   Reply With Quote
Old 04-26-2008   #9 (permalink)
pfeigl
Just Joined!
 
Join Date: Apr 2008
Location: Ontario
Posts: 76
Angry More testing...

The .bak file gets wiped out completely. The regular fstab is as usual (buggered up) and no I haven't been umounting sda1 but it does not seem to matter.

Peter
pfeigl is offline   Reply With Quote
Old 04-26-2008   #10 (permalink)
pfeigl
Just Joined!
 
Join Date: Apr 2008
Location: Ontario
Posts: 76
Exclamation Live CD

OK. I got a live Sllax CD. What shall I do with it?
Peter
pfeigl is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 06:10 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0