LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-20-2002, 12:35 AM   #1
oudent
Member
 
Registered: Jul 2001
Distribution: Ubuntu
Posts: 195

Rep: Reputation: 30
Need desperate help immediately!!!!


Entry in fstab is wrong due to damaged file. Can't use the fstab file to boot, because the / entry is not LABELed as /1 and I can only access it in the Repair Filesystem thing which prevents me from writing!!!

All I need to do is erase the "1"

How do I write to my fstab file?

I boot from a disk, and I tried boot: linux rescue as well as other things.

Help!
 
Old 07-20-2002, 02:07 AM   #2
tundra
Member
 
Registered: Jun 2002
Location: Koom Valley
Distribution: rh8
Posts: 528

Rep: Reputation: 31
boot from the installation disk, but don't type linux rescue. just boot normally as if you were going to install. then cancel the installation. i think this should let you out to the command line (depending on the distro). mount /dev/hda (or your relevant hard drive with linux in it). you should then be able to find your /etc/fstab file and edit it.

i'm sure there are some other magical sophisticated solutions around somewhere, but this is what i know for now. hope it helps.
 
Old 07-20-2002, 02:36 AM   #3
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
With Mandrake 8.2 you can do the 'rescue' thing, and it will get you to a command prompt. Then all your files are listed under /mnt directory

In Slack8.1, you do just like tundra said, boot with CD, start install, then choose "exit" and you will be at a command prompt. Then the same, go to /mnt/etc and edit fstab that way.

So I am guessing something similar to one of those would be how they do it in RH.
 
Old 07-20-2002, 05:17 AM   #4
aliensub
Member
 
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 304

Rep: Reputation: 30
Another thing you can do is to start the installer and then press Alt+F2 to get to the commando prompt. Then type if you root is hda1
cd /
mkdir rescue
mount /dev/hda1 /rescue -t ext2 (if you use ext2, otherwise ext3 or ReiserFS)

then you should be abtle to locate vi in i think itīs in usr/bin, so it will be:
usr/bin/vim /rescue/etc/fstab

Iīm on a win comp. so i canīt cross check it, but give it a try

Last edited by aliensub; 07-20-2002 at 05:20 AM.
 
Old 07-20-2002, 05:30 AM   #5
tundra
Member
 
Registered: Jun 2002
Location: Koom Valley
Distribution: rh8
Posts: 528

Rep: Reputation: 31
commando prompt? now there's another way to put it...
 
Old 07-20-2002, 05:45 AM   #6
aliensub
Member
 
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 304

Rep: Reputation: 30
As i told you i am sitting on a win comp. right now, and was actually trying to fix some errors (what a surprise) in the... commando prompt.

AARRGGHHH Bill has brainwashed me, I miss my little debian box!!
 
Old 07-20-2002, 05:47 AM   #7
aliensub
Member
 
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 304

Rep: Reputation: 30
I think i will go to sleep, commando = command = i just keep quiet for now...
 
Old 07-20-2002, 10:18 PM   #8
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Guys, oudent has already fixed his problem. He cross posted. So, I guess he is ignoring this thread.

All he needed to do to solve the problem was to enter:

mount -n -o remount,rw /dev/hdb1

at a prompt and then edit the fstab file.
 
Old 07-20-2002, 10:29 PM   #9
tundra
Member
 
Registered: Jun 2002
Location: Koom Valley
Distribution: rh8
Posts: 528

Rep: Reputation: 31
ok 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
dialup disconnect immediately alma Suse/Novell 6 11-04-2005 04:11 AM
Need help immediately... mahamkali Fedora 4 01-04-2005 09:34 PM
xmms crashes immediately henrikanttonen Linux - Software 7 08-09-2004 07:56 PM
rdesktop immediately disconnects chilly_willy2 Linux - Networking 1 02-12-2004 12:55 AM
Mozilla stops immediately Jingle Linux - Software 4 05-30-2003 03:19 PM


All times are GMT -5. The time now is 10:12 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