script seems to mount sda6 (a freshly created btrfs partition), but complains "ERROR failed to mount the btrfs partition /dev/sda6"
pmount shows sda6 being mounted, (and pmount also showed sda6 being unmounted just prior to the last command given.)
the use case is putting qv vmlinuz and initrd all in the same partition
will reboot and try again.
Code: Select all
# ./qv-installer qv-*
QV Installer is a partly-manual and partly-automatic script to install QV into the partitions of an internal drive. Or, an external (USB) drive if you wish.
The first option to get out of the way, is if you want to install QV to the entire drive, internal or external, this script is not appropriate. Instead use 'EasyDD', that you will find in the Setup category of the menu (or open a terminal wherever you have downloaded the QV drive-image file and run it; for example '# easydd qv-200421-amd64.img'
Continuing in this script, you have a drive with partitions, and you want to install QV into one or more of those partitions...
This script is for installing QV to a Windows computer, with x86_64 CPU; that is, Intel or AMD 64-bit CPU. Before continuing, you need to know what type of BIOS firmware it has. Nearly all PCs manufactored from 2012 onwards will have UEFI firmware; prior to that most will be traditional BIOS. You must know which one your PC has.
For traditional BIOS PCs, you must install a bootloader. QV Installer does not install a bootloader; you must do that yourself. The choices are GRUB v1, GRUB v2, GRUB4DOS, Syslinux, LILO, and Limine.
If you already have Linux installed, then there will be a bootloader. Most mainstream Linux distributions will install GRUB. If you already have a bootloader, then a new menu entry can be made in it for booting QV.
Note that QV has 'Limine Installer', to install the Limine bootloader, though note it is a work-in-progress so use at your own risk. Limine Installer can be found in the Setup category of the menu.
For UEFI PCs, you would normally also need to install a bootloader. However, the UEFI firmware does have a basic bootloader builtin; what this does is look for vfat partitions with the 'esp' flag set, and will offer to boot from one of those.
There will already be an esp boot partition, for booting Windows or Linux; however, if you create another one, just for QV, then the UEFI bootloader will detect it and it becomes a choice to boot from.
Another factor to consider; if your PC has Windows installed, Windows will not be happy if you do something like use Gparted (the partition manager tool in QV) to say shrink the partition Windows is installed in and create a esp boot partition and a btrfs partition to install QV. Windows has its own Partition Manager, and this must be used if you want to shrink the Windows partition. After freeing up space on the drive, then you can use Gparted.
Decisions, decisions! Fully digest the above paragraphs, and if necessary abort this script and create the required partitions. Something else important to consider, before continuing this script:
QV is going to be installed into a partition with btrfs filesystem; however, most bootloaders do not recognize btrfs partitions. Or even if they do, there may be issues. QV has two files required for bootup; vmlinuz (the Linux kernel) and initrd. It is recommended to put these into a vfat boot partition; easily found by the bootloader.
As mentioned above, with a UEFI PC you could create a new esp boot partition and put those files into it. Or, use an existing boot partition -- but then, does it have enough free space? vmlinuz is about 7.5MB and initrd about 7.1MB -- so will need at least 15MB free space.
So, think about the boot partition as well, before continuing with this script.
Something else to consider! Some mainstream Linux distributions, such as Fedora or OpenSuse, by default run in a btrfs partition. Others, such as Debian, default to running in a ext4 partition.
So, if you have already installed a Linux distribution that has created a btrfs partition, then you are likely good-to-go for installing QV. Reason is, QV will install into a directory in the already-existing btrfs partition, leaving the rest of the partition as-is.
If you have a PC with only Windows, has never had Linux installed, then you might want to consider going this route; install Fedora or OpenSuse first. These have sophisticated installers, that will do most things automatically, and you will end up with partitions that you can use to install QV. And the Linux installer will also have installed a bootloader, probably GRUB v2.
Press ENTER key to continue, anything else to abort:
Please enter the partition to install QV. This may already have a btrfs filesystem; if not,the partition will be wiped and a btrfs filesystem created.
If there is already an existing btrfs filesystem, existing content will be kept. QV will just install into a folder in the partition.
(ex: sdc2): sda6
Please enter the boot partition.
Files vmlinuz and initrd will be installed here.
Note, you can enter same as above; however, the bootloader must be able to recognize a btrfs partition. Recent GRUB2 and rEFInd can handle this, but there may be issues.
If you don't have a bootloader installed, or don't want to use it, use Gparted to create a new vfat esp boot partition, recommend 32MB size -- do that, then continue here.
(Technical detail: if PC has Windows installed, may need to use Windows Partition Manager to first create some free space in the drive)
(ex: sda1): sda6
mount: mounting /dev/sda6 on /mnt/sda6 failed: Resource busy
ERROR failed to mount the btrfs partition /dev/sda6
Press ENTER to abort: #
same behavior as before, but when rerunning the script and choosing sda1 (fat32) for a boot partition, the script completes and qv boots.
Code: Select all
# ./qv-installer qv-2*
QV Installer is a partly-manual and partly-automatic script to install QV into the partitions of an internal drive. Or, an external (USB) drive if you wish.
The first option to get out of the way, is if you want to install QV to the entire drive, internal or external, this script is not appropriate. Instead use 'EasyDD', that you will find in the Setup category of the menu (or open a terminal wherever you have downloaded the QV drive-image file and run it; for example '# easydd qv-200421-amd64.img'
Continuing in this script, you have a drive with partitions, and you want to install QV into one or more of those partitions...
This script is for installing QV to a Windows computer, with x86_64 CPU; that is, Intel or AMD 64-bit CPU. Before continuing, you need to know what type of BIOS firmware it has. Nearly all PCs manufactored from 2012 onwards will have UEFI firmware; prior to that most will be traditional BIOS. You must know which one your PC has.
For traditional BIOS PCs, you must install a bootloader. QV Installer does not install a bootloader; you must do that yourself. The choices are GRUB v1, GRUB v2, GRUB4DOS, Syslinux, LILO, and Limine.
If you already have Linux installed, then there will be a bootloader. Most mainstream Linux distributions will install GRUB. If you already have a bootloader, then a new menu entry can be made in it for booting QV.
Note that QV has 'Limine Installer', to install the Limine bootloader, though note it is a work-in-progress so use at your own risk. Limine Installer can be found in the Setup category of the menu.
For UEFI PCs, you would normally also need to install a bootloader. However, the UEFI firmware does have a basic bootloader builtin; what this does is look for vfat partitions with the 'esp' flag set, and will offer to boot from one of those.
There will already be an esp boot partition, for booting Windows or Linux; however, if you create another one, just for QV, then the UEFI bootloader will detect it and it becomes a choice to boot from.
Another factor to consider; if your PC has Windows installed, Windows will not be happy if you do something like use Gparted (the partition manager tool in QV) to say shrink the partition Windows is installed in and create a esp boot partition and a btrfs partition to install QV. Windows has its own Partition Manager, and this must be used if you want to shrink the Windows partition. After freeing up space on the drive, then you can use Gparted.
Decisions, decisions! Fully digest the above paragraphs, and if necessary abort this script and create the required partitions. Something else important to consider, before continuing this script:
QV is going to be installed into a partition with btrfs filesystem; however, most bootloaders do not recognize btrfs partitions. Or even if they do, there may be issues. QV has two files required for bootup; vmlinuz (the Linux kernel) and initrd. It is recommended to put these into a vfat boot partition; easily found by the bootloader.
As mentioned above, with a UEFI PC you could create a new esp boot partition and put those files into it. Or, use an existing boot partition -- but then, does it have enough free space? vmlinuz is about 7.5MB and initrd about 7.1MB -- so will need at least 15MB free space.
So, think about the boot partition as well, before continuing with this script.
Something else to consider! Some mainstream Linux distributions, such as Fedora or OpenSuse, by default run in a btrfs partition. Others, such as Debian, default to running in a ext4 partition.
So, if you have already installed a Linux distribution that has created a btrfs partition, then you are likely good-to-go for installing QV. Reason is, QV will install into a directory in the already-existing btrfs partition, leaving the rest of the partition as-is.
If you have a PC with only Windows, has never had Linux installed, then you might want to consider going this route; install Fedora or OpenSuse first. These have sophisticated installers, that will do most things automatically, and you will end up with partitions that you can use to install QV. And the Linux installer will also have installed a bootloader, probably GRUB v2.
Press ENTER key to continue, anything else to abort:
Please enter the partition to install QV. This may already have a btrfs filesystem; if not,the partition will be wiped and a btrfs filesystem created.
If there is already an existing btrfs filesystem, existing content will be kept. QV will just install into a folder in the partition.
(ex: sdc2): sda6
Please enter the boot partition.
Files vmlinuz and initrd will be installed here.
Note, you can enter same as above; however, the bootloader must be able to recognize a btrfs partition. Recent GRUB2 and rEFInd can handle this, but there may be issues.
If you don't have a bootloader installed, or don't want to use it, use Gparted to create a new vfat esp boot partition, recommend 32MB size -- do that, then continue here.
(Technical detail: if PC has Windows installed, may need to use Windows Partition Manager to first create some free space in the drive)
(ex: sda1): sda6
mount: mounting /dev/sda6 on /mnt/sda6 failed: Resource busy
ERROR failed to mount the btrfs partition /dev/sda6
Press ENTER to abort: #
# ./qv-installer qv-2*
QV Installer is a partly-manual and partly-automatic script to install QV into the partitions of an internal drive. Or, an external (USB) drive if you wish.
The first option to get out of the way, is if you want to install QV to the entire drive, internal or external, this script is not appropriate. Instead use 'EasyDD', that you will find in the Setup category of the menu (or open a terminal wherever you have downloaded the QV drive-image file and run it; for example '# easydd qv-200421-amd64.img'
Continuing in this script, you have a drive with partitions, and you want to install QV into one or more of those partitions...
This script is for installing QV to a Windows computer, with x86_64 CPU; that is, Intel or AMD 64-bit CPU. Before continuing, you need to know what type of BIOS firmware it has. Nearly all PCs manufactored from 2012 onwards will have UEFI firmware; prior to that most will be traditional BIOS. You must know which one your PC has.
For traditional BIOS PCs, you must install a bootloader. QV Installer does not install a bootloader; you must do that yourself. The choices are GRUB v1, GRUB v2, GRUB4DOS, Syslinux, LILO, and Limine.
If you already have Linux installed, then there will be a bootloader. Most mainstream Linux distributions will install GRUB. If you already have a bootloader, then a new menu entry can be made in it for booting QV.
Note that QV has 'Limine Installer', to install the Limine bootloader, though note it is a work-in-progress so use at your own risk. Limine Installer can be found in the Setup category of the menu.
For UEFI PCs, you would normally also need to install a bootloader. However, the UEFI firmware does have a basic bootloader builtin; what this does is look for vfat partitions with the 'esp' flag set, and will offer to boot from one of those.
There will already be an esp boot partition, for booting Windows or Linux; however, if you create another one, just for QV, then the UEFI bootloader will detect it and it becomes a choice to boot from.
Another factor to consider; if your PC has Windows installed, Windows will not be happy if you do something like use Gparted (the partition manager tool in QV) to say shrink the partition Windows is installed in and create a esp boot partition and a btrfs partition to install QV. Windows has its own Partition Manager, and this must be used if you want to shrink the Windows partition. After freeing up space on the drive, then you can use Gparted.
Decisions, decisions! Fully digest the above paragraphs, and if necessary abort this script and create the required partitions. Something else important to consider, before continuing this script:
QV is going to be installed into a partition with btrfs filesystem; however, most bootloaders do not recognize btrfs partitions. Or even if they do, there may be issues. QV has two files required for bootup; vmlinuz (the Linux kernel) and initrd. It is recommended to put these into a vfat boot partition; easily found by the bootloader.
As mentioned above, with a UEFI PC you could create a new esp boot partition and put those files into it. Or, use an existing boot partition -- but then, does it have enough free space? vmlinuz is about 7.5MB and initrd about 7.1MB -- so will need at least 15MB free space.
So, think about the boot partition as well, before continuing with this script.
Something else to consider! Some mainstream Linux distributions, such as Fedora or OpenSuse, by default run in a btrfs partition. Others, such as Debian, default to running in a ext4 partition.
So, if you have already installed a Linux distribution that has created a btrfs partition, then you are likely good-to-go for installing QV. Reason is, QV will install into a directory in the already-existing btrfs partition, leaving the rest of the partition as-is.
If you have a PC with only Windows, has never had Linux installed, then you might want to consider going this route; install Fedora or OpenSuse first. These have sophisticated installers, that will do most things automatically, and you will end up with partitions that you can use to install QV. And the Linux installer will also have installed a bootloader, probably GRUB v2.
Press ENTER key to continue, anything else to abort:
Please enter the partition to install QV. This may already have a btrfs filesystem; if not,the partition will be wiped and a btrfs filesystem created.
If there is already an existing btrfs filesystem, existing content will be kept. QV will just install into a folder in the partition.
(ex: sdc2): sda6
Please enter the boot partition.
Files vmlinuz and initrd will be installed here.
Note, you can enter same as above; however, the bootloader must be able to recognize a btrfs partition. Recent GRUB2 and rEFInd can handle this, but there may be issues.
If you don't have a bootloader installed, or don't want to use it, use Gparted to create a new vfat esp boot partition, recommend 32MB size -- do that, then continue here.
(Technical detail: if PC has Windows installed, may need to use Windows Partition Manager to first create some free space in the drive)
(ex: sda1): sda1
ERROR /dev/sda6 must not be mounted. Unmount it then rerun this script.
# ./qv-installer qv-2*
QV Installer is a partly-manual and partly-automatic script to install QV into the partitions of an internal drive. Or, an external (USB) drive if you wish.
The first option to get out of the way, is if you want to install QV to the entire drive, internal or external, this script is not appropriate. Instead use 'EasyDD', that you will find in the Setup category of the menu (or open a terminal wherever you have downloaded the QV drive-image file and run it; for example '# easydd qv-200421-amd64.img'
Continuing in this script, you have a drive with partitions, and you want to install QV into one or more of those partitions...
This script is for installing QV to a Windows computer, with x86_64 CPU; that is, Intel or AMD 64-bit CPU. Before continuing, you need to know what type of BIOS firmware it has. Nearly all PCs manufactored from 2012 onwards will have UEFI firmware; prior to that most will be traditional BIOS. You must know which one your PC has.
For traditional BIOS PCs, you must install a bootloader. QV Installer does not install a bootloader; you must do that yourself. The choices are GRUB v1, GRUB v2, GRUB4DOS, Syslinux, LILO, and Limine.
If you already have Linux installed, then there will be a bootloader. Most mainstream Linux distributions will install GRUB. If you already have a bootloader, then a new menu entry can be made in it for booting QV.
Note that QV has 'Limine Installer', to install the Limine bootloader, though note it is a work-in-progress so use at your own risk. Limine Installer can be found in the Setup category of the menu.
For UEFI PCs, you would normally also need to install a bootloader. However, the UEFI firmware does have a basic bootloader builtin; what this does is look for vfat partitions with the 'esp' flag set, and will offer to boot from one of those.
There will already be an esp boot partition, for booting Windows or Linux; however, if you create another one, just for QV, then the UEFI bootloader will detect it and it becomes a choice to boot from.
Another factor to consider; if your PC has Windows installed, Windows will not be happy if you do something like use Gparted (the partition manager tool in QV) to say shrink the partition Windows is installed in and create a esp boot partition and a btrfs partition to install QV. Windows has its own Partition Manager, and this must be used if you want to shrink the Windows partition. After freeing up space on the drive, then you can use Gparted.
Decisions, decisions! Fully digest the above paragraphs, and if necessary abort this script and create the required partitions. Something else important to consider, before continuing this script:
QV is going to be installed into a partition with btrfs filesystem; however, most bootloaders do not recognize btrfs partitions. Or even if they do, there may be issues. QV has two files required for bootup; vmlinuz (the Linux kernel) and initrd. It is recommended to put these into a vfat boot partition; easily found by the bootloader.
As mentioned above, with a UEFI PC you could create a new esp boot partition and put those files into it. Or, use an existing boot partition -- but then, does it have enough free space? vmlinuz is about 7.5MB and initrd about 7.1MB -- so will need at least 15MB free space.
So, think about the boot partition as well, before continuing with this script.
Something else to consider! Some mainstream Linux distributions, such as Fedora or OpenSuse, by default run in a btrfs partition. Others, such as Debian, default to running in a ext4 partition.
So, if you have already installed a Linux distribution that has created a btrfs partition, then you are likely good-to-go for installing QV. Reason is, QV will install into a directory in the already-existing btrfs partition, leaving the rest of the partition as-is.
If you have a PC with only Windows, has never had Linux installed, then you might want to consider going this route; install Fedora or OpenSuse first. These have sophisticated installers, that will do most things automatically, and you will end up with partitions that you can use to install QV. And the Linux installer will also have installed a bootloader, probably GRUB v2.
Press ENTER key to continue, anything else to abort:
Please enter the partition to install QV. This may already have a btrfs filesystem; if not,the partition will be wiped and a btrfs filesystem created.
If there is already an existing btrfs filesystem, existing content will be kept. QV will just install into a folder in the partition.
(ex: sdc2): sda6
Please enter the boot partition.
Files vmlinuz and initrd will be installed here.
Note, you can enter same as above; however, the bootloader must be able to recognize a btrfs partition. Recent GRUB2 and rEFInd can handle this, but there may be issues.
If you don't have a bootloader installed, or don't want to use it, use Gparted to create a new vfat esp boot partition, recommend 32MB size -- do that, then continue here.
(Technical detail: if PC has Windows installed, may need to use Windows Partition Manager to first create some free space in the drive)
(ex: sda1): sda1
Copying vmlinuz and initrd into /mnt/sda1
copied into folder qv240403
Populating /mnt/sda6/qv240403/1/@qv/
this may take awhile...
Create subvolume '/mnt/sda6/qv240403/1/@qv'
Installed.
Final notes:
If you need to make a bootloader menu entry, pass these parameters on the kernel command line:
wkg_uuid=f16f7d6a-5dfa-48f2-99e1-580f4e56b623 wkg_dir=qv240403/
#
when mounting a partition with pmount, the partition icon changes to the icon with the orange x in the upper right
when a partition is mounted with the script, the icon remains unchanged