Unix Technical Forum

Debian, Solaris, grub

This is a discussion on Debian, Solaris, grub within the Debian Linux support forums, part of the Debian Linux category; --> I'm not sure this is right group.. sorry here is my setup: 40GB IDE HDD primary master split into ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 08:16 AM
orange
 
Posts: n/a
Default Debian, Solaris, grub

I'm not sure this is right group.. sorry

here is my setup:
40GB IDE HDD primary master split into these partitions:
1)winXP
2)Debian
3)Linux swap

GRUB is installed and dualboot Debian/winxp works fine

I have added unformatted 120Gb disk as secondary master in order to
install Solaris10 on it (the old one is full)

I'm worried it could corrupt existing MBR with GRUB, so I'd like to
make backup of grub config. (already backuped MBR)
If I understood correctly grub needs /boot/grub/menu.lst, but is that
all?
what happens if Debian partition gets corrupted, how can WinXP be
booted?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 08:16 AM
Peter J Ross
 
Posts: n/a
Default Re: Debian, Solaris, grub

On 15 Mar 2007 06:57:25 -0700, orange <orange47@gmail.com> wrote in
alt.os.linux.debian:

> I'm not sure this is right group.. sorry


It may not be the right group if you want a more definitive reply than
I'm about to offer, but it's the best group on Usenet for Debian
questions.

> here is my setup:
> 40GB IDE HDD primary master split into these partitions:
> 1)winXP
> 2)Debian
> 3)Linux swap
>
> GRUB is installed and dualboot Debian/winxp works fine
>
> I have added unformatted 120Gb disk as secondary master in order to
> install Solaris10 on it (the old one is full)


I've installed Solaris 10 alongside Debian and possibly also Windows,
but it was a few months ago. I remember that I had no problems at all,
but I can't remember relevant details such as which bootloader I chose
to use. Sorry.

> I'm worried it could corrupt existing MBR with GRUB,


It could overwrite it, but only if you confirm that you want it to.

> so I'd like to
> make backup of grub config. (already backuped MBR)
> If I understood correctly grub needs /boot/grub/menu.lst, but is that
> all?


Grub probably needs other files as well, but there's no reason why
Solaris should interfere with your /boot any more than it would
interfere with your /etc or your /home.

> what happens if Debian partition gets corrupted, how can WinXP be
> booted?


By restoring Debian, including grub. But Solaris is unlikely to fsck
your MBR up the way Windows likes to.

There are two likely possibilities:

1. You install Solaris and reboot to a grub menu that lacks Solaris.
You'll then have to boot into Debian and configure /boot/grub/menu.lst
to include Solaris. You'll need "chainloader +1" and something like
"root (hd1,0a)".

2. You install Solaris and reboot to a UNIX bootloader. If that's not
what you want, you'll need a recent Debian installation CD in order to
use the "rescue" option and restore your grub.

An unlikely possibility is that the Solaris installation will corrupt
your Debian and Windows partitions. You should certainly back up
everything important, not just your grub configuration.

Have fun with Solaris.

--
PJR :-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 08:16 AM
***** charles
 
Posts: n/a
Default Re: Debian, Solaris, grub

"Peter J Ross" <pjr@example.invalid> wrote in message
news:slrnevje6a.lb8.pjr@pjr.gotdns.org...
> On 15 Mar 2007 06:57:25 -0700, orange <orange47@gmail.com> wrote in
> alt.os.linux.debian:
>
> > I'm not sure this is right group.. sorry

>
> It may not be the right group if you want a more definitive reply than
> I'm about to offer, but it's the best group on Usenet for Debian
> questions.
>
> > here is my setup:
> > 40GB IDE HDD primary master split into these partitions:
> > 1)winXP
> > 2)Debian
> > 3)Linux swap
> >
> > GRUB is installed and dualboot Debian/winxp works fine
> >
> > I have added unformatted 120Gb disk as secondary master in order to
> > install Solaris10 on it (the old one is full)

