You could look afterĪs root then do in terminal : dd if=/dev/sda of=/dev/sdbĭd makes here a 1 to 1 copy of your hard disk to your SSD, when both have the size of 1 TB or when the SSD is bigger than 1TB - then free space stays free. In case the old hard disk is /dev/sda (source disk) and the SSD Plug your SSD to adapter and then USB cable to your Linux machine. A USB adapter cable for an SSD costs about 20-30 €. The SSD must not be smaller than the old hard disk. Next I shut down and booted into a live USB of Ubuntu 16.06.For this procedure it would be better to be disconnected from the internet. Since presumably you’ve configured your SSD to mirror this setup, the partitions are probably at something like /dev/sdb1, /dev/sdb2, and /dev/sdb3. dev/sda2 refers to my HDD’s second partition, an ext4 partition holding all my data, and /dev/sda3 refers to my swap partition. dev/sda1 refers then to my HDD’s first partition, which in my case happened to be an EFI boot partition. Partitions to your devices then, are generally in order. So devices are all under /dev/*, and when mounted they’re usually represented in /mnt or /mount or /media. If you’re a newbie, one thing to remember is that *nix represents everything as file descriptors. My HDD was detected at /dev/sda, and my SSD was detected at /dev/sdb. Take note of where your devices are detected. Viewing your current partition table type in Gparted:Ĭreating a new partition table in GParted: Mine was msdos until I erased the SSD and recreated the partition table to match my HDD drive I made it a GPT partition table. When you open GParted, you can see what partition table type your SSD has. With Ubuntu (including live varieties) and because it’s been around since literally forever and is great. I used GParted mostly because it comes preinstalled Making sure your drive is set up correctly is the first step. This is notable because if your machine is older and you’re using bios, the instructions below may be Older machines use an IBM standard you may have heard of called BIOS. If you don’t know your basic PC stuff, it’s just the layer between your OS and the hardware/firmware. So my machine, being from 2014/2015, uses an Restart ubuntu, run a command so hibernate still works.Modify fstab and some other files-I’d-never-had-figured-out-myself to point to your new drive.Restore grub bootloader using a series of arcane commands.Boot into a live linux install, mount the drives, rsync the necessary files.Table using GParted, add an ext4 partition for my actual files, and a swap partition. In my case, I had to create a GPT partition Partition the SSD so as to mirror the HDD.Erase the SSD, and ensure it is large enough to fit your entire ubuntu installation.How to Copy an Ubuntu Installation from HDD to SDD It might be nice to document it here for future reference. Tonight I moved my installation from HDD to SSD. Then I started playing with some stuff and decided I wanted to decrease disk IOs, so After all, I leave the PC on pretty much 24/7. I’d been meaning to switch my booting to the SSD, but never gotĪround to it. Was cool until I noticed a Slickdeal on SSDs and had to purchase a ~460gb drive. I purchased a computer a while back and installed Ubuntu on the HDD. Shifting an Ubuntu Install from HDD to SSD
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |