Creating ISO Disk Images

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
kwisher

Creating ISO Disk Images

Post by kwisher »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Fred

Re: Creating ISO Disk Images

Post by Fred »

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.
kwisher

Re: Creating ISO Disk Images

Post by kwisher »

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.
Fred

Re: Creating ISO Disk Images

Post by Fred »

kwisher,

Your images should be good then. :-)

Fred
Fred

Re: Creating ISO Disk Images

Post by Fred »

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
kwisher

Re: Creating ISO Disk Images

Post by kwisher »

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?
Fred

Re: Creating ISO Disk Images

Post by Fred »

kwisher,

In a word, yes. :-)

Fred
Locked

Return to “Hardware Support”