You are not logged in.
Pages: 1
I've just installed Archlinux, and I triple boot with Ubuntu and Windows XP. I used the Archlinux disk to install GRUB, overwritting the previous version installed by ubuntu. Grub no longer lists ubuntu, and so I cannot boot to it.
I want to manually add the entry to menu.lst but I have no idea how to find the kernal information or the UID of my ubuntu partition. How would I go about finding these two things?
Last edited by desm (2009-02-15 23:02:39)
Offline
mount your ubuntu partition and check the grub config file you have on that partition. Copy the relevant part of that config file to your arch grub config file.
Offline
EDIT: pressh beat me and has a much more elegant solution
You can get the disk uuid by doing
ls -l /dev/disk/by-uuid/
title Ubuntu 8.04, kernel 2.6.24-16-server
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-16-server root=UUID=338b0261-d17f-4e27-9918-3dd982c66b68 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-server
quiet
https://lists.ubuntu.com/archives/ubunt … 51512.html
You should be able to mount your ubuntu partiton and look in /boot for the right kernel and initrd versions and of course change the disk UUID from the example I pasted up above.
Last edited by pyther (2009-02-15 16:45:13)
Offline
Thankyou! It works just fine now. I used pressh's method.
I do have one question though. Entries in Arch's menu.lst (which I'm using now) are formatted in the following way:
title Ubuntu 8.10, kernel 2.6.27-11-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=8db72e84-5653-4863-87$
initrd /boot/initrd.img-2.6.27-11-generic
quiet
Wheras entries in Ubuntu's are formatted in a different way, including a UUID line and with a "root (hd0,1)" line. Before I edditted the Ubuntu entries to look like the above Grub threw up an "error 15: file not found".
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 8db72e84-5653-4863-872b-077321996c48
kernel /boot/vmlinuz-2.6.27-7-generic
root=UUID=8db72e84-5653-4863-872b-077321996c48 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
My question then, is why is there a difference in formatting? Seeing as GRUB is the same program for both distros, right?
Offline
Please put [Solved] infront of the title if it is solved. Thanks
Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.
Offline
I figure I best ask my supplementary question here as opposed to waste threads. And no one will answer my supplementary question if I mark this as [solved]. Or is that not consistent with general forum practice? I've never posted before today -- not even lurked.
I'll happilly create a seperate thread if that's more consistant with precedent
Last edited by desm (2009-02-15 20:10:40)
Offline
I'm guessing ubuntu patched grub. Maybe root is defined else where in the file and it doesn't have to be redefined.
As for the uuid part maybe it is just there for reference as it is in the kernel config.
Asking you question in this topic was fine. You brought up a good point, however I'd still mark it as solved.
Offline
Perhaps Ubuntu has a newer version of grub ? I'd bet that's the answer, since the grub in our repo is rather outdated.
Last edited by moljac024 (2009-02-15 20:36:52)
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
Perhaps Ubuntu has a newer version of grub ? I'd bet that's the answer, since the grub in our repo is rather outdated.
there is nothing outdated to the grub in our repos, it is the latest stable version available.
Offline
And even if by some odd chance ubuntu was using the beta/devel grub2, the config syntax would be different.
No Ubuntu has had that format since I have used Ubuntu some years back.
and grub2 has a completely different format - grub2 has disks as 0-based and partitions as 1-based. Also, grub2 has a grub.cfg instead of menu.lst file (unless its a grub2 fork that I don't know about)
Last edited by Inxsible (2009-02-15 21:55:24)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
moljac024 wrote:Perhaps Ubuntu has a newer version of grub ? I'd bet that's the answer, since the grub in our repo is rather outdated.
there is nothing outdated to the grub in our repos, it is the latest stable version available.
My bad then, I recall someone commenting about it being outdated, I never really cared much myself...
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
^^
ahh yeah that is exactly what I said... read what you quoted!
My bad....I read it as, it could also be different if it uses grub2 -- which as you point out is not what you meant.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Pages: 1