Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-16-2004, 08:28 PM   #1
LQ Newbie
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
Creating Bootable CDROM

Hope someone can help,.....

I am using Redhat Linux

I have a new HD and I am replacing an old smaller hard disk with this new one.

Using Acronis 7.0 I cloned the (old)40Gig HD to the new (new) 250Gig HD. Acronis will automatically increase partitions sizes relative to the old partitions. I followed the standard prompts. When finished I switched the Master HD cable to 250Gig drive and took out the 40 gig drive. When i boot up the new 250Gig HD it hangs up - I believe at the GRUB loader.

If I copy an image of the 40Gig HD to the new 250HD using the Acronis Restore option then the new HD boots properly - BUT the partitions are not increased in size and i waste space.

I think i need to boot from a bootable floppy and make some changes using the GRUB command - but I don't have a floppy drive for this system.


1. How can I make a CD-ROM that I can boot from to get into my HD and make the GRUB changes? (I don't have the Linux installation CDROM available to me - it is located at my company HQ a few states away!)

2. What GRUB commands would I need to run to make the HD bootable?

Thanks for your help on this.
Old 07-16-2004, 08:57 PM   #2
Senior Member
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
cant help you with grub, but you might want to try knopixx instead of making a bootable CD.
Old 07-16-2004, 09:26 PM   #3
LQ Newbie
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks - Being a Newbie - i am not familiar with Knopixx - but i will do some research.
Old 07-17-2004, 07:59 AM   #4
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
I just installed my new 120G drive a month ago. My 40G drive had 13 partitions. What I did was I made partitions on the new drive which were big enough to hold all the data from the old partitions, plus I gave myself some breathing room. I then used rsync to copy the partitions one at a time. You could also use dd to copy the data.

First download one of the small Linux distributions available. Check for more. Here are some popular rescue systems which boot off CD.

Damn Small Linux   

Lets say you have 3 partitions on old 40G drive, and you have it installed as
hdb. Suppose the partitions look like this:
hdb1 = vfat - Windows
hdb2 = ext3 - Linux
hdb3 = swap - Linux-swap

Then you partition the new hda with 3 partitions and you format the partitions with matching filesystems. Now you are ready to transfer the data.

Once you boot the cd you just need to:
  1. Mount the partitions and transfer the data. -OR-
  2. Use dd to transfer the data.

Here is how you would use rsync.

mkdir /hda /hdb
mount /dev/hda1 /hda
mount /dev/hdb1 /hdb
rsync -a /hda/ /hdb/
umount /hda
umount /hdb
mount /dev/hda2 /hda
mount /dev/hdb2 /hdb
rsync -a /hda/ /hdb/
mkswap /dev/hda3

If you instead wanted to use dd, this would work.

dd if=/dev/hdb1 of=/dev/hda1 bs=512 skip=1 seek=1
dd if=/dev/hdb2 of=/dev/hda2 bs=512 skip=1 seek=1
mkswap /dev/hda3

The skip and seek make sure you dont overwrite the boot sectors on the destination.

Now dd seems easier to use however it will take longer because it will copy the entire partition (including unused space.)

Once you finish copying the data you just need to run lilo or grub to reinstall the bootloader.

With /dev/hda2 mounted at /hda you can run lilo like this:
lilo -r /hda

Now you should be able to boot your new drive.

Last edited by /bin/bash; 07-17-2004 at 08:01 AM.


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
Creating a bootable cd rootyard Linux - Software 6 07-10-2004 01:58 AM
Creating a bootable HTTP server CDROM Spydr Linux - General 2 01-29-2004 08:41 PM
creating a bootable cd overge Linux - General 5 11-22-2003 09:30 AM
Creating bootable CDROM 3inone Linux - Newbie 7 11-10-2003 05:59 PM
creating a bootable cd for linux fumanchu01 Linux - Software 0 09-25-2003 01:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration