Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Btrfs Root Subvolume & EFI Stub
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
AustinMatherne
n00b
n00b


Joined: 25 Jul 2012
Posts: 32
Location: Minneapolis, Minnesota, USA

PostPosted: Wed Oct 03, 2012 8:07 pm    Post subject: [SOLVED] Btrfs Root Subvolume & EFI Stub Reply with quote

I'm having a problem getting a btrfs subvolume to work as root with EFI stub (I think).

/dev/sda1 is the vfat EFI partition and /dev/sda2 is the btrfs partition with two subvolumes, "root" (which is set as default), and "home". I want to use the subvolumes precisely how you think I want to use them.
Code:
# /etc/fstab: static file system information.
# <fs>       <mountpoint>  <type>   <opts>                                                  <dump/pass>
/dev/sda1    /boot/efi     vfat     defaults,noatime,discard,noauto                         0 0
/dev/sda2    /             btrfs    defaults,noatime,discard,ssd,compress=lzo,subvol=root   0 0
/dev/sda2    /home         btrfs    defaults,noatime,discard,ssd,compress=lzo,subvol=home   0 0
/dev/sda3    none          swap     defaults,noatime,discard,sw                             0 0
tmpfs        /tmp          tmpfs    defaults,noatime,nodev,nosuid                           0 0

When I boot from the kernel loaded on a USB stick (CONFIG_CMDLINE="root=/dev/sda2 rootflags=subvol=root") using UEFI (I haven't run efibootmgr, so I can't boot from /dev/sda1 just yet) the kernel doesn't panic, but for whatever reason it stops at the below with a blinking cursor that I can't type anything at (ADATA USB FLASH DRIVE is the boot device):
Code:
scsi 0:0:0:0: Direct-Access ATA OCZ-VERTEX4 1.5 PQ: 0 ANSI : 5
sd 0:0:0:0: [sda] 500118192 512-byte logical blocks: (256 GB/238 GiB)
sd 0:0:0:0: [sda] Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPU or FUA
sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk
...
REISERFS warning (device sda2): super-6502 reiserfs_getopt: unknown mount option "subvol=root"
...
UDF-fs: bad mount option "subvol="root" or missing value
jfs: Unrecognized mount option "subvol=root" or missing value
XFS (sda2): unknown mount option [subvol]
...
device fsid 2cb86530-4bd5-492c-b75d-628b0c6d1bd2 devid 1 transid 270 /dev/root
btrfs: disk space caching is enabled
btrfs: no dev_stats entry found for device /dev/root (devid 1) (OK on first mount after mkfs)
Btrfs detected SSD devices, enabling SSD mode
VFS: Mounted root (btrfs filesystem) readonly on device 0:12
...
scsi 9:0:0:0: Direct-Access ADATA USB Flash Drive 1.00 PQ: 0 ANSI : 5
sd 9:0:0:0: [sdg] Attached scsi generic sg6 type 0
sd 9:0:0:0: [sdg] 30883840 512-byte logical blocks: (15.8 GB/14.7 GiB)
sd 9:0:0:0: [sdg] Write Protect is off
sd 9:0:0:0: [sdg] No Caching mode page present
sd 9:0:0:0: [sdg] Assuming drive cache: write through
sd 9:0:0:0: [sdg] Attached SCSI removable disk
sdg: sdg1
sd 9:0:0:0: [sdg] No Caching mode page present
sd 9:0:0:0: [sdg] Assuming drive cache: write through
sd 9:0:0:0: [sdg] Attached SCSI removable disk

To compile the kernel (gentoo-sources 3.5.4), I started off with this seed and made/verified the following selections with make menuconfig:
Code:
[*] Enable loadable module support --->
[*] Enable the block layer --->
    Partition Types --->
        [*] Advanced partition selection
        [*] EFI GUID Partition support
    IO Schedulers --->
        [] CFQ I/O scheduler
        Default I/O scheduler (No-op) --->
            [*] No-op
