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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
09-26-2007, 03:52 PM
|
#1
|
Member
Registered: Aug 2007
Location: Florida panhandle, USA
Distribution: Working with PClinuxOS 2007 and Ubuntu 10.04 at the moment
Posts: 34
Rep:
|
Partition Manipulation in PCLOS
{SOLVED}
I recently got PCLOS up and going on my machine in a dual boot config with Win 98, but the HD is nearly full (old 20GB drive).
I have a new 80 Gb drive on order and plan to transfer all or part of the old drive to the new drive. Ideally I'd like to leave my original Win 98 partitions on the old drive and move all the PCLOS partitions to the new drive and expand them so there is more room for the linux files I'll be adding.
I'd also like to store images of the windows partitions on the new drive "just in case" the old drive dies.
I have an old version of Partition Magic that I'm comfortable using for this sort of thing, but it doesn't work with the linux partitions on a drive.
How do I copy/move entire partitions from the old drive to the new drive in PCLOS?
Would it be easier to set up a mirrored drive first, then change the sizes of the partitions on the new drive afterward and revert to a non-mirrored setup and wipe the old drive?
Can anyone supply options and/or a sequence of steps to follow for someone who is completely unfamiliar with how linux handles new hardware?
Thanks for any advice.
Last edited by dcalki; 09-30-2007 at 11:27 AM.
|
|
|
09-26-2007, 04:44 PM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
I've done what you propose to do. It isn't all that difficult, if you plan things out before you start.
You don't say what version of Partition Magic you will use, except to say it's old. So, I'll assume something like PM 4.0, which doesn't do Linux.
1) install the new drive. set the jumpers so that the old drive is master, and the new drive is slave.
1a) when you power up, go into the BIOS and check the CMOS settings to see that the drive is recognized and the size is correct. Then set the boot order so that the cd/dvd drive is polled first, the old drive second, and the new drive last.
2) boot PCLOS. partition the new drive with a primary partition for Linux, a swap partition, and a fat32 partition for the windows images you want to store.
3) use the dd command to copy the MBR from the master drive to the slave drive.
4) use either tar or dd to copy PCLOS from the master drive to the slave drive (there are many posts in these forums that cover those commands).
5) If you want to keep the old drive as master, you will have to edit /boot/grub/menu.lst on the new drive to change disk and partition locations for the new PCLOS. also add an entry for the new disk and partition so that it shows up in the grub menu on boot.
6) edit /etc/fstab on the new disk to show the new device (hdb instead of hda, and appropriate partition numbers and mount points).
7) reboot and test it to see that the copied OS boots.
8) only after testing to see that it all works, then reformat the old PCLOS partition for windows use.
I think that covers it all. If I've missed anything, someone will correct me.
Last edited by bigrigdriver; 09-26-2007 at 04:47 PM.
|
|
|
09-30-2007, 11:27 AM
|
#3
|
Member
Registered: Aug 2007
Location: Florida panhandle, USA
Distribution: Working with PClinuxOS 2007 and Ubuntu 10.04 at the moment
Posts: 34
Original Poster
Rep:
|
UPDATE:
Thanks for the reply. I did some more digging on the site and found a reference to GParted (download at Sourceforge.net) which is the linux GUI equivalent of Partition Magic.
GParted made things MUCH easier for me. No more eyes spinning from all the command line options, just point, click, and off you go.
Anyone out there who is trying to shuffle partitions around on your hard drive should check out GParted. Download, burn to CD, and it's bootable off the CD so you can work on your hard drive partitions. Great stuff.
|
|
|
All times are GMT -5. The time now is 02:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|