View previous topic :: View next topic |
Author |
Message |
betlor5 n00b
Joined: 12 Jul 2013 Posts: 25
|
Posted: Fri Jul 12, 2013 8:47 pm Post subject: sysfs fails in luks encrypted gentoo |
|
|
Hi,
I am quite new to gentoo and have been trying to get it to run for about a week. My problem is that I'm running gentoo in a luks encrypted environment and that sysfs seems to fail if I try to start it.
Code: |
/etc/init.d/sysfs start
* Mounting cgroup filesystem ...
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
* Mounting cgroup filesystem ... [ !! ]
|
my rc-update looks like this:
Code: |
bootmisc | boot
dbus | default
devfs | sysinit
dmesg | sysinit
fsck | boot
hostname | boot
hwclock | boot
keymaps | boot
killprocs | shutdown
local | default
localmount | boot
modules | boot
mount-ro | shutdown
mtab | boot
net.enp4s0 | default
net.lo | boot
netmount | default
procfs | boot
root | boot
savecache | shutdown
swap | boot
swapfiles | boot
sysctl | boot
sysfs | sysinit
termencoding | boot
tmpfiles.setup | boot
udev | sysinit
udev-mount | sysinit
urandom | boot
xdm | default
|
and my tempory init in the initramfs is:
Code: |
#! /bin/sh
rmap=root
export PATH=/bin:/sbin
mount -t proc none /proc
mount -t sysfs none /sys
if grep devtmpfs /proc/filesystems &>/dev/null; then
mount -t devtmpfs devtmpfs /dev
else mount -t tmpfs tmpfs /dev; fi
mdev -s
echo /sbin/mdev > /proc/sys/kernel/hotplug
cryptsetup luksOpen /dev/sda4 vault
lvm vgscan
lvm vgchange -aly vg
mount /dev/mapper/vg-root /newroot
umount /proc
umount /dev
umount /sys
#mount -t devtmpfs none /newroot/dev
#mount -t proc none /newroot/proc
#mount -t sysfs none /newroot/sys
exec switch_root /newroot /sbin/init
|
actually it took me quite a while to figure that one out, so if you spott any mistakes in my init let me know. Right now I want to start kde through xorg but as you know udev only starts if sysfs is running. If I have forgotten to poste any thing of importance please let me know otherwise I hope you can help me.
Greetings
betlor5 |
|
Back to top |
|
|
betlor5 n00b
Joined: 12 Jul 2013 Posts: 25
|
Posted: Fri Jul 12, 2013 10:31 pm Post subject: |
|
|
Hi,
I figured it out after having a look at dmesg | tail. There it said that sysfs tried to start ext3 and ext2 even though my whole system is ext4 exclusive. I figured I might give it a try and activated the models in the kernel and now it works.
I guess posting this won't hurt.
Greetings
betlor5 |
|
Back to top |
|
|
|
|
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
|
|