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.
Last edited by dhave (2013-01-19 17:37:38)
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...
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.
Last edited by JLloyd13 (2013-01-21 21:27:51)
Last edited by dhave (2013-01-21 21:40:03)
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.
Last edited by dhave (2013-01-21 22:46:00)
Last edited by Richard (2013-01-22 01:52:32)
MX-14 & Manjaro Xfce4;
#! Waldorf Xfce4.8
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.
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