Howto samsung ssd: Difference between revisions
Mandulete1 (talk | contribs) |
Mandulete1 (talk | contribs) |
||
Line 5: | Line 5: | ||
hdparm -Tt /dev/nvme1n1 | hdparm -Tt /dev/nvme1n1 | ||
install iotop to verify io usage: | install iotop to verify io usage: | ||
pacman - | pacman -Sy iotop --noconfirm | ||
execute iotop as root: | execute iotop as root: | ||
iptop -o | iptop -o | ||
= temperature = | |||
install nvme-cli tool using pacman: | |||
pacman -Sy nvme-cli | |||
= update firmware = | = update firmware = |
Revision as of 18:16, 25 October 2023
speed test
identify drive letter:
fdisk -l|grep Samsung -B 1
test hard drive speeds:
hdparm -Tt /dev/nvme1n1
install iotop to verify io usage:
pacman -Sy iotop --noconfirm
execute iotop as root:
iptop -o
temperature
install nvme-cli tool using pacman:
pacman -Sy nvme-cli
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 /mnt/archlinux 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 -av /* /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
create the following directories:
mkdir /sys /proc /media
we need to install grub on new drive:
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ARCH_DESKTOP /dev/nvme0n1
now create grub configuration:
grub-mkconfig -o /boot/grub/grub.cfg
exit chroot:
exit
umount partition mounted on /mnt/archlinux:
umount /mnt/archlinux/boot umount /mnt/archlinux
reboot the system:
reboot