SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-01-19 17:24:53

dhave
Member
Registered: 2012-11-05
Posts: 24

Swapping hard drives (a brainteaser)

I have a Thinkpad T420. Crunchbang is currently installed on a 120Gb secondary hard drive in the Ultrabay. Arch Linux, which I still like very much and often use, is installed on the 500Gb internal hard drive. I usually boot into Crunchbang, but several times a week I still boot into Arch, which I like to keep current.

I'd like to swap, putting Crunchbang on the larger, internal drive and Arch on the smaller, secondary drive.

Many times I've migrated to a new hard drive just by doing a partition-by-partition copy from the old drive to the new one. In this case, though, I want to exchange locations of Crunchbang and Arch.

Does anyone see a way to do this without copying both installations to a third drive temporarily? I suppose I could scavenge a couple of unused 3.5" drives for this purpose, but it would be a hassle.

I don't want to reinstall either distro from scratch, by the way. I really want to swap without having to reinstall and reconfigure.

Thanks!

Last edited by dhave (2013-01-19 17:37:38)

Offline

Be excellent to each other!

#2 2013-01-19 18:03:24

zalew
#! Junkie
From: Warsaw, .PL
Registered: 2012-03-28
Posts: 374

Re: Swapping hard drives (a brainteaser)

I guess the 500gb isn't filled up. so, unless you partitioned it physically instead of logically, you can shrink the current arch partition and make a second physical one, dd cb in there, then dd arch where cb was, then remove the old arch partition and move the one with cb closer? just thinking loudly...

Offline

#3 2013-01-19 19:46:01

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Swapping hard drives (a brainteaser)

Offline

#4 2013-01-19 21:03:51

JLloyd13
#! Member
Registered: 2012-08-08
Posts: 83

Re: Swapping hard drives (a brainteaser)

Offline

#5 2013-01-21 20:06:37

dhave
Member
Registered: 2012-11-05
Posts: 24

Re: Swapping hard drives (a brainteaser)

Thanks, zalew, VastOne and JLloyd13. I used info from each of your solutions to solve my problem.

(1) I attached a usb optical drive and booted a recent version of System Rescue CD. I launched System Rescue's graphical interface, which is Xfce.

(2) In System Rescue, I used gparted to shrink my Arch /home partition to free up space on the 500Gb drive.

(3) Also using gparted, I copied over my CrunchBang partitions from the 120Gb drive to the now-unallocated free space on the 500Gb. 

(4) After shutting down, I removed the 120Gb drive from the ultrabay, leaving only the 500Gb drive installed.

I was very pleased to see that the uuid of my CrunchBang partitions remained the same after they were copied. Since I have grub2 set up on the 500Gb drive to see uuids rather than relative sdX designations, I didn't even have to change my grub.cfg to be able to boot right back into CrunchBang after removing the 120Gb.

In another session, I used gparted on SystemRescue to expand my CrunchBang partitions to fill the remaining space on my 500Gb drive, giving me a little more space for the time being. Again, I was pleased to see that the uuids remained unchanged even after increasing the size of my CrunchBang partitions. I wasn't sure this would be the case.

Later, I'll likely move Arch to the 120Gb drive and devote the entire 500Gb drive to CrunchBang. 

Thanks again for the helpful suggestions.

Offline

#6 2013-01-21 21:26:49

JLloyd13
#! Member
Registered: 2012-08-08
Posts: 83

Re: Swapping hard drives (a brainteaser)

Last edited by JLloyd13 (2013-01-21 21:27:51)

Offline

#7 2013-01-21 21:34:36

dhave
Member
Registered: 2012-11-05
Posts: 24

Re: Swapping hard drives (a brainteaser)

Last edited by dhave (2013-01-21 21:40:03)

Offline

#8 2013-01-21 21:52:42

zalew
#! Junkie
From: Warsaw, .PL
Registered: 2012-03-28
Posts: 374

Re: Swapping hard drives (a brainteaser)

cool. now I noticed I said 'dd' when talking about partitions not disks.

I tried a shared home once ago between debian xfce and xubuntu (or was it lxde and lubuntu?) - configs borkage.

Offline

#9 2013-01-21 22:32:57

dhave
Member
Registered: 2012-11-05
Posts: 24

Re: Swapping hard drives (a brainteaser)

Last edited by dhave (2013-01-21 22:46:00)

Offline

#10 2013-01-22 01:42:19

Richard
Member
From: Venezuela
Registered: 2011-07-17
Posts: 40

Re: Swapping hard drives (a brainteaser)

Last edited by Richard (2013-01-22 01:52:32)


MX-14 & Manjaro Xfce4; 
#! Waldorf Xfce4.8

Offline

#11 2013-01-22 03:06:39

JLloyd13
#! Member
Registered: 2012-08-08
Posts: 83

Re: Swapping hard drives (a brainteaser)

Offline

#12 2013-01-22 20:29:09

dhave
Member
Registered: 2012-11-05
Posts: 24

Re: Swapping hard drives (a brainteaser)

Thanks for elaborating, JLloyd13(5).

I'm seeing that sharing pure data files -- docs, music, videos and such -- makes a lot of sense. I'm thinking I probably won't experiment with sharing /home. I do use different usernames for Arch and for CrunchBang, so I imagine I could keep things straight as far as user-specific onfig files go, but maybe the benefit isn't worth the risk.

What I've always done in the past, and will continue to do, is to just mount the other distro's partitions on an as-need basis. I do this from time to time when I want to consult files in the other distro's /etc or /home directories.

Offline

#13 2013-01-24 20:43:58

lupinehorror
Member
From: alba
Registered: 2012-10-21
Posts: 12
Website

Re: Swapping hard drives (a brainteaser)

i'd recommend not sharing /home
it can lead to all manner of config issues and GUI strangeness (at least in my case...it might be different for others).
even having a persistent /home partition (as i always do) can make switching between some distros difficult.


you know it's love when you memorise her IP address to save DNS overhead

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo