Difference between
modified post 09dad by Anonymous on Tue 19th Dec 2023 11:12
original post 3d4a83d9e by Anonymous on Tue 19th Dec 2023 11:06
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | # ext4 filesystem being mounted at /root supports timestamps until 2038-01-19 (0x7fffffff) | |
| 2 | 2 | ||
| 3 | 3 | # tune2fs does not work: | |
| 4 | 4 | root@EPU-102054501-AugustToepfer:/# tune2fs -I 256 /dev/sda2 | |
| 5 | 5 | tune2fs 1.42.12 (29-Aug-2014) | |
| 6 | 6 | Changing the inode size not supported for filesystems with the flex_bg | |
| 7 | 7 | feature enabled. | |
| 8 | 8 | root@EPU-102054501-AugustToepfer:/# tune2fs -O ^flex_bg /dev/sda2 | |
| 9 | 9 | tune2fs 1.42.12 (29-Aug-2014) | |
| 10 | 10 | Clearing the flex_bg flag would cause the the filesystem to be | |
| 11 | 11 | inconsistent. | |
| 12 | 12 | ||
| 13 | 13 | # switching to btrfs does not work: | |
| 14 | 14 | root@EPU-102054501-AugustToepfer:~# btrfs-convert /dev/sda2 | |
| 15 | 15 | ERROR: block size is too small: 1024 < 4096 | |
| 16 | 16 | WARNING: an error occurred during conversion, filesystem is partially created but not finalized and not mountable | |
| 17 | 17 | root@EPU-102054501-AugustToepfer:~# fsck.ext4 /dev/sda2 | |
| 18 | 18 | e2fsck 1.42.12 (29-Aug-2014) | |
| 19 | 19 | ||
| 20 | - | ||
| 20 | + | # fix: | |
| 21 | - | ||
| 21 | + | (cd / && tar -cf - root | bzip2 >root_backup.tar.bz2) | |
| 22 | - | ||
| 22 | + | umount /root | |
| 23 | - | ||
| 23 | + | mkfs.btrfs --label roothome -f /dev/sda2 | |
| 24 | - | ||
| 24 | + | vi /etc/fstab # switch /root from "ext4" to "btrfs" | |
| 25 | - | ||
| 25 | + | mount /root | |
| 26 | - | ||
| 26 | + | (cd / && tar -xf root_backup.tar.bz2 ) | |
| 27 | - | ||
| 27 | + | ls -l /root | |
| 28 | 28 |
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
rovema.kpaste.net RSS