You are not logged in.
Pages: 1
Hi,
I recently bought a nvme m.2 ssd and finally got around to installing it yesterday. Now, I have everything on my normal ssd, and my goal was to copy over all my files to the m.2, wipe the normal ssd, and re-purpose it for something else. I used clonezilla to copy everything over, and it was a success. Now, I am trying to change my boot, home, root, and swap partitions from the normal ssd to the m.2. However, clonezilla copied the UUIDs of my regular ssd to my m.2.
This is the output of sudo blkid:
dev/nvme0n1p3: UUID="f74df57e-3814-412f-8123-9501cec94a1d" TYPE="swap" PARTUUID="2d1159a0-4338-6249-a62d-a2513be9f173"
/dev/nvme0n1p1: UUID="C09B-E047" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="8dd230c8-45b1-3d4f-9436-49795d38f969"
/dev/nvme0n1p4: UUID="59574b54-fc8a-4e21-b3a9-af7db52b7343" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="1bf0f6a9-5745-774c-a52a-188a65fe93ee"
/dev/nvme0n1p2: UUID="5f83fb9e-6786-471a-86da-b21b7e2e0ea0" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="68aacd66-de90-8548-beca-7f33d01925d4"
/dev/sdb1: UUID="85B3-DD7E" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="91b2792b-01"
/dev/sda4: UUID="59574b54-fc8a-4e21-b3a9-af7db52b7343" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="1bf0f6a9-5745-774c-a52a-188a65fe93ee"
/dev/sda2: UUID="28588e3a-b7ea-4667-bf17-f9467167f544" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="68aacd66-de90-8548-beca-7f33d01925d4"
/dev/sda3: UUID="f74df57e-3814-412f-8123-9501cec94a1d" TYPE="swap" PARTUUID="2d1159a0-4338-6249-a62d-a2513be9f173"
/dev/sda1: UUID="C09B-E047" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="8dd230c8-45b1-3d4f-9436-49795d38f969"I was able to run
sudo tune2fs -U random /dev/nvme0n1p2successfully and same for partition 4, which changed those specific UUIDs. I did have to run the command
sudo e2fsck -f /dev/nvme0n1p4and
sudo e2fsck -f /dev/nvme0n1p2beforehand. However, when I run it on
/dev/nvme0n1p1or
/dev/nvme0n1p3I get this error:
`$ sudo tune2fs -U random /dev/nvme0n1p1` :
tune2fs 1.46.5 (30-Dec-2021)
tune2fs: Bad magic number in super-block while trying to open /dev/nvme0n1p1
/dev/nvme0n1p1 contains a vfat file system`$ sudo tune2fs -U random /dev/nvme0n1p3` :
`tune2fs 1.46.5 (30-Dec-2021)
tune2fs: Bad magic number in super-block while trying to open /dev/nvme0n1p3
/dev/nvme0n1p3 contains a swap file system`After reading through 10yr old forums, I came to the conclusion that this was not the best way of upgrading my storage devices and moving my files. I believe the best way is to copy all my configuration files and create a fresh install on the new storage device. Though I'm not sure how to restore from backup on a fresh install.
Anyways, this is where I'm at. Am I correct in my research that all I have to do is change the UUIDs and edit my /etc/fstab? Is there anything I'm missing?
P.S how do I format code blocks on this forum?
Thanks
Last edited by protein-farts (2022-07-17 23:43:59)
Offline
P.S how do I format code blocks on this forum?
https://wiki.archlinux.org/title/Genera … s_and_code
https://bbs.archlinux.org/help.php#bbcode
[code]code goes here[/code]Offline
protein-farts wrote:P.S how do I format code blocks on this forum?
https://wiki.archlinux.org/title/Genera … s_and_code
https://bbs.archlinux.org/help.php#bbcode[code]code goes here[/code]
Sweet, thank you!
Offline
Anyways, this is where I'm at. Am I correct in my research that all I have to do is change the UUIDs and edit my /etc/fstab? Is there anything I'm missing?
Yes you can just edit the UUID's in fstab.
For future reference:
https://wiki.archlinux.org/title/migrat … w_hardware
EDIT: You don't really need clonezilla. rsync or dd will be sufficient.
Last edited by d_fajardo (2022-07-18 07:49:53)
Offline
Pages: 1