tune2fs -c 1000 rid stop reboot # into 2.4 or 2.6? #at reboot in grub: single user mode (select kernel, press "e", select kernel line, press "e", append "single" at the end of the line, "enter", press "b", root password) mount -o ro,remount /dev/sda1 e2fsck -c -y /dev/sda1 #according to the man page: # Note that in general it is not safe to run e2fsck on mounted filesys- # tems. The only exception is if the -n option is specified, and -c, -l, # or -L options are not specified. However, even if it is safe to do # so, the results printed by e2fsck are not valid if the filesystem is # mounted. If e2fsck asks whether or not you should check a filesystem # which is mounted, the only correct answer is "no". Only experts who # really know what they are doing should consider answering this question # in any other way. #I am no expert, in fact, I hardly understand what I am supposed to do here, #are you sure you want to do this? # this takes a few hours. # what if something is wrong? reboot #single user again rsync -va --exclude /vol --exclude /proc --exclude /sys / /vol grub-install --directory /vol/boot/grub /dev/sdb1 # do you mean #grub-install --root-directory=/vol/boot/grub /dev/sdb1 # this is how I would understand it from the man page on nebka. # and why not use update-grub? #sdb1, not sdb, right? #edit /vol/etc/fstab putting the right device for the swap, but how? And I suppose that file will be rsynched from /etc/fstab, right? reboot # normal user (same a above, remove "single")