Creating ISO Disk Images

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

Creating ISO Disk Images

Postby kwisher on Wed Jun 25, 2008 6:22 pm

Hello Fellow Minters,

First of all I want to extend many thanks to the Mint Team for a fantastic distribution. Even though I favor the KDE desktop, I am quite enjoying the Mint 5 Elyssa Gnome desktop. I have a couple of questions for everyone.

1). A coworkers laptop hard disk was acting up on him so I was able to connect it to my desktop machine and created an ISO image file for each of the partitions. My question is, when I get the new hard disk for him, will I just be able to restore the ISO files back to the new drive and all is fine? He currently has Win-XP on the drive. Does the ISO image capture the Master Boot Record for the C:drive or is there something else I need to do to save this info?

2). Whenever I load Synaptic and reload and then do Mark All Upgrades and then Apply, sometimes my grub menu gets loaded up with choices for previous kernel versions. Is this a normal or a known bug?

TIA
The instructions suggested Windows XP or better, so I installed Linux :)
User avatar
kwisher
Level 5
Level 5
 
Posts: 635
Joined: Wed Mar 05, 2008 12:54 pm
Location: Greentown, Indiana USA

Linux Mint is funded by ads and donations.
 

Re: Creating ISO Disk Images

Postby Fred on Wed Jun 25, 2008 9:08 pm

kwisher,

To address your question about the XP MBR I copied and pasted the quote below. It is correct and says it as good or better than I could. This isn't exactly true with Linux but it is still easier to reinstall Grub than to jump through the hoops necessary for Linux too.

"An MBR is specific to the drive it is written on as it contains info about that specific drive: heads sectors etc. It also holds the volume label for that specific drive as well which again isn't interchangeable. If you copy an MBR from one drive to another you could render that drive inoperable."

You can use the "fixmbr" utility on the XP disk to reinstall the boot load pointer for XP on the new drive.

As far as your ISOs are concerned, it depends on how you made them. If you tried a copy & paste from a running system you will have an unworkable mess.... sorry, but it is better to know now.

I know there are commercial Windows programs to do this but I am not familiar with them. If I were trying to keep an XP install, I would use a live Linux cd and an external drive. Use the rsync command and make a mirror image of the XP install on the external drive. If it uses a recovery partition you should do that one too. Then when you install the new drive restore it back to the new drive from the external drive. An example is below. sda1 would be your XP install. sdb1 would be the external drive. Make sure these partitions are mounted when you run this.

sudo rsync -arE --progress --delete --timeout=120 /media/sda1/ /media/sdb1

To restore it back to the new drive, use Gparted live cd iso,(url below), to partition and format it to NTFS. then run the below on the live Linux cd:

sudo rsync -arE --progress --delete --timeout=120 /media/sdb1/ /media/sda1

http://sourceforge.net/project/showfile ... _id=271779

You may still have to coax it back into working correctly but at least you have a chance. I have managed it before. It sometimes goes as smooth as silk, other times there are a few issues to resolve. The closer the drives are, spec wise, the less problems you can expect.

Hope this helps.

Fred

Edit: You can skip the middle man, so-to-speak, and go ahead and partition and format the new drive and transfer each partition only once, following the above pattern for each partition. Make sure you keep the same partition arrangement on the new drive or you will have lots of problems.
Last edited by Fred on Wed Jun 25, 2008 9:29 pm, edited 1 time in total.
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Creating ISO Disk Images

Postby kwisher on Wed Jun 25, 2008 9:17 pm

Fred,

I used the dd command to create the image files. I physically removed the drive from the laptop and connected it to my Mint machine to do this.
The instructions suggested Windows XP or better, so I installed Linux :)
User avatar
kwisher
Level 5
Level 5
 
Posts: 635
Joined: Wed Mar 05, 2008 12:54 pm
Location: Greentown, Indiana USA

Re: Creating ISO Disk Images

Postby Fred on Wed Jun 25, 2008 9:31 pm

kwisher,

Your images should be good then. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Creating ISO Disk Images

Postby Fred on Wed Jun 25, 2008 9:49 pm

kwisher,

Since you are familiar with the dd command, this is how you would copy the MBR and boot sector, together or separately. You will have problems getting it to work for Windows though.

Copy just the MBR and boot sector of a hard drive to another hard drive:

dd if=/dev/sdx of=/dev/sdx bs=512 count=2

Copy only the MBR of a hard drive:

dd if=/dev/sdx of=/dev/sdx bs=446 count=1

Be careful with the dd command. You can get in trouble in a hurry with it. It is a very powerful command.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Creating ISO Disk Images

Postby kwisher on Thu Jun 26, 2008 4:14 pm

Since I will be upgrading the disk to a larger size and faster speed, I don't think I will try saving the MBR according to Fred's first reply.

Do you think once I have the image restored that I will be able to recreate a new MBR with a windows disk and the fixmbr utility?
User avatar
kwisher
Level 5
Level 5
 
Posts: 635
Joined: Wed Mar 05, 2008 12:54 pm
Location: Greentown, Indiana USA

Re: Creating ISO Disk Images

Postby Fred on Thu Jun 26, 2008 9:02 pm

kwisher,

In a word, yes. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Linux Mint is funded by ads and donations.
 

Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 17 guests