You are not logged in.

#1 2011-10-02 06:31:18

kenny09
Member
Registered: 2011-10-01
Posts: 6

Cannot access Xubuntu after installing Arch

This is probably a really easy fix... but I can't figure it out.

[kenny@myhost ~]$ sudo fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cdbd3

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048   204802047   102400000   83  Linux
/dev/sda2       484474878   488396799     1960961    5  Extended
/dev/sda3   *   204802048   484474877   139836415   83  Linux
/dev/sda5       484474880   488396799     1960960   82  Linux swap / Solaris

Partition table entries are not in disk order

sda1 is where Xubuntu lives. I believe sda3 is where Arch Linux is installed. I got confused while installing Arch and created a new primary partition marked as bootable. I had to unmark sda1 so it wouldn't be bootable. Now I need to know if it's possible to boot into Xubuntu without messing with my partitions anymore.

I assume there is a way to add Xubuntu to the grub menu created by Arch on sda3 but I don't know how to do it.


If it helps:
grub.cfg found on sda1: http://codepad.org/hp4BZaLu
menu.lst on Arch: http://codepad.org/UahnFCpU

I couldn't find grub.cfg on my Arch install... does Arch not use the latest version of grub when it gets installed? Or did I screw up and install an old version?

Last edited by kenny09 (2011-10-02 06:36:19)

Offline

#2 2011-10-02 07:00:34

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,020

Re: Cannot access Xubuntu after installing Arch

Arch still uses grub legacy, with menu.lst, by default.

You apparently overwrote Xubuntu's grub with Arch's. To boot Xubuntu, add the linux and initrd lines found in the first menuentry in Xubuntu's grub.cfg to Arch's menu.lst, changing "linux" to "kernel" and precede them with some title entry and a "root (hd0,0)" line.

Offline

#3 2011-10-02 07:07:13

fredo1664
Member
From: Ireland (but I'm French)
Registered: 2011-08-09
Posts: 29

Re: Cannot access Xubuntu after installing Arch

The wiki has a little section about this.
You will need to recover the kernel and initrd line from your Ubuntu partition, or from Google I guess.
I don't dual boot Ubuntu, but maybe someone does and can help you further?


I'm French and French people can't speak English, so please please please excuse the terrible English!

Offline

#4 2011-10-09 00:29:02

Loco
Member
Registered: 2011-10-09
Posts: 1

Re: Cannot access Xubuntu after installing Arch

I had the exactly same problem and solved adding these lines to /boot/grub/menu.lst on Arch:

title Xubuntu
root    (hd0,5)
kernel  /boot/vmlinuz-2.6.38-11-generic-pae root=/dev/sda6 ro quiet splash
initrd  /boot/initrd.img-2.6.38-11-generic-pae

Keep in mind that:
- Xubuntu is installed on my system on /dev/sda6, so remember to change the paths (second and third lines).
- Im using Xubuntu 11.04, the kernel and initrd names may be diferent from yours.

Good Luck

Offline

Board footer

Powered by FluxBB