Re: Lost Ubuntu partitions from grub.cfg. How to most easily recover?

2011-05-04 Thread Arnt Karlsen
On Sun, 1 May 2011 21:17:20 -0700, Robert wrote in message 
<20110502041720.ga1...@cox.net>:

> On Sun, May 01, 2011 at 08:36:09PM +, Camale�n wrote:
> 
>  ..snip
> > 
> > I wonder what happened with the old good habit of adding the OS
> > menu entries manually like we used to do with GRUB Legacy... I hope
> > that's still possible in GRUB2 :-)
> 
> It's possible but it borders on witchcraft.

..I recommend practicing witchcraft on a known good Grub2 box. ;o)

-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110504100311.06d30a2a@celsius.local



Re: Lost Ubuntu partitions from grub.cfg. How to most easily recover?

2011-05-02 Thread Siard
Paul Johnson wrote:
> $ dpkg -l | grep prober
> ii  os-prober1.42
> utility to detect other OSes on a set of drives
> 
> However, it does not find the Ubuntu partitions
>
> $ sudo update-grub
> Generating grub.cfg ...

Is Ubuntu found if you run os-prober as root?
This is my output:

# os-prober
/dev/sdb2:Ubuntu 9.10 (9.10):Ubuntu:linux
/dev/sdb3:SUSE LINUX 10.0 (i586):SuSE:linux


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110502223857.0b4c10fc.shiems...@kpnplanet.nl



Re: Lost Ubuntu partitions from grub.cfg. How to most easily recover?

2011-05-02 Thread Paul Johnson
On Sun, May 1, 2011 at 3:22 PM, Andrei Popescu  wrote:
> On Du, 01 mai 11, 14:05:16, Paul Johnson wrote:
>
> If you have os-prober installed (it's recommended by grub-common, it
> should be installed unless you declined or disabled recommends) a simple
> 'update-grub' should do the trick and would also work for future kernel
> updates.
>
> If this doesn't work I'm sure the os-prober developer would like to know
> it, so please file a bug.

OK, I'm new with the Debian community and don't want to make os-prober
author upset when I still don't know my ass from a hole in the ground.
 So I'm checking to see if this is "bugish" behavior to you.

 I've got os-prober

$ dpkg -l | grep prober
ii  os-prober1.42
utility to detect other OSes on a set of drives

However, it does not find the Ubuntu partitions

$ sudo update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-2.6.38-2-amd64
Found initrd image: /boot/initrd.img-2.6.38-2-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
Found Microsoft Windows XP Professional on /dev/sda1
done

Meanwhile, I've learned I can manually insert the Ubuntu stanza in
grub.cfg and it does bring up Ubuntu system.

 menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu
--class gnu-linux --class gnu --class os {
 recordfail
 set gfxpayload=$linux_gfx_mode
 insmod part_msdos
 insmod ext2
 set root='(/dev/sda,msdos3)'
 search --no-floppy --fs-uuid --set=root
2eb8cda6-366c-4ef7-b7da-8ff292ca7e61
 linux   /vmlinuz-2.6.38-8-generic
root=UUID=18c56003-c1d4-4fa1-8753-a20bf3034b7e ro   quiet splash
vt.handoff=7
 initrd  /initrd.img-2.6.38-8-generic
 }


>
> Regards,
> Andrei



-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/BANLkTi=blju_e0xab2dshenothkdvcd...@mail.gmail.com



Re: Lost Ubuntu partitions from grub.cfg. How to most easily recover?

2011-05-01 Thread Robert Holtzman
On Sun, May 01, 2011 at 08:36:09PM +, Camale�n wrote:

 ..snip
> 
> I wonder what happened with the old good habit of adding the OS menu 
> entries manually like we used to do with GRUB Legacy... I hope that's 
> still possible in GRUB2 :-)

It's possible but it borders on witchcraft.

-- 
Bob Holtzman
Key ID: 8D549279
"If you think you're getting free lunch,
 check the price of the beer"


signature.asc
Description: Digital signature


Re: Lost Ubuntu partitions from grub.cfg. How to most easily recover?

2011-05-01 Thread Siard
Op Sun, 1 May 2011 22:36:09 +0200 Camaleón wrote:
> I wonder what happened with the old good habit of adding the OS menu 
> entries manually like we used to do with GRUB Legacy... I hope that's 
> still possible in GRUB2 :-)

