Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems starting the system (zfs)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Wed Mar 28, 2018 10:28 am    Post subject: Problems starting the system (zfs) Reply with quote

Hi, I installed the system on a zpool taking the whole disk, I used grub and and built initramfs with genkernel, but now when I start the system I have this error
Code:
Booting (initramfs)
/newroot is a mountpoint
Chroot : can't execute '/usr/bin/test' : No such file or directory
>>Switching to real root: /sbin/switch_root -c /dev/console /newroor /sbin/init

INIT: version 2.88 booting
INIT: No inittab file found

Enter runlevel:
Back to top
View user's profile Send private message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Sat Mar 31, 2018 4:05 pm    Post subject: Reply with quote

Any help? I've also tried generating initramfs with bliss script and I have the same problem. I have to add that, if I set a wrong root in grub.cfg, so it bring me to the shel and then I manually import the zpool, the system starts normally :?
Back to top
View user's profile Send private message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 537
Location: London,UK

PostPosted: Sun Apr 01, 2018 3:22 am    Post subject: Reply with quote

Try building the initramfs using dracut like so,

Code:

dracut --omit resume  --omit-drivers="resume" --host-only "" 4.9.76-gentoo-r1


Change your kernel version though above.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5513

PostPosted: Sun Apr 01, 2018 12:39 pm    Post subject: Reply with quote

If you have access to irc, pop over to #zfsonlinux on freenode.
_________________
overlay | patches
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.
Back to top
View user's profile Send private message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Mon Apr 02, 2018 10:12 am    Post subject: Reply with quote

Oh, I solved the problem, I just needed to have /etc on the same / dataset. Howewer, is there a way to mount other dataset aside from root on startup?
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5513

PostPosted: Sat Apr 07, 2018 9:13 am    Post subject: Reply with quote

Windmill wrote:
Howewer, is there a way to mount other dataset aside from root on startup?


sorry for the delay.

if they are zfs and on the same pool, they should be mounted on import (unless you have canmount set to no). if they're from another pool, you probably need to start the zfs-import and zfs-mount services. if you used legacy mountpoints, then they should get mounted on boot when the system reads /etc/fstab.
_________________
overlay | patches
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.
Back to top
View user's profile Send private message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Sun Apr 15, 2018 3:33 pm    Post subject: Reply with quote

bunder wrote:
Windmill wrote:
Howewer, is there a way to mount other dataset aside from root on startup?


sorry for the delay.

if they are zfs and on the same pool, they should be mounted on import (unless you have canmount set to no). if they're from another pool, you probably need to start the zfs-import and zfs-mount services. if you used legacy mountpoints, then they should get mounted on boot when the system reads /etc/fstab.

They are on the same pool. but are not import at boot
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5513

PostPosted: Mon Apr 16, 2018 7:33 am    Post subject: Reply with quote

I would try starting zfs-mount but afaik you shouldn't need it if its on the same pool.
_________________
overlay | patches
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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