
G'day, On 04/06/14 16:17, Terry Duell wrote:
Hello All, I now have my SSD and have been trying to sort out how best to go about the business of moving my system to it. There is a lot of stuff on the web about this and I think I have some of it figured out, but none I have seen really fits what I want to do. Best to check before I bugger everything up.
Firstly I am running Fedora 20 and my current disc is 500 GB formatted as /boot = 577 MB, / = 52 GB, swap = 8.4 GB, /home = 439 GB. My SSD is 256 GB.
My thinking is that I would format the SSD as /boot = 500 MB, / = 50 GB, swap = 8 GB, and /home = 197 GB. After setting up the SSD as my boot disc I will transfer a number of folders from my current /home and leave the rest on the current disc which I would mount as /home/terry/disk2 (say).
Traditionally, /home was a separate partition to prevent lusers from filling up the root partition and potentially bringing the server down. Is there any advantage to having a separate /home partition on a Desktop system with only one (or a few) end-users?
I should add I have a second 500 GB disc that I can use to hold stuff while reformatting my current 500 GB drive.
If you have a spare 500 GB drive, I'd recommend using that instead (and not reformatting your existing 500 GB drive), until you're satisfied with your new setup, say in a few months down the track. You have a rollback option (and a data backup) then if everything goes pear shaped.
So, the plan looks like this...(but some bits are not clear to me) install the SSD and partition (as above) as ext4 using gparted. Reboot with live distro and mount the 500 GB (spinning) disc and the SSD; sudo mkdir /media/src sudo mkdir /media/ssd
sudo mount /dev/sda1 /media/src sudo mount /dev/sdd1 /media/ssd
then copy src to ssd sudo rsync -ax /media/src/ /media/dest/
I think this will copy my /boot only, is that correct?
If /dev/sda1 = /boot, then yes.
If it is only /boot copied then I need to also...
sudo mount /dev/sda2 /media/src sudo mount /dev/sdd2 /media/ssd
then copy src to ssd sudo rsync -ax /media/src/ /media/dest/ to copy my / across.
now I can unmount /media/src, and unmount /media/ssd
I now need to get the UUID of the SSD drive (sudo /sbin/blkid) and mount the SSD partition where Fedora is now installed... sudo mount /dev/ssd2 /media/ssd (assuming /dev/ssd2 is my new /)
open /media/ssd/etc/fstab and replace the UUIDs of old disc with the UUIDs of the SSD, and include the options noatime,discard
also add tmpfs to fstab for some temp and logs
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0 tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
Now to reinstall grub, after a reboot with live distro...
Here it gets a bit murky for me, not quite sure what I should be doing. What I have read says mount /dev/sdd1 /mnt then proceeds to also mount /sys /proc /run /dev under /mnt, but this doesn't look right when my /dev/sdd1 is /boot
Can someone please clear up my confusion and perhaps point me to some advice that better fits the partitioning scheme I want to end up with?
Not sure about this either, but I get the impression at this point you want to chroot into your SSD root partiton (/dev/sdd2), and once there, mount all your other SSD partitions (if /etc/fstab has already been configured, 'mount -a' should do the trick). Once chrooted, you can install the boot loader. Btw, is there any barrier to just doing a fresh install on the SSD, get that partitioned, bootable and running (as part of the installation process), and then mounting your existing 500 GB disk to copy the necessary data across? Crispy.