You mean replace the boot drive? Or add a new drive that will also be bootable? A new data-only drive that does not boot doesn't need any grub adjustment.
Originally Posted by sabriah
If you have a bootable drive already, and you want to be able to boot an OS on a new drive, I believe you would run "grub-setup (hdx,y)" where x is the number of the drive counting from 0 (so if this is your second hd, it would be 1) and y is the partition number starting from 1 (first partition on the disk would be 1).
Some info, but they made one mistake and said that partitions count from 0. Partitions actually count from 1
Info is pretty rare and scattered at this point, if you are trying to do something else, or need more help, post here again, or ask on IRC (try ChatZilla for Firefox if you aren't familiar with IRC) irc://irc.freenode.net/#grub
... Linus would do it in a day if someone asked him nicely ;>
Reallly, Grub project managers are idiots imho. They mouthed
off - well over 5 years ago - "please don't do anything
more for Grub 1, it is deprecated". (I've submitted a patch,
and offerred to help). Well... the vast majority of Linux
distros use Grub, and numerous bug-fixes and simple features
have been totally neglected...
Perhaps there are technical reasons a rewrite was needed,
but disowning Grub 1 for the last forever is typical GNU
head-in-their-arse stuff. "And we number everything from
zero, because that's how it should be". F-ing wankers.
Sorry for being so flambastic, but can you say "Hurd".
> Firstly, I believe GRUB2 will have better device detection
> and will support more filesystems than GRUB1. Secondly,
> I'm not sure how important error handling is. TBH, unless
> you are constantly reinstalling distros on your system,
> how often do you play around with GRUB confiugrations?
What to say... Are you for real ? Go back to windows fanboy
> GRUB2 seems to be a good replacement for GRUB1, it can boot from cd now,
> that's what was missing before.
Thanks for the heads-up. Good to hear :>