04-15-2019, 07:12 PM
(This post was last modified: 04-15-2019, 10:06 PM by Lambda-User.)
Hi [member=7644]DeepThought[/member]
I looked into MovingLinuxPartition.
I did the copy with Gparted, and then I did lsblk to check where we were.
WHERE
sda1 IS THE COPY
sda5 IS ORIGINAL
sda6 IS SWAP
HERE IS A GRAB OF GPARTED
https://tinyurl.com/yxdsoom2
You can see I flagged sda1 as boot.
As recommanded on the suggested page I checked UUID and then tried to assign a new UUID on my cloned partition.
blkid said this about the partitions:
I did a fsck and then asked a random UUID from tune2fs like so:
After 30 minutes... Why this? How long is long?
:'(
I looked into MovingLinuxPartition.
- Step 1: Booting through Rescue CD
- Step 2: Create new partition
- Step 3: Clone Ubuntu partition to new location
- Step 4: Generate and update UUID
I did the copy with Gparted, and then I did lsblk to check where we were.
Code:
lubuntu@lubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
loop0 7:0 0 642.9M 1 loop /rofs
sda 8:0 0 55.9G 0 disk
├─sda1 8:1 0 34.5G 0 part
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 19.4G 0 part
└─sda6 8:6 0 2G 0 part
sr0 11:0 1 721M 0 rom /cdrom
zram0 252:0 0 1005.9M 0 disk [SWAP]
WHERE
sda1 IS THE COPY
sda5 IS ORIGINAL
sda6 IS SWAP
HERE IS A GRAB OF GPARTED
https://tinyurl.com/yxdsoom2
You can see I flagged sda1 as boot.
As recommanded on the suggested page I checked UUID and then tried to assign a new UUID on my cloned partition.
blkid said this about the partitions:
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"
I did a fsck and then asked a random UUID from tune2fs like so:
Code:
lubuntu@lubuntu:~$ sudo fsck.ext4 /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>
After 30 minutes... Why this? How long is long?
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"
lubuntu@lubuntu:~$
:'(