Manual checkdisc for Kubuntu HDD

Nils Kassube kassube at gmx.net
Fri Mar 18 09:00:15 UTC 2011


O. Sinclair wrote:
> On 18/03/2011 08:14, Nils Kassube wrote:
> > You can use the command
> > 
> > sudo touch /forcefsck
> > 
> > in a terminal. Then the system will check the disks at the next
> > boot.
> 
> Interesting - mine never seems to check the /home partition, is there
> way to force that as well?

You are right. It seems like only the / partition is checked if the file 
/forcefsck is found at boot time. To fsck your /home partition you could 
reboot in recovery mode (from the grub menu) and select the root shell 
option. Then determine which device is your /home partition with the 
command

mount | grep /home

The output should be something like

/dev/sda3 on /home type ext3 (rw)                                                                                                        

where /dev/sda3 is the device name. Now umount it with the command

umount /dev/sda3

then run the fsck with the command

e2fsck -f -C0 /dev/sda3

and afterwards mount it again with this command:

mount -a

Of course you would replace the /dev/sda3 in the commands above with the 
actual device name of your home partition.

Actually you _could_ do it without rebooting but that would be a bit 
more complicated to explain and I would probably miss some possible 
problems.


Nils




More information about the kubuntu-users mailing list