Quote:
Originally Posted by geeceeaxp
i forgot to mension, i am a newbie so i dont know to much about linux. i got into the rescue mode of FC and was able to get into the grub folder but i dont know how to edit it. is there a program that i can use to open the file while in rescue mode? also with the etc/fstab, can you tell me how to open that file while in rescue mode? thanks sorry about the trouble.
|
Well, there a several editors you can use. One of the easiest (and probably also most complicated) to use is
emacs. That's because, even on a command line screen,
emacs gives you a (pseudo) wysiwyg display.
For simple editing, use
emacs /etc/grub/grub.conf, use your arrow keys to move around, backspace to delete the character before the cursor, just type to enter text, and <ctrl>-x, <ctrl>-c to exit. (If you've made any changes, you'll be asked if you want to save them, and a backup file (
/etc/grub/grub.conf~) will be created before your changes are saved.
That's why it's "easy." If you look at the emacs tutorial, you'll see that there are, literally, thousands of command sequences you can use for different things. That's why it
also the most complicated editor.
Other people here would recommend, for example,
vi or
vim or
ed or
gedit or
nano or
pico. (Hey, Linux is about choice!
)
I'm prejudiced towards
emacs mostly because I learned it whilst using the
Multics system at MIT. (In case you're interested,
Multics was the Multi-user system that was "cut down to size" to make the original
UNIX single-user system by the Bell Labs people who were pulled from the Multics project when Bell Labs dropped out.)
Edit: Oh, about the
grub.conf file. When you enter "rescue" mode, one of the last things you'll see printed is a comment something like "
chroot /mnt/sysimg to set your root to youur installed system's root." You'll need to do that for the
/boot/grub/grub.conf path to work, and for the search path to be set properly so the editors can be found. I
think -- but I'm not sure -- that the "rescue" mode has only a limited number of editors available, perhaps only
vi.