You are not logged in.
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
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
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
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
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
[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]