Skip to contentSkip to conversation

Booting with syslinux not possible

DISCUSSION KC 5 participants 7 messages Jan 31, 2014 – Feb 5, 2014 Btrfs file system

lore
Share & tools
lore

KC

author
#0 lore raw

I do not know if people her are aware of it, but just in case I thought it is worth mentioning that currently it is not possible to boot with Syslinux bootloader, if the boot partition is on BTRFS.

Perhaps it's worth adding to the wiki.

#1 lore raw
Quoted 5 lines · KC

I do not know if people her are aware of it, but just in case I thought it is worth mentioning that currently it is not possible to boot with Syslinux bootloader, if the boot partition is on BTRFS.

Perhaps it's worth adding to the wiki.

Are you certain? I've definitely had it working late last year. You
can't boot from a multi-device filesystem with it, but a single-device FS worked fine for me.

Hugo.

Signature · 3 lines
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
           --- Great films about cricket:  Batsman Returns ---           
#2 lore raw
In reply to KC

Sorry KC:

All my VM's are on syslinux (actually extlinux) and btrfs:

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *        2048     7938047     3968000   83  Linux
/dev/vda2         7938048     8388607      225280   82  Linux swap / Solaris

root@<VM> ~ # ll /boot
total 19452
-rw-r--r-- 1 root root 2319932 Jan 21 06:12 System.map-3.12-1-amd64
-rw-r--r-- 1 root root 149029 Jan 21 06:12 config-3.12-1-amd64
drwxr-xr-x 1 root root 176 Jan 28 22:32 extlinux/
-rw-r--r-- 1 root root 14240605 Jan 28 22:32 initrd.img-3.12-1-amd64

-rw-r--r-- 1 root root   176764 Nov 13  2011 memtest86+.bin
-rw-r--r-- 1 root root   178944 Nov 13  2011 memtest86+_multiboot.bin

-rw-r--r-- 1 root root 2842064 Jan 21 06:08 vmlinuz-3.12-1-amd64 root@china ~ #

Occasionally I get excited and decide to fix it 'til it breaks (usually I turn compression on, and /boot can't be accessed), but it's been working fine for a few years now.

Kind regards.

Al.

#3 lore raw

I also had some problems with syslinux.

For me it only works if I put boot folder to root of btrfs.
Didn't have a chance to do more test, but I copied /boot from default subvolume to subvolume 0 and it boots OK.

----------
regards
Blaz Balon

Quoted 33 lines · Alex

Sorry KC:

All my VM's are on syslinux (actually extlinux) and btrfs:
Device Boot Start End Blocks Id System

/dev/vda1   *        2048     7938047     3968000   83  Linux
/dev/vda2         7938048     8388607      225280   82  Linux swap / Solaris

root@<VM> ~ # ll /boot
total 19452

(quoted diff) +0 -2
-rw-r--r-- 1 root root  2319932 Jan 21 06:12 System.map-3.12-1-amd64
-rw-r--r-- 1 root root   149029 Jan 21 06:12 config-3.12-1-amd64

drwxr-xr-x 1 root root 176 Jan 28 22:32 extlinux/

(quoted diff) +0 -4
-rw-r--r-- 1 root root 14240605 Jan 28 22:32 initrd.img-3.12-1-amd64
-rw-r--r-- 1 root root   176764 Nov 13  2011 memtest86+.bin
-rw-r--r-- 1 root root   178944 Nov 13  2011 memtest86+_multiboot.bin
-rw-r--r-- 1 root root  2842064 Jan 21 06:08 vmlinuz-3.12-1-amd64

root@china ~ #

Occasionally I get excited and decide to fix it 'til it breaks (usually I turn compression on, and /boot can't be accessed), but it's been working fine for a few years now.

Kind regards.

Al.

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 6 lines · Blaz Balon <blaz.balon <at> laly.si> writes:

I also had some problems with syslinux.

For me it only works if I put boot folder to root of btrfs. Didn't have a chance to do more test, but I copied /boot from default subvolume to subvolume 0 and it boots OK.

Not sure I understand your /boot comment. I have some /boots on the main btrfs partition and some mounted ext(x)s (can't remember, don't care).

I have quite an (overly) complicated setup. All major directories are subvols eg. /etc /usr etc so that I can snapshot at almost every level. if you create the subvol you want as a tree, debootstrap (Debian) and git clone the stages (funtoo) are quite happy, but I guess you know that.

Transforming from standard directory to subvol is easy with any live distro (sysrescuecd).

#5 lore raw

Alex posted on Tue, 04 Feb 2014 17:19:09 +0000 as excerpted:

Quoted 1 line

I have quite an (overly) complicated setup.

I had to chuckle at that one. Fits my setup to a "T", altho they're different complications than yours. I'll have to remember it the next time I find a fitting context to use it! =:^)

Signature · 3 lines
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman
#6 lore raw
Quoted 9 lines · Duncan <1i5t5.duncan <at> cox.net> writes:

Alex posted on Tue, 04 Feb 2014 17:19:09 +0000 as excerpted:

Quoted 1 line

I have quite an (overly) complicated setup.

I had to chuckle at that one. Fits my setup to a "T", altho they're different complications than yours. I'll have to remember it the next time I find a fitting context to use it! =:^)

Pretty shiny things. ;-)
Kind regards.