What exactly is the problem?You suggest you know the answer with the vi reference, but you do notshow us fstab or tell us exactly what error you are getting if any. [by gerald_clark]
on 12/08/2010 – Made popular on 12/08/2010
My machine is stuck. I have made a mistake in fstab which causes the boot to hang (stop). "An error occurred during the file system check". I am using F11. I am asked for my root password, which I enter and get to the # prompt. I vi /etc/fstab but can't save changes to the file.
Error mounting system-managed device /dev/sdb2: Command-line `mount "/media/scottaudio/G-DRIVE"' exited with non-zero exit status 1: [mntent]: line 12 in /etc/fstab is bad
mount: can't find /media/scottaudio/G-DRIVE in /etc/fstab or /etc/mtab
I have tried gparted and storage service manager, I still cannot make this work.
So I'm trying to setup my own NAS using a Model B Raspberry PI running archlinuxarm and a 500GB external hardrive. In the past I used fstab to automount the drive on boot but I found out that when the drive was not plugged login failed and I could not login into the system.
So I'm looking for a way to, at boot time, mount the drive IF and ONLY IF it is available. Is it possible?
I'm trying to move /home off my ssd to my other drive. I copied the directory over using
sudo rsync -avx /home/ /mnt/tmp
and then I changed my fstab to mount my new home. The problem is that everytime I try to boot with this configuration I am greeted by the emergency repair command line. What am I doing wrong? I've posted my fstab below.