Yes it is.  Make /etc/grub.d/30_os-prober non-executable and manually
add your entries in a file named 09_custom or 11_custom, depending on
the position you want it to have in the Grub2 menu.

The first two lines should always be as in the example below, then add
your entry from line 4 on.


#! /bin/sh -e
exec tail -n +4 $0

menuentry "Ubuntu 9.10, kernel 2.6.31-17-generic (on /dev/sdb2)" {
set root=(hd1,2)
linux /boot/vmlinuz-2.6.31-17-generic root=/dev/sdb2 vga=788 ro
initrd /boot/initrd.img-2.6.31-17-generic
}


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110501232130.72dd4f5c.shiems...@kpnplanet.nl



Re: Lost Ubuntu partitions from grub.cfg. How to most easily recover?

2011-05-01 Thread Camaleón
On Sun, 01 May 2011 23:22:04 +0300, Andrei Popescu wrote:

> On Du, 01 mai 11, 14:05:16, Paul Johnson wrote:
>> 
>> And how can this become permanent.  however, the next time Debian
>> kernel updates, it will disappear again.  How to make it permanent?
> 
> If you have os-prober installed (it's recommended by grub-common, it
> should be installed unless you declined or disabled recommends) a simple
> 'update-grub' should do the trick and would also work for future kernel
> updates.
> 
> If this doesn't work I'm sure the os-prober developer would like to know
> it, so please file a bug.

I wonder what happened with the old good habit of adding the OS menu 
entries manually like we used to do with GRUB Legacy... I hope that's 
still possible in GRUB2 :-)

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.05.01.20.36...@gmail.com



Re: Lost Ubuntu partitions from grub.cfg. How to most easily recover?

2011-05-01 Thread Andrei Popescu
On Du, 01 mai 11, 14:05:16, Paul Johnson wrote:
> 
> And how can this become permanent.  however, the next time Debian
> kernel updates, it will disappear again.  How to make it permanent?

If you have os-prober installed (it's recommended by grub-common, it 
should be installed unless you declined or disabled recommends) a simple 
'update-grub' should do the trick and would also work for future kernel 
updates.

If this doesn't work I'm sure the os-prober developer would like to know 
it, so please file a bug.

Regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Lost Ubuntu partitions from grub.cfg. How to most easily recover?

2011-05-01 Thread Paul Johnson
When new Ubuntu  was released with the Unity desktop, it was so awful
that I decided to join you in the Debian experience.  So far, so good.
I installed Squeeze from the DVD, then decided I needed some newer
apps and learned about "testing" and "unstable" and most things are
going well.

When I did the Debian install, it noticed I had a Windows partition
and an Ubuntu partition with two kernels.  Grub was set and I could
launch any of those OS.  However, after the Debian update to the
testing edition of the kernel, the grub.cfg no longer had my Ubuntu
partitions. It still has the Windows partition.  Don't make fun of my
Windows. I only keep it for TurboTax :).

I don't really want to boot the Ubuntu partition, but I'd like to know
how to get it back.

My Ubuntu was installed in the old-style way, with a boot partition
(/dev/sda3), a root partition (/dev/sda7), and separate partitions for
/opt, /usr/local/ and /var. I've tried to manually put in an entry in
grub.cfg, but I'm not as good at grub2 as I wish.

Here's grub.cfg for the Debian partition, which starts nicely


I can mount the Ubuntu partitions in Debian and see what grub.cfg was
in there.  I *believe* that if I just copy the following into the
Debian grub.cfg, then I would be able to start Ubuntu.

menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class
gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos3)'
search --no-floppy --fs-uuid --set=root
2eb8cda6-366c-4ef7-b7da-8ff292ca7e61
linux   /vmlinuz-2.6.38-8-generic
root=UUID=18c56003-c1d4-4fa1-8753-a20bf3034b7e ro   quiet splash
vt.handoff=7
initrd  /initrd.img-2.6.38-8-generic
}

Right?

I'm not in danger of Breaking any parts that do work now, am i?

And how can this become permanent.  however, the next time Debian
kernel updates, it will disappear again.  How to make it permanent?

grub.cfg says:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

But in /etc/default/grub, there's nothing about the other OS in grub.cfg.

Ideas?

-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/BANLkTi=5eDMwWB=dze-8kb7k0a6n4cc...@mail.gmail.com