LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 03-10-2004, 07:18 PM   #1
enderjm
LQ Newbie
 
Registered: Aug 2003
Location: Jamaica
Distribution: Gentoo
Posts: 27

Rep: Reputation: 15
Unhappy 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.
 
Old 03-10-2004, 08:04 PM   #2
aacovergaauw
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Rep: Reputation: 0
Take a look at www.tldp.org/HOWTO/Partition/ .

Last edited by aacovergaauw; 03-10-2004 at 08:26 PM.
 
Old 03-10-2004, 08:17 PM   #3
aacovergaauw
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Rep: Reputation: 0

Last edited by aacovergaauw; 03-10-2004 at 08:26 PM.
 
Old 03-11-2004, 12:46 AM   #4
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
Hi

You cold try

dd if=/"yourlinux partition or drive" of=/dev/hdb(new hard drive)

i dunno if you would have to unmount the linux partition first but generally dd should work also do a man dd first to discover more options.

This would be the easiest way i think
also when the copy has been completed you will have to update whatever boot loader that you are using.

cheers
 
Old 03-11-2004, 12:55 AM   #5
Nick1104
Member
 
Registered: Feb 2004
Location: California
Distribution: Fedora; Libranet 2.8.1
Posts: 76

Rep: Reputation: 15
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:

http://www.symantec.com/partitionmagic/





Very best,
Nick
 
Old 03-11-2004, 01:04 AM   #6
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
I think you have to do new installation on new harddrive, however to make space on your old hard drive do uninstall remove the extra package.

thanks
 
Old 03-11-2004, 01:14 AM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
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.
 
Old 03-11-2004, 02:00 AM   #8
enderjm
LQ Newbie
 
Registered: Aug 2003
Location: Jamaica
Distribution: Gentoo
Posts: 27

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drive dying. Need to move Linux partition over. Fear58 Linux - General 3 01-29-2005 05:14 PM
Move an existing partition to a new hard drive? vdemuth Linux - Hardware 9 06-04-2004 02:29 AM
can i move my hard drive to a different computer citrus Linux - General 5 04-12-2004 03:30 AM
cd-rom drive working in knoppix Hard drive installation dj_dubbbz Linux - Newbie 5 03-02-2004 10:58 AM
Second hard drive Linux installation Razkul Linux - Software 6 07-02-2003 10:05 PM


All times are GMT -5. The time now is 11:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration