How to open the Quirky Void .img with mount-img

Moderator: BarryK

Post Reply
Caramel
Posts: 490
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 102 times
Been thanked: 84 times

How to open the Quirky Void .img with mount-img

Post by Caramel »

To open the Quirky Void .img (viewtopic.php?p=115931#p115931) with mount-img and displays the two partitions, just add btrfs at in the line 109 of /usr/bin/mount-img (EasyOS 5.7)

Line 109

Code: Select all

aFS="$(blkid ${LOOPn} | tr ' ' '\n' | grep '^TYPE' | cut -f 2 -d '"' | grep -E 'vfat|ext|f2fs|btrfs')"
williwaw
Posts: 1975
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 172 times
Been thanked: 372 times

Re: How to open the Quirky Void .img with mount-img

Post by williwaw »

Caramel wrote: Wed Apr 03, 2024 7:18 pm

To open the Quirky Void .img (viewtopic.php?p=115931#p115931) with mount-img and displays the two partitions, just add btrfs at in the line 109 of /usr/bin/mount-img (EasyOS 5.7)

Line 109

Code: Select all

aFS="$(blkid ${LOOPn} | tr ' ' '\n' | grep '^TYPE' | cut -f 2 -d '"' | grep -E 'vfat|ext|f2fs|btrfs')"

thanks for that..

Are you making a frugal install? I have an unused partition I am considering for use, but gparted (version 1.4.0) shows btrfs as a new partition choice greyed out and unselectable.

EDIT: updated PKGget and installed btrfs-progs and gparted works to reformat the partition to btrfs

Last edited by williwaw on Fri Apr 05, 2024 11:07 pm, edited 1 time in total.
Caramel
Posts: 490
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 102 times
Been thanked: 84 times

Re: How to open the Quirky Void .img with mount-img

Post by Caramel »

williwaw wrote: Wed Apr 03, 2024 7:50 pm

I have an unused partition I am considering for use, but gparted (version 1.4.0) shows btrfs as a new partition choice greyed out and unselectable.

EDIT: updated PKGget and installed btrfs-progs and gparted works to reformat the partition to btrfs

The files in btrfs-progs are already in btrfs-tools (installed by default EDIT: it's wrong), and in the same version, except in the directory /usr/lib/udev/rules.d

williwaw wrote: Wed Apr 03, 2024 7:50 pm

Are you making a frugal install?

Alas it's no so easy. A simple copy of the files is not sufficient to have an installed OS due to the use of volumes by btrfs

Last edited by Caramel on Sat Apr 06, 2024 1:50 pm, edited 1 time in total.
Caramel
Posts: 490
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 102 times
Been thanked: 84 times

Frugal install of QV ?

Post by Caramel »

Try of frugal install of Qurky Void (=Quantumvis)

After installation on a stick, I have formated a partition of the internal drive in btfrs, copied the files from the second partition of the stick (the directory quantumvis) to the internal partition. I also copied the files vmlinuz and initrd in a directory in an ext4 partition, added a stanza in the grub.cfg that manages the boot. After the reboot, test of the QV on the internal drive. It starts but after switch_root, kernel panic.

So I searched some documentation and found https://forum.manjaro.org/t/how-to-clone-btrfs/134143.

Used method to copy the files (from the second partition of the usb stick with QV to the btrfs internal partition):

Creation of directories to the transfer:

Code: Select all

mkdir /mnt/stick
mkdir /mnt/btrfs

Mounting of the btrfs partitions (the stick is /dev/sdb and "btrfs partition" is the btrfs partition (like sda5 or nvme0n4))

Code: Select all

mount -t btrfs /dev/sdb2 /mnt/stick
mount -t btfrs /dev/"btrfs partition" /mnt/btrfs

The copy of the files :

Code: Select all

btrfs subvolume snapshot -r /mnt/stick/quantumvis/1/@qv /mnt/stick/folder_0
btrfs send /mnt/stick/folder_0/ | btrfs receive /mnt/btrfs
btrfs subvolume snapshot /mnt/btrfs/folder_0/ /mnt/btrfs/quantumvis/1/@qv
btrfs subvolume delete /mnt/stick/folder_0/
btrfs subvolume delete /mnt/btrfs/folder_0/

btrfs subvolume snapshot -r /mnt/stick/quantumvis/1/@home /mnt/stick/folder_0
btrfs send /mnt/stick/folder_0/ | btrfs receive /mnt/btrfs
btrfs subvolume snapshot /mnt/btrfs/folder_0/ /mnt/btrfs/quantumvis/1/@home
btrfs subvolume delete /mnt/stick/folder_0/
btrfs subvolume delete /mnt/btrfs/folder_0/

btrfs subvolume snapshot -r /mnt/stick/quantumvis/@files /mnt/stick/folder_0
btrfs send /mnt/stick/folder_0/ | btrfs receive /mnt/btrfs
btrfs subvolume snapshot /mnt/btrfs/folder_0/ /mnt/btrfs/quantumvis/@files
btrfs subvolume delete /mnt/stick/folder_0/
btrfs subvolume delete /mnt/btrfs/folder_0/

cp /mnt/stick/quantumvis/snapshot-default /mnt/btrfs/
cp /mnt/stick/quantumvis/snapshot-record /mnt/btrfs/

This time after reboot, no kernel panic.

Edit : fixed a typo in the copy code

Not yet tested further than boot

williwaw
Posts: 1975
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 172 times
Been thanked: 372 times

Re: How to open the Quirky Void .img with mount-img

Post by williwaw »

Caramel wrote: Thu Apr 04, 2024 3:27 pm

The files in btrfs-progs are already in btrfs-tools (installed by default), and in the same version, except in the directory /usr/lib/udev/rules.d

I should have mentioned I had to add btrfs-progs to my Kirkstone frugal install

williwaw wrote: Wed Apr 03, 2024 7:50 pm

Are you making a frugal install?

Caramel wrote: Thu Apr 04, 2024 3:27 pm

Alas it's no so easy. A simple copy of the files is not sufficient to have an installed OS due to the use of volumes by btrfs

I have had similar results when trying to copy from the mounted image to my btrfs partition.

My frugal install attempt brought up the language choice menu and the keyboard choice menu.
also reported was
create subvolume: '/mnt/sda3/quantumvis/1/@home'
create subvolume: '/mnt/sda3/quantumvis/@files'
but boot proceding past password creation resulted in a panic.

Interesting work and reading referenced in your last post
tx

User avatar
BarryK
Posts: 2763
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 141 times
Been thanked: 756 times

Re: How to open the Quirky Void .img with mount-img

Post by BarryK »

Caramel wrote: Wed Apr 03, 2024 7:18 pm

To open the Quirky Void .img (viewtopic.php?p=115931#p115931) with mount-img and displays the two partitions, just add btrfs at in the line 109 of /usr/bin/mount-img (EasyOS 5.7)

Line 109

Code: Select all

aFS="$(blkid ${LOOPn} | tr ' ' '\n' | grep '^TYPE' | cut -f 2 -d '"' | grep -E 'vfat|ext|f2fs|btrfs')"

Thanks. I have applied the fix.

User avatar
BarryK
Posts: 2763
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 141 times
Been thanked: 756 times

Re: How to open the Quirky Void .img with mount-img

Post by BarryK »

A quick look at this:

https://btrfs.readthedocs.io/en/latest/ ... place.html

...not quite sure if it can clone just a single partition in a drive.

Seems that can, but probably a very good idea to try on a computer where you don't mind if something goes wrong.

User avatar
BarryK
Posts: 2763
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 141 times
Been thanked: 756 times

Re: How to open the Quirky Void .img with mount-img

Post by BarryK »

More information on btrfs replace:

https://wiki.tnonline.net/w/Btrfs/Replacing_a_disk

...looks like it can clone a partition to another partition.

But, seems that it invalidates the source partition.

User avatar
BarryK
Posts: 2763
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 141 times
Been thanked: 756 times

Re: How to open the Quirky Void .img with mount-img

Post by BarryK »

Discovered this:

"btrfs-clone"
https://github.com/mwilck/btrfs-clone

Post Reply

Return to “EasyOS”