You are not logged in.

#1 2012-09-23 19:11:08

wichita
Member
Registered: 2012-09-01
Posts: 3

Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

I have Arch installed in parallel with Mac OS X. Mac OS X is installed first, and the Arch partition extended all the way to the end of the hard drive.

I decided to shrink the Arch partition so that I could install Ubuntu alongside it. I used the GParted that came with the Ubuntu disk, and resized the Arch partition to ~60gb.

Now Syslinux will not boot Arch. Here is the error:
SYSLINUX 4.05 EDD ... (copywright stuff)...
ERROR: No configuration file found
No DEFAULT or UI configuration directive found!
boot:

And, as you can see, I am prompted with a boot: prompt.

How can I fix my arch installation?

Offline

#2 2012-09-23 19:17:01

luvfree
Member
Registered: 2012-08-29
Posts: 81

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

have you installed ubuntu yet?
if so log into your ubuntu install and run update-grub2 from the command line.
ubuntu has never failed me in finding other installed systems.

Last edited by luvfree (2012-09-23 23:51:47)


Linux only since 2002! Arch Linux only since 2010!
UEFI booting an intel based system trouble free since 2016!

Offline

#3 2012-09-23 19:17:13

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

If you are using a mac, did you install syslinux to the mbr or the partition superblock?

Offline

#4 2012-09-23 19:44:36

wichita
Member
Registered: 2012-09-01
Posts: 3

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

luvfree wrote:

have you installed ubuntu yet?
if so log into your ubuntu install and run update-grub from the command line.
ubuntu has never failed me in finding other installed systems.

I have not yet installed Ubuntu. But I do now have a reduced arch partition with a bunch of unallocated/free space at the end.

WonderWoofy wrote:

If you are using a mac, did you install syslinux to the mbr or the partition superblock?

If by "partition superblock" you mean the EFI system partition, I installed Syslinux to the MBR (pretty sure). This is because I was waiting for kernel 3.6 to come out, with EFI bootstub, but that's another topic.

At this point I am planning on booting up via an Arch livecd, arch-chroot into my arch partition, and reinstall syslinux via the instructions on the wiki. How does this sound?

Last edited by wichita (2012-09-23 19:45:16)

Offline

#5 2012-09-23 20:47:16

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

You know that as of 3.3 the kernel has the stubloader support.  I know that in 3.6 (maybe 3.7) tere are plans to change it somehow.  But it definitely works as of now.  In fact I use it to boot without a boot manager ot boot loader.  If I need to pass different arguments on boot, I just use the UEFI Shell, and it works great.  Now I don't know how that will play out with a Mac, as I always just used bios compatibility.  I had a MacBook 2,1 which was 32-bit EFI.  So to run x86_64 I had to use the bios compatibility.

By partition superblock, I mean /dev/sda2 instead of /dev/sda.  It is also commonly referred to as the partition mbr (though I have been told this is errenous). 

I think the idea of booting into a livecd and resintalling syslinux seems like the *only* way to go since you cannot boot the partition.  Beware though that Ubuntu will likely want to overwrite your MBR with grub2 or whatever it is that it uses these days.  That being the case it may be easier to simply let it do that and then either use that, or reinstall syslinux.  Beware though that with syslinux you have to set it up to chainload to the ubuntu partition as it ca only read from the partition that the config file is on.

Offline

#6 2012-09-23 21:38:39

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,551

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

If you know where your kernel is you can use the prompt to boot it.
If syslinux doesn't recognize kernel in front you may just have to type the path and then initrd= to the end of it to give the initramfs file and then root=.
You could possibly boot it this way.
Maybe you changed the partition order?
I used the gparted live CD one time and for some reason the resizing failed, and it broke the filesystem and I had to start over again.

Last edited by nomorewindows (2012-09-23 21:40:24)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#7 2012-09-23 22:36:33

luvfree
Member
Registered: 2012-08-29
Posts: 81

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

ubuntu does use grub2 and will overwrite your syslinux.
I much prefer grub2 myself as it has saved me countless times.
I have been triple and sometimes quad booting with countless variations of distros and it has found them all.
I keep an ubuntu mini (or net) install iso on hand and use it in rescue mode to reinstall the bootloader whenever I have booting issues.
This has worked even when not using ubuntu as one of my installed systems.


Linux only since 2002! Arch Linux only since 2010!
UEFI booting an intel based system trouble free since 2016!

Offline

#8 2012-09-23 23:46:58

Rumor
Member
From: Albany, NY
Registered: 2006-07-07
Posts: 638

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

On a guess I'd say you went from your Arch / being on a logical partition to being on an extended partition. (e.g. from /dev/sda4 to /dev/sda5.
Reboot with the Ubuntu disk.
Open a terminal and fdisk -l to see what the partitions on the hard drive are, or use the gparted tool.
Mount the Arch / partition and then chroot to it. Then you can edit your /boot/syslinux/syslinux.cfg file to point to the new / partition designation.
Reboot and you should be good to go.


Smarter than a speeding bullet
My Goodreads profile

Offline

#9 2012-09-24 04:34:01

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

Doesn't syslinux need the legacy bios boot flag set even on a gpt disk?  Maybe moving the parititon with parted unset this flag.  I don't know how to do it with parted, but I know with gdisk it is super easy.  Just use the "set attributes" menu item, and it will guide you through it.

Offline

#10 2012-09-24 10:02:16

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,551

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

WonderWoofy wrote:

Doesn't syslinux need the legacy bios boot flag set even on a gpt disk?  Maybe moving the parititon with parted unset this flag.  I don't know how to do it with parted, but I know with gdisk it is super easy.  Just use the "set attributes" menu item, and it will guide you through it.

Somebody on one of the other posts said that syslinux doesn't need the boot flag.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#11 2012-09-24 10:28:14

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

nomorewindows wrote:

Somebody on one of the other posts said that syslinux doesn't need the boot flag.

GRUB doesn't care about boot flags. It installs code outside of the MBR area (first 512 bytes), on hidden sectors, and I think GRUB doesn't work if your partitions start in "fdisk -l" at 1 or 63. Obviously, fdisk doesn't work on GPT partitioned drives. For those, you need a 2 MiB partition.

But Syslinux very much cares about boot flags (boot for DOS partitioned drives and legacy_boot for GPT partitioned ones). You can set them in GParted (right click - Manage flags).


I can't be of much help, because this thread mentions OS X, UEFI and MacBook. But what I do know, is that Syslinux doesn't yet work with UEFI. Are you sure you're not referring to GRUB?


"How to Succeed with Linux"

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

#12 2012-09-24 14:38:54

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

DSpider wrote:

I can't be of much help, because this thread mentions OS X, UEFI and MacBook. But what I do know, is that Syslinux doesn't yet work with UEFI. Are you sure you're not referring to GRUB?

If using syslinux, (s)he is using the bios compatibility mode.  OS X implemented a ghetto compatibility layer so that they could enable windows to be run on a mac (what most people think is bootcamp).  But in order to do this, they had to ensure that since windows requires mbr/bios (or uefi/gpt but that was not the norm back then) they had to use a hybrid mbr in which they use the protective mbr as a normal mbr.  Needless to say this is not an ideal hack, but it works. 

Unfortunately, since Apple kind of marches to the beat of their own drum, they chose EFI for OS X.  But this is not the normal EFI that we know and (some) love.  They seem to have taken the bits and peices that they like and implemented them along with some other proprietary nonsense.  So for instance, the early Macbooks had 32-bit EFI which exists nowhere else that I know of.  And even with their current systems, they are 64-bit EFI, but they do not have a traditional bios setting area or anything like that.  They also have a EFI System Partition, but it is in HFS+ and it is a completely empty and hidden partition.   So when you want to make something the primary boot device, you cannot use efibootmgr to make an entry, and you do not have a traditional boot order specifier.  This is all handled by their "bless" command.

Edit: Notice how I do not refer to Apple's system as "UEFI" because it is not by any means universal.

Last edited by WonderWoofy (2012-09-24 14:40:16)

Offline

#13 2012-09-25 02:09:06

wichita
Member
Registered: 2012-09-01
Posts: 3

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

Alright. I will try to install Ubuntu normally and see if Grub2 picks up my Arch installation.

Offline

#14 2012-09-25 07:21:34

adam777
Member
Registered: 2012-05-28
Posts: 161

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

Not helpful at all, but just yesterday I came across something somewhat similar.
I too shrank Arch's partition and was facing a syslinux error and no boot.
One quick boot from Arch installation media on a USB stick, arch-chroot and re-installing syslinux, all is well.

Offline

#15 2012-09-27 03:05:48

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

I really think that it is simply a matter of reenabling the boot flag.  But I am not willing to shift my partitions to test it.  You are absolutely right though adam777, it is not helpful at all.

Offline

#16 2012-09-28 08:43:38

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: Moved Arch partition w/ GParted, now Syslinux won't boot Arch.

Read the wiki::syslinux - if you have been repartitioning / moving partitions about chances are that you have (inadvertently) moved the sector of ldlinux.sys. As per point 6 of the syslinux boot process

https://wiki.archlinux.org/index.php/Sy … ot_Process

The only way to fix that particular brainfart (AFAIK) is: 

1. boot Gparted enabled liveCD and copy/paste the /boot (if separate) or / partition in GParted
2. generate a new UUID (if using UUID in syslinux.cfg) *** do it anyway as your don't want the possibility of 2 uniquely identified partitions... ***
3. update /etc/fstab with new / partition details (either /dev/sdX or UUID)
4. update /boot/syslinux/syslinux.cfg with new / partition details (either /dev/sdX or UUID)
3. boot into arch install media and chroot into cloned / partition
4. reinstall syslinux (so it knows where ldlinux.sys is located again)
5. remember not to do it again...


I did something very similar the other day and managed to overlap partitions which upset syslinux big style... I had only installed syslinux as "something to do" a few days earlier... you are not alone big_smile

*** EDIT: Purely reinstalling syslinux in chroot without fixing partitioning errors did not work for me ***

Last edited by satanselbow (2012-09-28 08:46:56)

Offline

Board footer

Powered by FluxBB