Click to See Complete Forum and Search --> : nano problem
MMYoung
10-15-2003, 07:48 PM
I'm trying to install gentoo 1.4, following the instructions to the letter that I printed off the CD. Everything is working fine, I guess, untill I get to the point where I'm to edit /etc/fstab. According to the instructions to edit files you type - nano -w "filename". The problem is when I do that I get an error message stating "illegal instruction". Don't matter if I type nano -w /ect/fstab, or nano -w "/ect/fstab", nano -w etc/fstab or if I cd to etc and then type nano -w fstab, I still get the same illegal instruction error. I'm begining to wonder if nano wasn't written by someone in Redmond, WA :D.
Anyway the only thing I can get to work with nano is nano -h and that show the help screen. The -w option is listed but can't get it to work for nothing. Any suggestions?
Thanks,
MMYoung
The file is "/etc/fstab".
nano -w /etc/fstab
adikgede
10-15-2003, 08:42 PM
if "nano -w /etc/fstab" isnt working why not try another editor. I don't know what is available in the build environment, vi, joe, pico.... if there isn't another editor you can emerge <your editor> or even emerge nano (again) if you like. You can also exit the chroot environment and "nano -w /mnt/gentoo/etc/fstab" Im not sure but Gentoo might sync and reboot when you exit from chroot so just exit by changing consoles.
MMYoung
10-15-2003, 08:54 PM
I transposed the tc in my post. I used /etc/fstab in the nano command.
I tried vi, even vim, to no avail. Never thought about emerging either one of them.
I'm going to give it another try tonight.
Later,
MMYoung
kevinalm
10-17-2003, 01:20 AM
You are trying to edit /etc/fstab as root, aren't you? (or in single user mode)
MMYoung
10-17-2003, 06:02 AM
Originally posted by kevinalm
You are trying to edit /etc/fstab as root, aren't you? (or in single user mode)
Yes, actually it was during the install. I took the advice of adikgede and just emerged vi and it works fine. Now, even after the install and logging in as root I STILL get the "illegal instruction" error.
BTW, after I got my fstab edited correctly, the install of gentoo went fairly easily. After I rebooted my network didn't work, I forgot to uncomment the /etc/conf.d/net. Did that then did the rc-update add net.eth0 default and my network works fine now.
Got a few more glitches to work out, mostly which modules I need to load in the kernel-2.4 file, but I'm getting there. Hopefully in a the next day or two I'll have KDE up and running.
Thanks,
MMYoung