LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-11-2004, 06:55 PM   #1
edman007
Member
 
Registered: Sep 2003
Distribution: Slamd64
Posts: 168

Rep: Reputation: 30
clone partitions different sizes


how do i clone one partition onto another partition, i can't boot off any linux boot/install cd i have because none of them have my SATA hard drive controller drivers, i have tried dd if=/dev/hda2 of=/dev/hde2 and that booted fine but said i have only a 17GB partition when it was 78GB, i tried using the tar thing (cd /;tar cf - . | (cd /mnt/hd && tar xBf -)) but i stopped it when it said it would ignore sockets, so how do i copy a whole partition and still have it bootable
 
Old 01-11-2004, 07:56 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,540

Rep: Reputation: 212Reputation: 212Reputation: 212
Using partimage is probably the easiest way I know. Here's some links describing this free program:

http://www.partimage.org/

http://www.desktop-linux.net/backups.htm
 
Old 01-11-2004, 08:31 PM   #3
edman007
Member
 
Registered: Sep 2003
Distribution: Slamd64
Posts: 168

Original Poster
Rep: Reputation: 30
the libraries it needs won't compile , i'll keep trying but does anyone have another suggestion
 
Old 01-11-2004, 09:54 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
I have no positive suggestion but I know this:
partimage will give you the same result as the one you saw with dd, i.e. you'll end up 'cloning' the partition size too.
 
Old 01-11-2004, 10:24 PM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,540

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
the libraries it needs won't compile , i'll keep trying but does anyone have another suggestion
Don't install it on slack. In fact, partimage won't image a mounted partition so installing it on the distro you want to image is useless. Get the Sysrescue cd version. You can download the iso image at the above posted link for partimage. Just burn the iso as an image and you have a bootable rescue cd with partimage among the tools at your disposal. Be sure to read the documentation and the info in my second link because partimage can be a little cryptic till you get used to it. Once you master it it is a great tool.

RE the partition size on partimage, I believe partimage can restore an image to any partition equal to or greater than the original. It won't do anything to change the size of the partition you restore to.

Last edited by kilgoretrout; 01-12-2004 at 12:19 PM.
 
Old 01-12-2004, 04:14 PM   #6
edman007
Member
 
Registered: Sep 2003
Distribution: Slamd64
Posts: 168

Original Poster
Rep: Reputation: 30
i just downloaded and burned the iso an it won't boot, it freezes trying to load SATA drivers (promise SATA controller), this is just the reason i want to clone the partitions no precomiled kernel i have found supports the controller including the slack-install cd's so i installed it onto a PATA drive and recompiled the kernel to support my SATA, anyone know how i can maybe put the kernel i compiled on either the slack-install cd or on the partimage cd
 
Old 01-12-2004, 04:45 PM   #7
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
why not try the tar thing? I think the sockets are created on the fly when the system starts running - I might be wrong but I think it's worth a try. Copy your partition with tar and then setup the bootloader to boot from the SATA drive (I would keep the ability to boot from your other drive if at all possible).
 
Old 01-12-2004, 06:21 PM   #8
edman007
Member
 
Registered: Sep 2003
Distribution: Slamd64
Posts: 168

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by quatsch
why not try the tar thing? I think the sockets are created on the fly when the system starts running - I might be wrong but I think it's worth a try. Copy your partition with tar and then setup the bootloader to boot from the SATA drive (I would keep the ability to boot from your other drive if at all possible).
well i tried it and so far so good tar exited with an error after alot of errors in /proc but i told it to exculde that and saw a site that said /proc wasn't even needed and to un-mount it witch didn't work, but it booted fine with no errors, i hope i don't get anything un-expected
 
Old 01-12-2004, 06:53 PM   #9
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,540

Rep: Reputation: 212Reputation: 212Reputation: 212
Will knoppix boot on your system? If so, partimage is on knoppix and can be used from there.
 
  


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
installation partitions and sizes in 9.1 jessj SUSE / openSUSE 5 06-01-2005 06:33 AM
partitions sizes? rontopia Linux - Newbie 10 12-10-2004 12:28 PM
Which sizes on hard-disk partitions? andersh3 Linux - Newbie 1 05-28-2004 10:22 AM
linux partitioning (sizes of partitions) r3dhatter Linux - General 14 05-09-2004 03:37 PM
Partitions sizes eweborg Linux - Software 1 03-09-2002 10:43 AM


All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration