You are not logged in.

#1 2010-04-21 08:07:43

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

[SOLVED] - grub2 hide/unhide

A mate has two win98 and one win95 on his first hard disk and a second hd for - ubuntu. To get M$ to see the correct C disk, grub legacy stanzas for any one of the win9x have always had to include two hide and one unhide command.

Ubuntu comes with grub2 and I thought I'd try super grub disk first and see whether I can boot all win9x - but no. SGD sees them but does not hide/unhide the relevant partitions so that it always boots the first win9x.

A bit of googling found parttool as part of grub2 command line possibilities which has a hidden+/- feature.

I won't be able to try this on his computer until this pm:

1) boot from SGD
2) go into CLI
3) use parttool to hide/unhide the relevant partitions (say hd0,2)
4) set root (hd0,2)
5) chainload +1
6) boot

And I should be good to go. Am I on the right track? Any advice of course welcome smile


PS.:
This is more of an exploratory/note taking thread with a view to a proper wiki entry if I succeed as there is nothing on google or the web out there that applies to grub2 CLI stuff.

Last edited by toad (2010-04-21 13:41:31)


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#2 2010-04-21 13:41:05

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [SOLVED] - grub2 hide/unhide

Okay, this is solved, parttool did the trick on the grub CLI.

The following sequence hides the first two C disks and boots off the third - something super grub disk was not able to do automagically smile

parttool hd0,1 hidden+ boot-
parttool hd0,2 hidden+ boot-
parttool hd0,3 hidden- boot+
set root=hd0,3
chainloader +1
boot

EDIT:

WIKI entry

Last edited by toad (2010-04-21 13:55:05)


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

Board footer

Powered by FluxBB