Login failure after restart. Every time.

Liam Proven lproven at gmail.com
Fri Mar 23 03:08:46 UTC 2012

On 23 March 2012 03:01, Kevin O'Gorman <kogorman at gmail.com> 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: http://lproven.livejournal.com/profile
Email: lproven at cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lproven at hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: +44 20-8685-0498 • Cell: +44 7939-087884

More information about the ubuntu-users mailing list