New answers tagged disk
The tool you think you're looking for is zerofree, as described in this duplicate question Clear unused space with zeros (ext3,ext4), and already available in most distributions. However, you seem to be asking how to take an image backup of a filesystem that excludes unused blocks. In this instance use fsarchiver, as described in this answer over on the ...
Do it this way : 1. sudo touch /forcefsck Then reboot this machine normally.
I found a solution: sudo touch /forcefsck
Not sure it it works, but you can try: shutdown -rF now -r means reboot. -F means force filesystem check. you can take a look at the manual of shutdown command.
In general, you need to physically move the files to the new partition, and then re-create an empty /var for the mount point, and then mount /dev/sdb1 /var. (And, for permanent effect, add a line to /etc/fstab such as the following): /dev/sdb1 /var ext4 rw 0 1 However, the "physically move files to the new partition" step bears more ...
Be warned, if no data can be lost you should either start the system init 1 as suggested by type_outcast or start with a live USB system to do the next process. Since you already have a partition on sdb, if you want to use the whole partition just check if the filesystem is created. Otherwise create it yourself (mkfs). Once created mount both partitions ...
Top 50 recent answers are included