need to edit /etc/fstab but cannot get into single user mode
I was trying to get my second HD to auto-mount and edited /etc/fstab. Must have done it wrong because now the system won't boot. I get the splash screen and I can get into GRUB, but all the advice online says to edit the kernel line and reboot. I have tried editing the line " linux /boot/vmlinuz... quiets showopts" with " 1" at the end and with " single" at the end and then F10 to boot. It doesn't take me into single user. Is there any other way I can get back into /etc/fstab so I can delete what I did. I just want my computer back. Could I use a live CD or the install CD I used to install openSuse?
|
I am now trying to use my install disk and rescue mode. What now. I want to comment out the line I added to /etc/fstab
|
Create a directory in your root directory tree.
Mount the original disk Edit fstab. Code:
mkdir /mnt/sda1 jlinkels |
using those commands I get "mount.bin: unknown filesystem type 'swap'"
|
Do both of your drives have grub on them? If so you probably need to change their order in bios
|
I don't think so. I changed their order anyway and I get the same response after using mount.
|
oh wait. I didn't save BIOS settings lemme try that again
Yeah, same thing happens |
Quote:
|
Now we're getting somewhere. My partition is on sda3, so I can see my stuff now. Only where is that fstab file? When I go vi /etc/fstab this is not the same file.
|
Here's what this fstab file looks like.
/dev/root /ext2 defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 The one I edited looks different. Is this the one and only? Does something look wrong? I think I'm looking at the /etc/fstab on the disk - not the one I wan t to fix |
Are you booted to the hdd or usb?
|
If you have 2 linux drives then there will be 2 /etc/fstab files.
|
Im boot to the HD. How do i find the other fstab file? (the one I messed up?) I can mount either HD but I think the /etc/fdisk I'm looking for might be in the root partition which I cannot get into
|
It's going to be under /media if it's mounted.
Have you tried your File Manager? |
Quote:
It is /mnt/sda3/etc/fstab Meaning etc/fstab below the point where you mounted sda3. There is no slash in front of etc. But you'd better use the absolute path. jlinkels |
Quote:
Quote:
|
All times are GMT -5. The time now is 02:21 AM. |