>
> I've installed Solaris 10 alongside Debian and possibly also Windows,
> but it was a few months ago. I remember that I had no problems at all,
> but I can't remember relevant details such as which bootloader I chose
> to use. Sorry.
>
> > I'm worried it could corrupt existing MBR with GRUB,

>
> It could overwrite it, but only if you confirm that you want it to.
>
> > so I'd like to
> > make backup of grub config. (already backuped MBR)
> > If I understood correctly grub needs /boot/grub/menu.lst, but is that
> > all?

>
> Grub probably needs other files as well, but there's no reason why
> Solaris should interfere with your /boot any more than it would
> interfere with your /etc or your /home.
>
> > what happens if Debian partition gets corrupted, how can WinXP be
> > booted?

>
> By restoring Debian, including grub. But Solaris is unlikely to fsck
> your MBR up the way Windows likes to.
>
> There are two likely possibilities:
>
> 1. You install Solaris and reboot to a grub menu that lacks Solaris.
> You'll then have to boot into Debian and configure /boot/grub/menu.lst
> to include Solaris. You'll need "chainloader +1" and something like
> "root (hd1,0a)".
>
> 2. You install Solaris and reboot to a UNIX bootloader. If that's not
> what you want, you'll need a recent Debian installation CD in order to
> use the "rescue" option and restore your grub.
>
> An unlikely possibility is that the Solaris installation will corrupt
> your Debian and Windows partitions. You should certainly back up
> everything important, not just your grub configuration.
>
> Have fun with Solaris.


You could use a program like Ghost to backup your partitions so if
anything does screw them up, you can back to where you started.

later.....


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 08:16 AM
ray
 
Posts: n/a
Default Re: Debian, Solaris, grub

On Fri, 16 Mar 2007 13:25:14 +0000, ***** charles wrote:

> "Peter J Ross" <pjr@example.invalid> wrote in message
> news:slrnevje6a.lb8.pjr@pjr.gotdns.org...
>> On 15 Mar 2007 06:57:25 -0700, orange <orange47@gmail.com> wrote in
>> alt.os.linux.debian:
>>
>> > I'm not sure this is right group.. sorry

>>
>> It may not be the right group if you want a more definitive reply than
>> I'm about to offer, but it's the best group on Usenet for Debian
>> questions.
>>
>> > here is my setup:
>> > 40GB IDE HDD primary master split into these partitions:
>> > 1)winXP
>> > 2)Debian
>> > 3)Linux swap
>> >
>> > GRUB is installed and dualboot Debian/winxp works fine
>> >
>> > I have added unformatted 120Gb disk as secondary master in order to
>> > install Solaris10 on it (the old one is full)

>>
>> I've installed Solaris 10 alongside Debian and possibly also Windows,
>> but it was a few months ago. I remember that I had no problems at all,
>> but I can't remember relevant details such as which bootloader I chose
>> to use. Sorry.
>>
>> > I'm worried it could corrupt existing MBR with GRUB,

>>
>> It could overwrite it, but only if you confirm that you want it to.
>>
>> > so I'd like to
>> > make backup of grub config. (already backuped MBR)
>> > If I understood correctly grub needs /boot/grub/menu.lst, but is that
>> > all?

>>
>> Grub probably needs other files as well, but there's no reason why
>> Solaris should interfere with your /boot any more than it would
>> interfere with your /etc or your /home.
>>
>> > what happens if Debian partition gets corrupted, how can WinXP be
>> > booted?

>>
>> By restoring Debian, including grub. But Solaris is unlikely to fsck
>> your MBR up the way Windows likes to.
>>
>> There are two likely possibilities:
>>
>> 1. You install Solaris and reboot to a grub menu that lacks Solaris.
>> You'll then have to boot into Debian and configure /boot/grub/menu.lst
>> to include Solaris. You'll need "chainloader +1" and something like
>> "root (hd1,0a)".
>>
>> 2. You install Solaris and reboot to a UNIX bootloader. If that's not
>> what you want, you'll need a recent Debian installation CD in order to
>> use the "rescue" option and restore your grub.
>>
>> An unlikely possibility is that the Solaris installation will corrupt
>> your Debian and Windows partitions. You should certainly back up
>> everything important, not just your grub configuration.
>>
>> Have fun with Solaris.

