Re: Login failure after restart. Every time.

On 23 March 2012 03:01, Kevin O'Gorman <kogorman@xxxxxxxxx> wrote:

I booted from a live disk and ran it manually.  How else could I
insert the -f switch?
I'm not stupid enough to fsck a mounted disk, and it won't remount RO.

That should be absolutely fine.

However, for future reference, the way to get Linux to do an fsck on a
volume at boot-time is:

sudo touch /forcefsck

... and repeat this for all filesystems. (Not swap - that's not an FS.)

So if / was on one partition, say, sda1 but /home was on /sda5 and
swap on /sda6, you'd want to do:

sudo touch /home/forcefsck

... as well.

If the kernel finds a file called "forcefsck" in the root directory of
a FS as it mounts it, it runs `fsck -f` on it before mounting it. Then
it removes the file so it doesn't happen next time.

It's the equivalent of issuing:

chkdsk c: /f

on Windows and then replying "y" to the prompt to do it on the next restart.

Liam Proven • Profile:
Email: lproven@xxxxxxxxx • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lproven@xxxxxxxxxxx • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: +44 20-8685-0498 • Cell: +44 7939-087884

ubuntu-users mailing list
Modify settings or unsubscribe at: