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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-20-2002, 12:35 AM
|
#1
|
|
Member
Registered: Jul 2001
Distribution: Ubuntu
Posts: 195
Rep:
|
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!
|
|
|
|
07-20-2002, 02:07 AM
|
#2
|
|
Member
Registered: Jun 2002
Location: Koom Valley
Distribution: rh8
Posts: 528
Rep:
|
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.
|
|
|
|
07-20-2002, 02:36 AM
|
#3
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
Rep:
|
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.
|
|
|
|
07-20-2002, 05:17 AM
|
#4
|
|
Member
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 304
Rep:
|
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.
|
|
|
|
07-20-2002, 05:30 AM
|
#5
|
|
Member
Registered: Jun 2002
Location: Koom Valley
Distribution: rh8
Posts: 528
Rep:
|
commando prompt?  now there's another way to put it...
|
|
|
|
07-20-2002, 05:45 AM
|
#6
|
|
Member
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 304
Rep:
|
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!!
|
|
|
|
07-20-2002, 05:47 AM
|
#7
|
|
Member
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 304
Rep:
|
I think i will go to sleep, commando = command = i just keep quiet for now...
|
|
|
|
07-20-2002, 10:18 PM
|
#8
|
|
LQ Addict
Registered: Jun 2001
Posts: 1,183
Rep:
|
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.
|
|
|
|
07-20-2002, 10:29 PM
|
#9
|
|
Member
Registered: Jun 2002
Location: Koom Valley
Distribution: rh8
Posts: 528
Rep:
|
ok thanks
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:10 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|