Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[DONE] Best/safest way to move / from one HDD to another?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 980
Location: Somewhere in Denmark

PostPosted: Tue Aug 18, 2015 7:30 pm    Post subject: [DONE] Best/safest way to move / from one HDD to another? Reply with quote

I have a PCEngines APU1D4 with a SDD (sda)+ a HDD (sdb).

Currently booting off the sdb (grub2) and / on sdb - I'm considering a move to the SDD, what would be the safest/correct way to make the move?


Last edited by freke on Wed Aug 19, 2015 2:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Tue Aug 18, 2015 7:36 pm    Post subject: Reply with quote

freke,

You need to read up about stage4. That's making a backup of your install, then restoring it.
The steps are the same but if you are careful, you may not need a backup.
Backups are always a good idea.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 980
Location: Somewhere in Denmark

PostPosted: Wed Aug 19, 2015 11:11 am    Post subject: Reply with quote

Thx... more or less forgot about stage4 (yeah - I happen to cry when my HDDs die:))

Doesn't seem to bad time-wise - ~45mins for the test tar I just did, I don't like extended downtime on the box as it's running my dns/dhcp/mail - I expect the untar to be quicker and then more or less just a reboot (after modifying grub and fstab) from /dev/sda instead of /dev/sdb....
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Wed Aug 19, 2015 12:00 pm    Post subject: Reply with quote

Not too long ago I did a similar thing (for my /home drive and for my /<root> drive)

Each time I used rsync to copy the data. /home was done 1st & then that partition was umounted, fstab updated & remounted
Once that was confirmed to be valid /<root> was initiated, grub re-written

Power down. swap drive channels, boot.
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Wed Aug 19, 2015 2:51 pm    Post subject: Reply with quote

I actually did this not too long ago on my system, moving my root partition to a ssd drive partition. I simply just booted into a livecd environment (systemrescue cd), mounted both drives, and did a straight cp (don't recall the flags I used right off hand) from one to another; adjusted my fstab and rebuilt my grub2 and no issues. (Of course the new partition was already setup for the same fs, ext4).

This wasn't my first time, just using plain old cp to copy everything over (I made sure the new setup worked before wiping the old partition).
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 980
Location: Somewhere in Denmark

PostPosted: Wed Aug 19, 2015 2:53 pm    Post subject: Reply with quote

All (seemingly) went well :D

Thx for the stage4 pointer :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum