04-15-2019, 09:51 PM
(This post was last modified: 04-16-2019, 11:38 AM by Lambda-User.)
OK twisted stuff. Went on to find someone saying you need to e2fsck the partition just before you tune2fs . So did.
You would think if you blkid as suggested in the reference page you would see a difference but no...
This is debian bug apparently which would be closed, but maybe not on the version used in grub-repair...
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857336
Anyhow, blkid used on grub-repair 32-bit doesn't give you the straight dope. But if you do a tune2fs -l you get
The short of it is Filesystem UUID have been changed by tune2fs regardless of what blkid says.
Beware false negatives....
So I can mark 4 as done I guess.
And proceed to 5.
Lambda-user
Code:
lubuntu@lubuntu:~$ sudo e2fsck /dev/sda1
e2fsck 1.43.5 (04-Aug-2017)
/dev/sda1: clean, 278663/2252160 files, 3384458/9036024 blocks
lubuntu@lubuntu:~$ sudo tune2fs -U random /dev/sda1
tune2fs 1.43.5 (04-Aug-2017)
Setting UUID on a checksummed filesystem could take some time.
Proceed anyway (or wait 5 seconds) ? (y,N) <proceeding>
You would think if you blkid as suggested in the reference page you would see a difference but no...
Code:
lubuntu@lubuntu:~$ blkid
/dev/sda1: UUID="b2d85e0f-559b-4350-9ec8-83860ed5740a" TYPE="ext4" PARTUUID="7ec4ada2-01"
/dev/sda5: UUID="b2d85e0f-559b-4350-9ec8-83860ed5740a" TYPE="ext4" PARTUUID="7ec4ada2-05"
/dev/sr0: UUID="2017-10-29-01-25-15-00" LABEL="Boot-Repair-Disk 32bit" TYPE="iso9660" PTUUID="7e809be6" PTTYPE="dos"
/dev/loop0: TYPE="squashfs"
/dev/sda6: UUID="55636d3c-1197-4022-a365-1409b12eb49b" TYPE="swap" PARTUUID="7ec4ada2-06"
/dev/zram0: UUID="4701e26f-c6d4-4670-ac10-534417e5d723" TYPE="swap"
/dev/sdb1: SEC_TYPE="msdos" LABEL="USB00" UUID="53A9-130E" TYPE="vfat"
This is debian bug apparently which would be closed, but maybe not on the version used in grub-repair...
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857336
Anyhow, blkid used on grub-repair 32-bit doesn't give you the straight dope. But if you do a tune2fs -l you get
Code:
lubuntu@lubuntu:~$ sudo tune2fs -l /dev/sda1
tune2fs 1.43.5 (04-Aug-2017)
Filesystem volume name: <none>
Last mounted on: /mnt/boot-sav/sda5
Filesystem UUID: fa18b6db-67e1-4bdb-ac96-26184cb12d35
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 2252160
Block count: 9036024
Reserved block count: 451800
Free blocks: 5651566
Free inodes: 1973497
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1021
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8160
Inode blocks per group: 510
Flex block group size: 16
Filesystem created: Thu Jul 13 03:32:17 2017
Last mount time: Mon Apr 15 13:16:38 2019
Last write time: Mon Apr 15 21:32:16 2019
Mount count: 0
Maximum mount count: -1
Last checked: Mon Apr 15 13:51:44 2019
Check interval: 0 (<none>)
Lifetime writes: 182 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: a1564bc5-8d00-459f-a47b-702989d3202d
Journal backup: inode blocks
lubuntu@lubuntu:~$ sudo tune2fs -l /dev/sda5
tune2fs 1.43.5 (04-Aug-2017)
Filesystem volume name: <none>
Last mounted on: /mnt/boot-sav/sda5
Filesystem UUID: 7167ab0e-c4fb-49b8-912a-eb025f50f33e
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 1272960
Block count: 5091328
Reserved block count: 254566
Free blocks: 1769335
Free inodes: 994297
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1022
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8160
Inode blocks per group: 510
Flex block group size: 16
Filesystem created: Thu Jul 13 03:32:17 2017
Last mount time: Mon Apr 15 13:16:38 2019
Last write time: Mon Apr 15 18:52:28 2019
Mount count: 0
Maximum mount count: -1
Last checked: Mon Apr 15 13:25:28 2019
Check interval: 0 (<none>)
Lifetime writes: 182 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: a1564bc5-8d00-459f-a47b-702989d3202d
Journal backup: inode blocks
The short of it is Filesystem UUID have been changed by tune2fs regardless of what blkid says.
Beware false negatives....
So I can mark 4 as done I guess.
And proceed to 5.
- Step 5: Update grub and fstab
Lambda-user