LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-17-2005, 04:45 PM   #1
ffrr
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Rep: Reputation: 0
What process is changing /etc/fstab and deleting my swap mount?


Just recently I have reconfigured my hard disks and created a new swap partition. I put an entry in /etc/fstab, and swapon -a, mounts and uses it.

But, twice now, I have booted Mandrake to find no swap available, and upon looking, I find the line I put in the /etc/fstab file has been removed.

I didn't know that ANYTHING could change fstab except me editing it manually.

Please help :-)

Last edited by ffrr; 03-17-2005 at 05:09 PM.
 
Old 03-17-2005, 05:21 PM   #2
shadoxx428
Member
 
Registered: Jan 2005
Location: Cincinnati, Ohio
Distribution: Linux Mint 15
Posts: 41

Rep: Reputation: 16
Make sure you're editing the file as root. If you're not, then none of the changes will save. Also, make sure you are editing both fstab and mtab (i think it's mtab.) I'm not completely sure since I haven't used linux for awhile now, but I had a similar problem.
 
Old 03-17-2005, 05:37 PM   #3
ffrr
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by shadoxx428
Make sure you're editing the file as root. If you're not, then none of the changes will save. Also, make sure you are editing both fstab and mtab (i think it's mtab.) I'm not completely sure since I haven't used linux for awhile now, but I had a similar problem.

Thanks for the input.

I am editing it as root and the changes do save, that's why swapon -a works (as it reads fstab). Also, I can go back later and view /etc/fstab and it has the changes in it.

Now mtab is something I haven't been able to learn much about, except some web pages say it is a file the shows all mounted rives. I thought that mean it was dynamically created by something, and shouldn't be edited, but I'll be happy to discover how it really works :-)
 
Old 03-17-2005, 05:45 PM   #4
shadoxx428
Member
 
Registered: Jan 2005
Location: Cincinnati, Ohio
Distribution: Linux Mint 15
Posts: 41

Rep: Reputation: 16
Heh, yeah. Like I said I'm not too sure. It's been a while since I've done anything with Linux at all. I'm downloading the Fedora core right now. Then I'm gonna try to see if I can get ndiswrapper to work for me. mtab I'm sure controls the paths where, when you do a "mount" at the terminal, checks that to see what it's mounting. Like for instance "mount /mnt/cdrom." mtab tells mount what device it's mounting, by relating it to the path. However, fstab just tells what devices are currently mounted. Of course I may be getting these two confused, and the rolls that mtab and fstab play reversed. heh ^_^;

Last edited by shadoxx428; 03-17-2005 at 05:51 PM.
 
Old 03-17-2005, 05:46 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,203

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I was recently suprised to be told that RH mangles the /boot/System.map symlink in rc.sysinit.
Maybe Mandy does something in the "early" runlevels too. Anything's possible.
 
Old 03-17-2005, 05:59 PM   #6
ffrr
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by shadoxx428
Heh, yeah. Like I said I'm not too sure. It's been a while since I've done anything with Linux at all. I'm downloading the Fedora core right now. Then I'm gonna try to see if I can get ndiswrapper to work for me. mtab I'm sure controls the paths where, when you do a "mount" at the terminal, checks that to see what it's mounting. Like for instance "mount /mnt/cdrom." mtab tells mount what device it's mounting, by relating it to the path. However, fstab just tells what devices are currently mounted. Of course I may be getting these two confused, and the rolls that mtab and fstab play reversed. heh ^_^;
Yeah, I think it may be the reverse.

On another note, I got ndiswrapper to work on a laptop for a wifi card that had no decent linux support. The idea sounds kludgy, but it seemed to work fairly well. It was a while ago, so I don't remember exactly what I did, but I know I found lots of detailed help by googling, and it seemed to work, pretty much as expected.
 
Old 03-17-2005, 06:01 PM   #7
ffrr
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by syg00
I was recently suprised to be told that RH mangles the /boot/System.map symlink in rc.sysinit.
Maybe Mandy does something in the "early" runlevels too. Anything's possible.
I am convinced it is doing something

Another odd thing I discovered is that man fstab says the second entry on the fstab line for a swap partition, should be 'none' but everyone seems to use 'swap' and it works as well.

This is all in Mandrake 10.1 btw.
 
Old 03-18-2005, 12:40 AM   #8
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 764

Rep: Reputation: 32
As far as I know mtab keeps track of what's mounted. Fstab is what defines the mounts.

Your problem might be Harddrake. I suggest you run "Configure Your Computer", Mount Points, Partitions and play around over there. I had a similar problem with my CD and DVD drives. Once I set things up in "Mount Points" the problem went away.

I suspect that Harddrake tries to "repair" fstab. It doesn't always happen but......
 
Old 03-18-2005, 09:16 PM   #9
ffrr
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by davcefai
As far as I know mtab keeps track of what's mounted. Fstab is what defines the mounts.

Your problem might be Harddrake. I suggest you run "Configure Your Computer", Mount Points, Partitions and play around over there. I had a similar problem with my CD and DVD drives. Once I set things up in "Mount Points" the problem went away.

I suspect that Harddrake tries to "repair" fstab. It doesn't always happen but......
That seems very likely. The times I have lost the swap line in fstab may well have been the times I had harddrake open.

I used 'mount points' to change a setting on the swap partition, and it wrote it to fstab, so now, hopefully it will be happy with it and leave it alone.

thanks
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
Changing Fstab in ubuntu to mount vfat drive mikeymorgan Linux - Newbie 13 06-23-2005 07:50 AM
deleting/resizing swap partition / increasing hd space saranga2000 Linux - Hardware 1 12-09-2004 10:03 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
About fstab and swap research2004 Linux - Newbie 2 02-19-2004 05:10 AM


All times are GMT -5. The time now is 09:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration