Can I move my linux installation to another Hard Drive?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can I move my linux installation to another Hard Drive?
I am dual booting Fedora Core 1 with Windows XP. I allocated 4GB to the Linux partition (I had very little free space) and have now run out of space Is it possible to move my Linux installation to an entirely new hard drive if I get one? If so, how would I go abut doing this?
As an alternative, is it possible to resize my Linux partition to take space from another partition? I could allocate to it another 2GB until I get a new HD. Could I resize it with Partition Magic in Windows for example? Or is there perhaps an equivalent program available for linux?
I need the quickest solution to keep working right now. Have a project working on for school that is being out on hold until I get more space on the partition.
The story on Partition Magic (now owned by Symantec) is that it can be used to "create, resize, move, copy, and label partitions." My cousin wasn't too crazy about it, however it seems to be pretty popular. Take a look at the website and see if it's what you might want:
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
no, you don't have to do a new install on a new hard drive.
since you want a bigger partition, you should make whatever partitions you want on the new drive, then use tar to copy the stuff over.
use the boot cdrom from you linux distro. mount your linux distribution where you wish, and the partition you are going to copy the stuff to.
cd to old partition
tar clfvp - . |(cd /newpartition; tar xvpf - --same-owner)
that will copy everything.
then update your boot loader, and /etc/fstab to make it match the new configuration.
Thanks for all the suggestions! After posting my original question I went and tried to remove packages I thought I would not need. However, I got errors to the effect that I needed to install some packages before I could remove them! I think it was just trying to remove packages that were not there. But that was still annoying and needs some work!
Anyways, I just decided to do a reinstall on the same partition, but with a smaller set of packages specific to what I am doing. I want to do some work to present in the morning so I need to get up and going again. I wont lose much really. Most of my time since installing Core 1 has been spent playing arouund with the kenel and upgrading I might as well start afresh and do what I originally set out to do: my assignment that has nothing to do with kernel recompiling
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.