You are not logged in.
I want to have an Arch - Ubuntu dual boot with syslinux.
I follow the instructions on the arch wiki on how to chainload but I can't get it to work.
When I select the Ubuntu entry it does nothing, it just "refreshes" the menu.
Arch entry works properly.
Disk /dev/sda: 320.1 GB, 320072933376 bytes, 625142448 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: 0xa19ca19c
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 83970047 41984000 83 Linux
/dev/sda2 83970048 167938047 41984000 83 Linux
/dev/sda3 167938048 616744959 224403456 83 Linux
/dev/sda4 616744960 625141759 4198400 82 Linux swap / SolarisThe arch / is on /dev/sda1 and ubuntu / on /dev/sda2.
Syslinux is installed on /dev/sda1.
The configuration files:
#/boot/syslinux/syslinux.cfg #arch
PROMPT 1
TIMEOUT 100
UI menu.c32
LABEL Arch
MENU LABEL Arch Linux
LINUX ../vmlinuz-linux
APPEND root=/dev/sda1 ro
INITRD ../initramfs-linux.img
LABEL ubuntu
MENU LABEL Ubuntu
COM32 chain.c32
APPEND hd0 2#/mnt/boot/syslinux/syslinux.cfg #ubuntu
TIMEOUT 100
UI menu.c32
LABEL Ubuntu
LINUX /boot/vmlinuz-3.5.0-17-generic
INITRD /boot/initrd.img-3.5.0-17-generic
APPEND root=/dev/sda2 ro quiet
LABEL MAIN
COM32 chain.c32
APPEND hd0 0All files seems to be there:
[ilias@ilias-pc ~]$ ls /boot/syslinux/
chain.c32 hdt.c32 ldlinux.sys menu.c32 pci.ids poweroff.com reboot.c32 SYSLINUX_AUTOUPDATE syslinux.cfg vesamenu.c32[ilias@ilias-pc ~]$ ls /mnt/boot/syslinux/
chain.c32 ldlinux.sys menu.c32 syslinux.cfgWhat am I doing wrong?
Last edited by Ilias95 (2012-11-17 16:48:38)
Offline
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
I believe that your ubuntu partition would be hd0 1, because it starts counting from 0.
Scratch that, the MBR is obviously 0, making the first partition 1... duuuhhhh... Sorry for the noise.
OP, did you follow the link on the syslinux page to djgera's personal wiki page. That is where I got that information from and basically copied the info from. Following his directions, it works great for me. But alas, I have yet to go through and actually follow my own directions.
Maybe you should try and follow djgera's examples, and then compare and see if I might ahve left something out?
Last edited by WonderWoofy (2012-11-17 15:58:34)
Offline
That's exactly what I followed (or believe that I followed).
OP, did you follow the link on the syslinux page to djgera's personal wiki page. That is where I got that information from and basically copied the info from. Following his directions, it works great for me. But alas, I have yet to go through and actually follow my own directions.
Maybe you should try and follow djgera's examples, and then compare and see if I might ahve left something out?
djgera uses a slightly different way from the one described on the link above (by creating a separate syslinux folder for each partition in /mnt). I did try his way but didn't manage to succeed anything yet.
Last edited by Ilias95 (2012-11-17 16:15:25)
Offline
Why don't you create a seperate boot partition?
If maybe can overwrite the vmlinuz-linux by another linux, here is a simple "workaround":
* create a partition which will contains kernels and syslinux
* create directories, named by "arch" and ubuntu, this will contains kernels
* mount this partition into a directory (e.g. /var/mixed_boot)
* create a link /boot which points to /var/mixed_boot/arch - so your boot directory will a link
* in ubuntu do similar: /boot will a link to /var/mixed_boot/ubuntu
Offline
djgera uses a slightly different way...
Actually, syslinux can use a syslinux directory in a few places. One of them is /boot/syslinux (my example in the wiki), and another is /syslinux. But when you install extlinux, you have to specify the fill path to that directory. Even though it is installing on the partition superblock, for some reason it still needs to know where that syslinux directory is.
So djgeras methos is the same, but one of his installation's filessytems is configured slightly differently. The use of extlinux to the "separate syslinux folder" (as you put it) is simply necessary for his particular system.
I think that they give you the options so that you can choose whether to have you configs on / or /boot if you have separate partitions.
Offline
Pf! Finally, the configuration in my first post works fine.
By spending much time on configuring again and again I didn't notice that this one finally works.
I think that the "MENU LABEL Ubuntu" does the work. When this line is missing it just "refreshes" the menu.
Sorry for that and thank you all for your time.
Offline
Thanks for the update and I'm glad you got it fixed. Maybe you should update my work on the wiki? It seems you have found a flaw in my system.
Offline
There's no flaw (actually you use MENU LABEL on chainloading).
I removed that line and still works. Probably I made a small change sometime that looked trivial and I didn't notice that it fixed (or created) the problem. Unfortunately I can't remember what this change may be, but at least now works properly.
I'll be more careful from now on. ![]()
Last edited by Ilias95 (2012-11-17 17:26:42)
Offline