Re: GRUB woes (install to hde)
On Thu, 29 Sep 2005, Mike McCarty wrote:
> > it'd be pointless to install the grub mbr on /dev/hde if it cannot boot
>
> Umm, no, what he's doing is perfectly reasonable.
if doesn't work ... one should figure out technically why it will
not work
- some bios will NTO let you boot from /dev/hde is all
i'm saying and since it is a "grub woes" what does grub do
for you in this case, esp if as you say, he's not booting it ??
> He wants to
> duplicate boot discs for use on other machines.
ah... more grub problems ..
you cannot move a /dev/hde w/ grub info already on it from PC#1
to boot it as /dev/hda on PC#2 and expect pc#2 to boot it
- explain why ... you can .. and under what circumstances
you can boot
- same disk config or different disk config in terms of
the number and ordering of fd, cd, dvd, ide, scsi
and also referring to /boot/grub/device.map
- since you're moving from /dev/hde which presumably
implies you booted a different disk that you're trying to
clone... you will have problems as /dev/hde become /dev/hda
but is trivially fixed in 5 seconds if you know what to
change .. and with grub you do NOT need to edit files
and can change it dynamically to test it
> IIUI, he doesn't want to boot from /dev/hde ever.
which gets back to the point .. why bother with grub in that case
> He wants to create a disc
> connected as /dev/hde which can become /dev/hda on another
> machine.
and again .. why ???
- it's a lot of headache when there are trivially 100x simpler
ways of doing the same thing
> One way to do that would be to dd if=zero of=/dev/hda ...
that could be the equivalent of " rm -rf " if one were to use
that command without knowing what it might do
> and then make the thing a minimal bootable, then put it on
> as, say, /dev/hdf and then dd if=/dev/hdf | gzip image to create a
> (relatively) small image on /dev/hda.
now you have /dev/hdf to create what would be /dev/hda on /dev/hde
( more complications )
> I've tried to figure out a way he can clone his boot for him without
> writing multi-megs of data. It should be easy, but isn't, quite.
to clone any boot info from any disk to another ..
dd if=/dev/hda of=/dev/hdc bs=446 count=1
where you want /dev/hda to be the way the clone will boot
when /dev/hdc will become /dev/hda later in a different
or same box
converting hda to hdc is a imple matter of changing fstab
- there are say hundred ways to make a bootable disk
and NOT all will work in all situations
c ya
alvin
Reply to: