[clue-tech] Copying System to New Drive

David L. Anselmi anselmi at anselmi.us
Sun Oct 18 22:37:26 MDT 2009


Jed S. Baer wrote:
> http://www.linuxjournal.com/content/copy-your-linux-install-different-partition-or-drive
> 
> All seems simple enough. I did get a couple of errors when I ran
>   setup (hd0,0)

So the web page says setup (hd0).  I don't know how grub works but I'd 
guess it's installing in the partition boot sector, not the MBR.

> I partitioned the drive using fdisk, with 3 primary partitions, using 1
> for swap, and I was very careful to use the correct UUID string in the
> boot stanzas in menu.lst. I also used fdisk to set partition 1 as
> bootable. Used mkfs.ext3 and mkswp to format the partitions.

The partition bootable flags aren't used by Linux as far as I've ever seen.

> If I try to boot my system, with just this drive installed (and I've
> checked the BIOS setttings to be sure it's in the boot search sequence),
> I get the usual BIOS output, then
> 
>   boot from CD/DVD: (or something like that -- not sure if that's grub or
> the BIOS)

In my experience this is the BIOS failing to boot the hard drive and 
going on to the CD.

Hopefully it's as simple as trying a different setup command.

I think that if you run grub (from a live CD or whatever) that you can 
use various commands to build your own boot on the fly.  So if you set 
the root device and then the kernel you should be able to get it to 
boot.  All you really need is to see the kernel start to load and that 
should tell you you've hit the right parameters for setup.  There's an 
example at:

http://www.troubleshooters.com/linux/grub/grub.htm

Good luck!
Dave


More information about the clue-tech mailing list