Howto samsung ssd: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
No edit summary
Line 42: Line 42:
now we copy all content from old disk to the new one mount at /mnt/archlinux using rsync:
now we copy all content from old disk to the new one mount at /mnt/archlinux using rsync:
  rsync /* /mnt/archlinux --exclude /sys --exclude /proc --exclude /media --exclude /mnt/archlinux
  rsync /* /mnt/archlinux --exclude /sys --exclude /proc --exclude /media --exclude /mnt/archlinux
when rsync finish, use arch-chroot to enter the new drive environment:
arch-chroot /mnt/archlinux
identify new boot and root partitions UUID:
blkid|grep -e /dev/nvme0n1p1 -e /dev/nvme0n1p2
update /etc/fstab and change the UUID for your boot and root partitions:
UUID=F9D0-C830             /boot vfat defaults 1 2
UUID=80cc0cfd-a13f-47a2-9150-90cf8773662c /      ext4 defaults 0 2

Revision as of 02:01, 8 May 2023

speed test

identify drive letter:

fdisk -l|grep Samsung -B 1

test hard drive speeds:

hdparm -Tt /dev/nvme1n1

update firmware

first, unmount any filesystem mounted on the drive or if it’s your boot drive, you would need to boot using a livecd.

navigate to https://bit.ly/3nB8vXb in firmware find your drive model and download the iso:

wget https://download.semiconductor.samsung.com/resources/software-resources/Samsung_SSD_990_PRO_1B2QJXD7.iso

mount the iso:

mkdir /mnt/iso
mount -o loop Samsung_SSD_990_PRO_1B2QJXD7.iso /mnt/iso

decompress initrd on temp directory:

mkdir /tmp/samsung 
cd /tmp/samsung
gzip -dc /mnt/iso/initrd | cpio -idv --no-absolute-filenames

enter the following directory and execute fumagician:

cd /tmp/samsung/root/fumagician
./fumagician

from old drive to new one

first identify the drive letter:

fdisk -l|grep Samsung -B 1

next create the new partitions on drive using parted:

parted /dev/nvme0n1

inside parted create the partition table as gpt then boot and root partitions:

mklabel gpt
mkpart primary 1 1G
mkpart primary 1G 100%

inside parted set partition 1 as bootable:

set 1 boot on
set 1 bios_grub on
quit

format partitions with filesystems:

mkfs.fat -F32 /dev/nvme0n1p1
mkfs.ext4 /dev/nmve0n1p2

now create temporary directory to mount this partitions:

mkdir /mnt/archlinux
mount /dev/nmve0n1p2
mkdir /mnt/archlinux/boot
mount /dev/nvme0n1p1 /mnt/archlinux/boot

now we copy all content from old disk to the new one mount at /mnt/archlinux using rsync:

rsync /* /mnt/archlinux --exclude /sys --exclude /proc --exclude /media --exclude /mnt/archlinux

when rsync finish, use arch-chroot to enter the new drive environment:

arch-chroot /mnt/archlinux

identify new boot and root partitions UUID:

blkid|grep -e /dev/nvme0n1p1 -e /dev/nvme0n1p2

update /etc/fstab and change the UUID for your boot and root partitions:

UUID=F9D0-C830					            /boot		vfat	defaults			1	2
UUID=80cc0cfd-a13f-47a2-9150-90cf8773662c	/       	ext4	defaults			0	2