Processor type and features --->
    [*] Symmetric multi-processing support
    Processor family (Core 2/newer Xeon) --->
        [*] Core 2/newer Xeon
    [*] SMT (Hyperthreading) scheduler support
    [*] Machine Check / overheating reporting
        [*] Intel MCE features
    [*] MTRR (Memory Type Range Register) support
    [*] EFI runtime service support
        [*] EFI stub support
    [*] Build a relocatable kernel
    [*] Built-in kernel command string
        [root=/dev/sda2 rootflags=subvol=root] Built-in kernel command string
Power management and ACPI options --->
    [*] Suspend to RAM and standby
    [*] Hibernation (aka 'suspend to disk')
    [*] ACPI (Advanced Configuration and Power Interface) Support
    CPU Frequency scaling --->
        Default CPUFreq governor (ondemand) --->
            [*] ondemand
        x86 CPU frequency scaling drivers --->
            [*] ACPI Processor P-States driver
Executable file formate / Emulations --->
    [*] IA32 Emulation
Device Driver --->
    Generic Driver Options --->
        [*] Maintain a devtmpfs filesystem to mount at /dev
    [*] Serial ATA and Parallel ATA drivers --->
        [*] AHCI SATA support
        [*] ATA SFF support
            [*] ATA BMDMA support
                [*] SiS 964/965/966/180 SATA support
    [*] Network device support --->
        [*] Ethernet driver support --->
            [*] Broadcom devices
                [*] Broadcom Tigon3 support
    Input device support --->
        [*] Event interface
    Graphics support --->
        [*] Support for frame buffer devices --->
            [*] Enable firmware EDID
            [ ] Userspace VESA VGA graphics support
            [ ] VESA VGA graphics support
            [*] EFI-based Framebuffer Support (NEW)
            [ ] nVidia Framebuffer Support
            [ ] nVidia Riva support
        Console display driver support --->
            [*] Framebuffer Console support
        [ ] Bootup logo --->
    [*] Sound card support --->
        [*] Advanced Linux Sound Architecture --->
            [*] PCI sound devices --->
               [*] Asus Virtuoso 66/100/200 (Xonar)
    HID support --->
        [*] HID bus support
    [*] USB support --->
        [*] xHCI HCD (USB 3.0) support (EXPERIMENTAL)
        [*] EHCI HCD (USB 2.0) support
Firmware Drivers --->
    [*] EFI Variable Support via sysfs
File systems --->
    [*] Second extended fs support
    [*] Ext3 journalling file system support
        [*] Default to 'data=ordered' in ext3
        [*] Ext3 extended attributes
    [*] The Extended 4 (ext4) filesystem
        [*] Ext4 extended attributes
    [*] Reiserfs support
    [*] JFS filesystem support
    [*] XFS filesystem support
    [*] Btrfs filesystem (EXPERIMENTAL) Unstable disk format
        Pseudo filesystems --->
            [*] /proc file system support
            [*] Tmpfs virtual memory file system support (former shm fs)

If it's of any use to anyone, here is the make.conf and full kernel .config:
make.conf
.config

Thanks,
~ Austin


Last edited by AustinMatherne on Thu Oct 04, 2012 1:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
AustinMatherne
n00b
n00b


Joined: 25 Jul 2012
Posts: 32
Location: Minneapolis, Minnesota, USA

PostPosted: Wed Oct 03, 2012 8:22 pm    Post subject: Reply with quote

I see that gentoo-sources-3.6.0 just made it into the testing branch. I'm going to give it a try to see if it makes any difference.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1668
Location: Berlin, Germany

PostPosted: Thu Oct 04, 2012 12:12 am    Post subject: Reply with quote

Is CONFIG_DEVTMPFS_MOUNT enabled in your kernel? The other filesystem warnings can be avoided with rootfstype=... kernel parameter.
Back to top
View user's profile Send private message
AustinMatherne
n00b
n00b


Joined: 25 Jul 2012
Posts: 32
Location: Minneapolis, Minnesota, USA

PostPosted: Thu Oct 04, 2012 1:18 am    Post subject: Reply with quote

Nope. That fixed it, thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum