[lfs-support] grub.cfg

Chris Staub chris at beaker67.com
Sat Aug 6 10:40:47 PDT 2016


On 08/05/2016 02:30 PM, Ray McCaffity wrote:
> root:/# df -T
> Filesystem     Type     1K-blocks    Used Available Use% Mounted on
> /dev/sdb3      ext4      72117368 3408696  65022272   5% /
> /dev/sdb1      ext4       8256952   48512   7789012   1% /boot
> /dev/sdb4      ext4      51474912   53384  48783704   1% /home
> devtmpfs       devtmpfs  37009824       0  37009824   0% /dev
> tmpfs          tmpfs     37026700       0  37026700   0% /run
> root:/#
>
> When building the kernel.  I see...
>
>  INSTALL fs/btrfs/btrfs.ko
>  INSTALL fs/efivarfs/efivarfs.ko
>  INSTALL fs/ext2/ext2.ko
>  INSTALL fs/ext4/ext4.ko
>  INSTALL fs/jbd2/jbd2.ko
>  INSTALL fs/jfs/jfs.ko
>
> .config looks like this.
>
> CONFIG_EXT2_FS=m
> CONFIG_EXT2_FS_XATTR=y
> CONFIG_EXT2_FS_POSIX_ACL=y
> CONFIG_EXT2_FS_SECURITY=y
> CONFIG_EXT3_FS=m
> CONFIG_EXT3_FS_POSIX_ACL=y
> CONFIG_EXT3_FS_SECURITY=y
> CONFIG_EXT4_FS=m
> CONFIG_EXT4_FS_POSIX_ACL=y
> CONFIG_EXT4_FS_SECURITY=y
>
> I also see this...
> root:/boot/grub/i386-pc# ls -l $PWD/ext2.mod
> -rw-r--r-- 1 root root 5672 Aug  4 12:52 /boot/grub/i386-pc/ext2.mod
>
> I tried putting the "insmod ext2"  (I was told ext2 covers ext3 and
> ext4) in the grub entry
> but it didn't seem to help.

I don't know why you're replying to me instead of the list. Also, please 
don't top-post.

The problem is you have the filesystems compiled in the kernel as 
modules. Read the links given in the kernel page in the book, in 
particular the "kernel-configuration" hint.


More information about the lfs-support mailing list