SliTaz SliTaz Forum

You are not logged in.

#1 2018-11-24 18:58:58

douarn
Member
Registered: 2018-11-24
Posts: 4

slitaz rolling can't boot on btrfs file system

Hi

I installed slitaz on usb dongle btrfs formated. Installation went fine, I modify fstab and menu.list as require to allow grub to boot. Unfortunately, grub seem to be unable to recognize the file system (error 17). I tried to solve the problem by chrooting and reinstalling grub (grub-install) without success. grub-install give me a "Could not find device for /boot: Not found or not a block device." message.

As installing slitaz on the same usb dongle ext4 formated worked very well, I can say btrfs is the problem.

Please, Is it possible to use a slitaz on a btrfs file system?

(sorry for my bad english)

Offline

#2 2018-11-24 21:28:40

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: slitaz rolling can't boot on btrfs file system

Did you manually install grub2 that supports btrfs to the flash drive?

I doubt the boot loader grub4dos on the slitaz live iso's supports btrfs.

Offline

#3 2018-11-25 09:29:53

douarn
Member
Registered: 2018-11-24
Posts: 4

Re: slitaz rolling can't boot on btrfs file system

Hi mojo, thank you

You're right, grub2 is the solution. Maybe the procedure would be helpfull to others :

1. boot a live slitaz rolling, install slitaz on my btrfs formated flash drive without a boot loader (grub4dos)

2. mount my btrfs flash drive : # mount -o subvol=/,subvolid=5 /dev/sdb1 /mnt

3. copy over the DNS details to use an internet in the chroot environment :

       # cp /etc/resolv.conf /mnt/etc/resolv.conf

4. mount everything needed by a chroot environment :

       # for i in dev dev/pts sys proc run; do sudo mount --bind /$i mnt/$i; done

5. chroot in my flash drive : # chroot /mnt and test internet # ping www.google.com

6. recharge slitaz database : # tazpkg recharge

7. get grub2 from slitaz : # tazpkg -gi grub2

8. install grub2 on the flash drive :  # grub-mkconfig -o boot/grub/grub.cfg and # grub-install /dev/sdb

9. install btrfs in my chroot environment : # tazpkg -gi btrfs-libs btrfs-progs btrfs-mkfs

10. add a line in fstab : UUID=blablabla / btrfs ssd,noatime,compress=lzo,space_cache 0 1 too avoid kernel panic trying to find a root

Offline

#4 2018-11-25 15:04:45

douarn
Member
Registered: 2018-11-24
Posts: 4

Re: slitaz rolling can't boot on btrfs file system

Sorry, I made mistake in my last post. Please, would it be possible to delete it and consider this the error-free (hopefully) process description instead ?

Grub2 is the key to install and boot a slitaz rolling on a btrfs root filesystem. Hope the following procedure would be helpfull to you :

1. boot a live slitaz rolling, install slitaz on a btrfs formated flash drive without boot loader

2. don't reboot slitaz, instead mount the btrfs-formated flash drive :

          # mount /dev/sdb1 /mnt

3. copy over the DNS details to use an internet in the chroot environment :

          # cp /etc/resolv.conf /mnt/etc/resolv.conf

4. mount everything needed by a chroot environment :

          # for i in dev dev/pts sys proc run; do mount --bind /$i mnt/$i; done

5. chroot in btrfs-formated flash drive :

          # chroot /mnt

then test internet :

          # ping http://www.google.com

6. If everything is OK, you can recharge slitaz database :

          # tazpkg recharge

7. get and install grub2 from slitaz depots :

          # tazpkg -gi grub2

8. install grub2 on the flash drive :

          # grub-mkconfig -o boot/grub/grub.cfg

          # grub-install /dev/sdb

9. install btrfs in the chroot environment :

          # tazpkg -gi btrfs-libs btrfs-progs btrfs-mkfs

10. add the following line in fstab of your chrooted environment :

           UUID=blablabla / btrfs rw,relatime,compress=lzo,space_cache 0 1

          # nano /etc/fstab

11. in /etc/boot/grub.conf, change each occurence of hd1 to hd0 and each occurence of sdb1 to sda1

          # nano /etc/boot/grub.cfg

12. you can now boot your brand new slitaz on a btrfs-formated flash drive :-)

Offline

#5 2026-03-21 13:51:43

Arachnoborg
Member
Registered: 2026-03-21
Posts: 10

Re: slitaz rolling can't boot on btrfs file system

Hi sorry for ressurection..

7 years after, now new rolling version (2026-3) has GRUB2 installed, and it automagically detects the internet so you can skip to step 8.

However, at step 8,

$ grub-mkconfig -o boot/grub/grub.cfg ;

Command gives the line:

$ /usr/sbin/grub-probe: error: failed to get canonical path of 'tmpfs'.

I don't know what am i doing wrong (yet)

Feel free to help if you read this, any help is highly appreciated.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]