The CPU is Core i5, MEM 6GB, but can the disk speed up the HDD PC? I was consulted. After all, if it is an old HDD in Windows 10, it is slow overall.
So, since the amount of HDD used was small, I decided to move to SSD, which has less capacity than HDD, in order to make it cheaper. After the replacement, it will be a very comfortable computer.
Make a note of that time.
Delete unnecessary files from the last partition of the disk to be copied (usually the last drive), or save it to another drive or USB memory to free up space. Make sure that the capacity to be secured is equal to or greater than the difference between the HDD capacity and the SSD capacity.
Use Kali Linux Gparted booted from a USB stick to reduce partition capacity.
Make sure that the reduced HDD capacity is smaller than the SSD capacity. Unused area is not wasted because it is incorporated into the system after replacement. So, please take the plunge and reduce it without aiming for the last minute. If the usage is larger than SSD, ** file system repair ** will be required after copying.
At this time, ** Free space preceding ** should never be ** tampered with **.
Use the dd command to copy the data from HDD to SSD.
Use the fdisk command to identify the disk to copy. Judge from the disk manufacturer / model / capacity / partition configuration.
In the case of the following execution example Copy source: / dev / sda Copy destination: / dev / sdc Will be.
kali@kali:~$ sudo /sbin/fdisk -l
Disk /dev/sda: 232.91 GiB, 250059350016 bytes, 488397168 sectors
Disk model: TOSHIBA MK2576GS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6b6fd128
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 25167871 25165824 12G 27 Hidden NTFS WinRE
/dev/sda2 * 25167872 25577471 409600 200M 7 HPFS/NTFS/exFAT
/dev/sda3 25577472 256985087 231407616 110.4G 7 HPFS/NTFS/exFAT
/dev/sda4 256985088 420825087 163840000 78.1G 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 59.49 GiB, 63864307712 bytes, 124734976 sectors
Disk model: Flash Drive
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2259da88
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 64 5625087 5625024 2.7G 17 Hidden HPFS/NTFS
/dev/sdb2 5625088 5626559 1472 736K 1 FAT12
Disk /dev/loop0: 2.4 GiB, 2565337088 bytes, 5010424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdc: 223.58 GiB, 240057409536 bytes, 468862128 sectors
Disk model: 00SSD1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
kali@kali:~$
bs and count are decided like this. bs = 16000000: Copy unit (copy performance improves when it is large to some extent) count = 15000: Copy capacity / bs (240GB / 16MB = 15000)
kali@kali:~$ sudo dd if=/dev/sda of=/dev/sdc bs=16000000 count=15000
The copy at this time took about 2 hours.
You can check the progress of dd by opening another terminal and sending a USR1 signal to dd.
kali@kali:~$ sudo bash
root@kali:/home/kali# watch -n 60 pkill -USR1 dd
After copying the disc, replace the disc on your computer.
Incorporate the Free Space secured on the copy source HDD into the file system. Expand the capacity of the last partition in Computer Management> Storage> Disk Management.
Select the last partition and select ** Expand Volume **
Follow the menu 1
Follow the menu 2
Follow the menu 3
Follow the menu 4
Done!
Caution: Since I forgot to take a screenshot while working, I am using the image that reproduces the operation on the SSD after replacement for the operation image on the HDD.
Recommended Posts