LinuxQuestions.org
Help answer threads with 0 replies.
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 04-30-2012, 07:52 AM   #1
rmknox
Member
 
Registered: May 2010
Posts: 354

Rep: Reputation: 34
can i make a copy of a disk?


I'm running fedora 14 - want to upgrade to fedora 16 - would feelbetter if i had a bootable copy of my disk

Back in the day - on different op systems - typically there were 2 ways to copy a disk - physical and logical. Physical - sector by sector - result bootable and identical to original. Logical - go through file sytem and consolidate various segments of each file - at end change the boot info in the bootstrap to point to the op sys.

I dont seem to find either on Fedora 14 with the virtual drive file system.

I'm getting old and forgetful - and I was never really expert on Unix and its children. is there some easy way for me to make a copy of my drive before I upgrade the op sys? can I do it running something i loaded from the drive i wish to copy?

Dick
 
Old 04-30-2012, 08:05 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Try clonezilla, it generates a bit for bit copy, just grab the live cd.
 
Old 04-30-2012, 08:19 AM   #3
em31amit
Member
 
Registered: Apr 2012
Location: /root
Distribution: Ubuntu, Redhat, Fedora, CentOS
Posts: 190

Rep: Reputation: 55
I would suggest using DD command to make a exact copy of disk
 
Old 04-30-2012, 08:52 AM   #4
rmknox
Member
 
Registered: May 2010
Posts: 354

Original Poster
Rep: Reputation: 34
good grief kdp

I'd forgotten that i have a cd of clonezilla!?

I'm turning 80 and memory aint what it used to was

Thanks

Dick

do I recall correctly that the new disk must be identical to the old one?
 
Old 04-30-2012, 08:58 AM   #5
em31amit
Member
 
Registered: Apr 2012
Location: /root
Distribution: Ubuntu, Redhat, Fedora, CentOS
Posts: 190

Rep: Reputation: 55
it should be the exact size or may be more than exact will also work. but not less than.
 
Old 04-30-2012, 08:59 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Not smaller.
 
Old 05-01-2012, 03:06 PM   #7
rmknox
Member
 
Registered: May 2010
Posts: 354

Original Poster
Rep: Reputation: 34
I used clonezilla to clone my fedora 14 disk, in preparation to doing an upgrade to fedora 16, but have a problem with the upgrade.

I ran preupgrade on the cloned copy (NEW)- setting the original (OLD) aside just in case. Preupgrade fails - boot partition too small (after about 12 hours of on line downloading). A few years ago I started with fedora 12 (maybe) and my boot partition is approx 200MB, while the system now wants more like 500MB. I deleted a few small items from the partition but they were KB items.

So I need to enlarge partition one.

Here is what I'm considering.
using fidsk or some other utility you might suggest and the Fedora logical volume utilities

1 - on NEW delete partition 2 with fdisk or whatever
2 - on New expand partition 1 - fdisk/whatever
3 - on New create a new partition 2 with specs similar to the old partition 2, occupying the rest of the drive and thus smaller than before -fdisk/whatever.
4 - using Fedora Logical Volume Utilities or whatever , copy from OLD the 2 logical volumes lv_root and lv_swap from OLD.PARTITION_2 to NEW.PARTITION_2 . I know very little about the Logical Volume utilities - I hope there is a way to copy contents of one to another. I believe cp has the disadvantage that it does not handle linked files - am I right/wrong?

Does this make sense?
Better yet - has someone automated this process since I bet I'm not the first guy with this problem

Or more generally - can you suggest a way to upgrade from fedora 14 on a drive with a 200MB boot partition to fedora 16, keeping all the stuff installed that is currently installed and all the files I now have?

Eager to hear your thoughts my friends.

Last edited by rmknox; 05-01-2012 at 03:13 PM.
 
Old 05-01-2012, 07:25 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by rmknox View Post
Does this make sense?
Sorta.
Will it work ?. Nope - too simple, too logical (pardon the pun ... )

The increase in /boot was mandated by Fedora a while back - precisely because of pre-upgrade; even if you don't use it. Quite a few of us grumbled at the time, but these days disk is cheap, and so ...
Doco is here - click the Fedora on the left to get different versions.

LVM has it adherents, I not overly infatuated with it. It was designed for (always) increasing space - decreasing wasn't even thought about, and was only added as an after-thought later. Even gparted still won't mess with LVM pvs - and it is generally excellent for this sort of thing.
Even if you could "arrange" the disk layout as you wanted, you couldn't mount both disks as the LVM lvs have the same name, and can't be mounted (even recognised) concurrently.
I have only once got pre-upgrade to work - I have now reverted back to my old plan of clean/new install each time. Then go re-install the stuff I want/need.

Last edited by syg00; 05-01-2012 at 07:28 PM. Reason: s/could/couldn't
 
Old 05-02-2012, 07:10 AM   #9
rmknox
Member
 
Registered: May 2010
Posts: 354

Original Poster
Rep: Reputation: 34
syg00

Clearly you understand a lot of stuff tht I wish I had understaood when I originally took the fedora 12 defaults. I assumed I would get a unix style file system and an op system that could be updated.

Yes - I did a clonezilla - I'm working on that copy.

These are 40 GB drives. I could buy a 60 GB (abt $15 delivered on ebay) drive and clone to it while increasing the size of the boot partition? parted (or whatever) to create the two partitions on the bigger drive, DD (or whatever) to populate them?

Does that work?

Dick

Last edited by rmknox; 05-02-2012 at 07:17 AM. Reason: MB s/b GB
 
Old 05-02-2012, 11:56 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Another thread appears to have been opened for the partition issue. No point continuing this.
 
  


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
How to copy OS disk of 76 GB to 146GB and make it bootable grens Linux - General 1 09-18-2008 11:25 AM
Make 1:1 copy of disk in odd situation tomazN Linux - Software 3 12-29-2007 07:22 AM
make exact copy of a hard disk in fedora AQG Linux - Hardware 6 08-07-2005 04:11 PM
Make a copy of entire hard disk jeucken Linux - Software 1 03-22-2004 04:55 AM
How to make an exact copy of a Hard Disk danishmr Linux - General 15 11-10-2003 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:32 PM.

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
Open Source Consulting | Domain Registration