Howto samsung ssd: Difference between revisions
No edit summary |
|||
Line 19: | Line 19: | ||
cd /tmp/samsung/root/fumagician | cd /tmp/samsung/root/fumagician | ||
./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 |
Revision as of 01:58, 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