>
> You could use a program like Ghost to backup your partitions so if
> anything does screw them up, you can back to where you started.
>
> later.....


Backups are always good before you start major tinkering. I used partimage
to backup and restore partitions to an external USB when I replace the
40gb disk in my laptop with a 120.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 08:17 AM
orange
 
Posts: n/a
Default Re: Debian, Solaris, grub

ok, everything went fine after having small problem with DVD refusing
to boot.
Solaris wrote new MBR to new hard drive (120Gb) and didn't touch old
MBR. So I now choose in BIOS which Grub should be booted. New Grub has
Windows option (haven't tried it yet) but no Debian; old one lacks
Solaris.
So, I'd like to edit the old Grub to include Solaris like you said.

One thing I don't understand; after I edit menu.lst from Debian, how
do I save changes to MBR?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 08:17 AM
ray
 
Posts: n/a
Default Re: Debian, Solaris, grub

On Wed, 21 Mar 2007 07:38:23 -0700, orange wrote:

> ok, everything went fine after having small problem with DVD refusing
> to boot.
> Solaris wrote new MBR to new hard drive (120Gb) and didn't touch old
> MBR. So I now choose in BIOS which Grub should be booted. New Grub has
> Windows option (haven't tried it yet) but no Debian; old one lacks
> Solaris.
> So, I'd like to edit the old Grub to include Solaris like you said.
>
> One thing I don't understand; after I edit menu.lst from Debian, how
> do I save changes to MBR?


It's quite a simple operation. Boot Debian or boot a Live CD. Assuming you
know for a fact that your Debian install is on, say, hda3 then you would
do the following as root from a terminal:

1) grub
2) grub> root(hd0,2) grub numbers everything from zero, so hda is hd0
and partition hda3 is (hd0,2)
3) grub> setup (hd0)
4) grub> quit

then reboot. If you're not sure where the grub setup is, you can do:

grub> find /boot/grub/stage1

to find it.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-19-2008, 08:17 AM
ray
 
Posts: n/a
Default Re: Debian, Solaris, grub

On Wed, 21 Mar 2007 07:38:23 -0700, orange wrote:

> ok, everything went fine after having small problem with DVD refusing
> to boot.
> Solaris wrote new MBR to new hard drive (120Gb) and didn't touch old
> MBR. So I now choose in BIOS which Grub should be booted. New Grub has
> Windows option (haven't tried it yet) but no Debian; old one lacks
> Solaris.
> So, I'd like to edit the old Grub to include Solaris like you said.
>
> One thing I don't understand; after I edit menu.lst from Debian, how
> do I save changes to MBR?



Once it's installed in the MBR, you do not need to resave each time you
edit /boot/grub/menu.lst - simply edit menu.lst and reboot.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-19-2008, 08:17 AM
Peter J Ross
 
Posts: n/a
Default Re: Debian, Solaris, grub

On 21 Mar 2007 07:38:23 -0700, orange <orange47@gmail.com> wrote in
alt.os.linux.debian:

> ok, everything went fine after having small problem with DVD refusing
> to boot.
> Solaris wrote new MBR to new hard drive (120Gb) and didn't touch old
> MBR. So I now choose in BIOS which Grub should be booted. New Grub has
> Windows option (haven't tried it yet) but no Debian; old one lacks
> Solaris.
> So, I'd like to edit the old Grub to include Solaris like you said.


Try adding something like this to /boot/grub/menu.lst:

title Solaris 10
root (hd1,0a)
chainloader +1

Make sure that you add it above or below the section that's
overwritten automatically by debconf.

> One thing I don't understand; after I edit menu.lst from Debian, how
> do I save changes to MBR?


You don't. The list isn't stored there.

--
PJR :-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com