There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming google gpu hard drive hardware hdmi internet laptop malware memory monitor motherboard netgear network printer problem ram registry repair router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
[SOLVED] /etc/fstab

Reply  
Thread Tools
tnik's Avatar
Senior Member with 730 posts.
 
Join Date: Aug 2003
14-Apr-2004, 10:59 PM #1
Question [SOLVED] /etc/fstab
ok, heres the problem, I updated my gentoo system, updated the configuration files, and not realizing it, updated my /etc/fstab also.... soooo saying that, my /etc/fstab file doesn't match my system now, I rebooted without catching that it got updated, and now it wont boot all the way because it cant mount /dev/ROOT , because it is supposed to be /dev/hdb1..

I have tried going into maintance mode, but the drive is read-only, I have tried unmounting /dev/ROOT , and re-mounting /dev/hdb1 to /, but it doesnt work.. I tried to mount /dev/hdb1 to somewhere else, but like an idiot, when I installed I only created swap and / *doh*

any ideas ?
__________________
There are only 10 types of people in the world: Those who understand binary, and those who don't...
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
14-Apr-2004, 11:31 PM #2
okie the default fstab file i believe is going to be /hda1 for the boot. (I in fact did this with my gentoo system a while ago and am trying to remember what i did to fix it. so try setting it in your lilo, edit it so it points to the hda1. If that doesnt work setting single won't work so other then that erm...having a backup after this would be useful.

that's the only thing i can think of right now is setting it to be the same as the fstab folder.
tnik's Avatar
Senior Member with 730 posts.
 
Join Date: Aug 2003
15-Apr-2004, 06:25 PM #3
ok this is what is happening.. lilo boots, I choose my stable kernel, as I watch the letters fly by I see that it does mount /dev/hdb1... it continues to mount /proc and the rest, but when it goes to fsck /, it hangs and gives me the prompt to ctrl d to continue or go into maitnance mode.. ctrl d reboots it, and the rest you know.. last night I was playing with it and saw that in the fstab, It says "/dev/ROOT ext2 blah blah" when I check the /etc/mtab it says "/dev/ROOT xfs blah blah" I never heard of the /etc/mtab before this problem.. I really have no problem blowing it away and re-installing, but I was kinda hopeing that I didn't have to do that.. I just got fluxbox running the way I like.. lol
__________________
There are only 10 types of people in the world: Those who understand binary, and those who don't...
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
15-Apr-2004, 07:24 PM #4
hmmm mtab i believe is written by fstab (ie overwritten) if i remember...when you mount and unmount so might be /dev/mount that overwrites it. (not 100% positive)

since you can get to your fstab file your actually in a good position, because you need to change the evil changed fstab back to your settings ie /dev/hdb1 ext3 noauto,2 etc. Change it back to the settings you want. instead of /dev/ROOT ext2 blah blah. That will fix it for you hope that makes sense ^.^;;.
Whiteskin's Avatar
Senior Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
15-Apr-2004, 08:45 PM #5
There is a way to get mount to remount a partition, with diffrent permissions. This is what you need to do: Remount root rw. Then you can edit your fstab as you see fit.
tnik's Avatar
Senior Member with 730 posts.
 
Join Date: Aug 2003
15-Apr-2004, 09:19 PM #6
yea, I thought there might be a way to remount it, but I tried to umount the /dev/ROOT and /, and neither worked.. I'll be home in about an hour, I'll be able to try it again..
tnik's Avatar
Senior Member with 730 posts.
 
Join Date: Aug 2003
15-Apr-2004, 11:30 PM #7
oh man, have I ever said how much I love the linux community, I tried every single mount and umount command and I wasn't getting anywhere.. did a little checking on the web and found this great project.. the Gentoo Linux Boot Floppy, I will always have a copy of this around, I made the floppy, booted (with no problems) , mounted /dev/hdb1 to a /temp directory, used vi to re-write the /etc/fstab file and boom, it works great now.. well almost, lets just say that I will NEVER update ALL config files again.. lol http://glbf.sf.net
__________________
There are only 10 types of people in the world: Those who understand binary, and those who don't...
Whiteskin's Avatar
Senior Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
16-Apr-2004, 12:07 AM #8
Cool. You really do have to love the linux community. When you find a place you belong: Here, There etc, once you have a place you like, you really do feel a part of the community. On LQ.org, i work under the name geekzen. Look me up sometime.
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
16-Apr-2004, 01:06 AM #9
hmm Whiteskin should use one nickname everywhere :P. I haven't spent much time at linuxquestions. I feel more at home here. Probably because i feel a bit more helpful.
Whiteskin's Avatar
Senior Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
16-Apr-2004, 06:20 PM #10
Yeah. That and since gentoo doesnt have its own forum there.... probably because they have some sweet forums themeselves. Actually, i mostly use tragek. Whiteskin is from two years ago.... But i just got used to it here.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:55 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.