grub install onto a loose drive...




sorry, I could not think of a better title.

I have a working linux system, and an external enclosure. I would like
to build a booting linux image onto a hard drive that sits in the
enclosure. my intent is to then disconnect the drive, put it into a
different computer as an internal drive, and boot it. It is of course
easy to transfer a linux partition onto the external drive. I need a
differently compiled kernel for my new computer, which I can also build
easily. this part is all easy.

boot sector stuff is not. I am now looking for instructions on how to
install grub onto the external drive, have it point at the external
hard drive's kernel (/dev/sdb1 during installation time), and realize
that although everything currently this boot sector that I want to
write sits on /dev/sdb and the root partition sits on /dev/sdb1, after
I disconnect it and put it into my new machine, /dev/sdb will become
/dev/sda.

pointers appreciated.

sincerely, /iaw

.



Relevant Pages

  • Re: DVD burner query
    ... including boot sector and what have you, not the simple brain dead partition ... automount that MS Sofffware does. ... And I'd like you to propose a Linux install which automatically mounts ...
    (rec.video.production)
  • Re: hard drive
    ... >> cd for you, however, you might try repairing the boot sector on the ... as Linux is not real easy to set up ... >> unless you are familiar with the distros and burning ISO files. ...
    (microsoft.public.windowsxp.general)
  • Re: [opensuse] Who said Linux doesnot get Virus infections
    ... that most desktop linux users would use. ... A boot sector virus is executed every time the computer is booted. ... DOS and DOS based versions of Windows do not have such protection and can be infected whenever the virus is run. ...
    (SuSE)
  • Re: intelligent disassembly
    ... Linux doesn't seem to have ... I did a Google search of the disassemblers you mentioned and was led ... the boot sector that is produced by Lilo derives from source code ...
    (comp.os.msdos.programmer)
  • Re: Graphical Bootloader (Windows XP + Linux)
    ... I don't like Linux bootloader and I want to get a third party one for my PC. ... Windows XP can do it. ... First you will need to copy the Linux boot sector into a file which will need to reside on the booting partition of your Windows setup. ... If you have write access to a windows partition, then open a command window in Linux and change to that partition to do the following: from the command line in Linux, type the following command: ...
    (microsoft.public.windowsxp.general)