Enlarging BTFS filesystem on Tumbleweed.
I want to enlarge the file system on my Tumbleweed partition and even after Googling the situation, I feel the whole procedure is definitely above my pay grade :) I have a 500 gig main drive split into various partitions. Disk /dev/sda: 447.13 GiB, 480103981056 bytes, 937703088 sectors Disk model: KINGSTON SA400S3 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xf73048ad Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 489330687 489328640 233.3G 83 Linux /dev/sda3 489334782 937699691 448364910 213.8G 5 Extended /dev/sda5 489334784 712566783 223232000 106.4G 83 Linux /dev/sda6 712568832 933502975 220934144 105.3G 83 Linux /dev/sda7 933505024 937699691 4194668 2G 82 Linux swap / Solaris Tumbleweed is on sda6, Debian Sid on sda1 using ext4, Fedora is on sda5 also with ext4 with swap space on sda7. I would like to delete Fedora from sda5 and enlarge sda6 to include that space . I'm planning KVM in Tumbleweed with a version of Fedora. What is the best way to go about this? I know partition work can only be done with the disk not mounted so it appears I'd have to boot from an external utility. If possible I'd like suggestions on the best way to proceed. From what I've read a BTRFS file system can only be enlarged from the front and not from the rear? All help appreciated. Thanks
Le 02/03/2023 à 21:12, Frank McCormick a écrit :
I want to enlarge the file system on my Tumbleweed partition and even after Googling the situation, I feel the whole
procedure is definitely above my pay grade :)
if you didn't begin the procadure, you can avoid it. Simply create a btrfs file system on the other partition (from your running config), *append* this partition to your actual btrfs file system and balance the result. No need to touch the partitions jdd -- mon serveur usenet: dodin.fr.nf c'est quoi, usenet? http://www.dodin.org/wiki/pmwiki.php?n=Usenet.Usenet
W dniu 3.03.2023 o 08:39, jdd@dodin.org pisze:
Le 02/03/2023 à 21:12, Frank McCormick a écrit :
I want to enlarge the file system on my Tumbleweed partition and even after Googling the situation, I feel the whole
procedure is definitely above my pay grade :)
if you didn't begin the procadure, you can avoid it.
Simply create a btrfs file system on the other partition (from your running config), *append* this partition to your actual btrfs file system and balance the result.
No need to touch the partitions
jdd
Right, I forgot about that one. If openSUSE is installed on btrfs, you can just use: sudo btrfs device add -f /dev/sda5 / (btrfs has a LVM-like functionality, where it can use multiple partitions for adding space or redundancy)
On 3/3/23 02:39, jdd@dodin.org wrote:
Le 02/03/2023 à 21:12, Frank McCormick a écrit :
I want to enlarge the file system on my Tumbleweed partition and even after Googling the situation, I feel the whole
procedure is definitely above my pay grade :)
if you didn't begin the procadure, you can avoid it.
Simply create a btrfs file system on the other partition (from your running config), *append* this partition to your actual btrfs file system and balance the result.
No need to touch the partitions
That's great news. I wasn't looking forward to the whole rigmarole of deleting, reformatting, moving etc etc. Now just have to google balancing BTRFS. Thanks Frnk
Le 04/03/2023 à 14:33, Frank McCormick a écrit :
Now just have to google balancing BTRFS.
it's like often in Linux, RTFM is long, but the result fast. However, Dont forget to write down what you do, such config is not that easy to remember some time later jdd -- mon serveur usenet: dodin.fr.nf c'est quoi, usenet? http://www.dodin.org/wiki/pmwiki.php?n=Usenet.Usenet
On Sat, 4 Mar 2023 08:33:56 -0500, Frank McCormick <mccfrank@gmail.com> wrote:
On 3/3/23 02:39, jdd@dodin.org wrote:
Le 02/03/2023 à 21:12, Frank McCormick a écrit :
I want to enlarge the file system on my Tumbleweed partition and even after Googling the situation, I feel the whole procedure is definitely above my pay grade :)
Simply create a btrfs file system on the other partition (from your running config), *append* this partition to your actual btrfs file system and balance the result.
No need to touch the partitions
That's great news. I wasn't looking forward to the whole rigmarole of deleting, reformatting, moving etc etc.
Now just have to google balancing BTRFS.
'man' as 'google': btrfs-balance(8), btrfs(8) -- Robert Webb
Le 02/03/2023 à 21:12, Frank McCormick a écrit :
I want to enlarge the file system on my Tumbleweed partition and even after Googling the situation, I feel the whole
procedure is definitely above my pay grade :)
https://btrfs.readthedocs.io/en/latest/Volume-management.html jdd -- mon serveur usenet: dodin.fr.nf c'est quoi, usenet? http://www.dodin.org/wiki/pmwiki.php?n=Usenet.Usenet
On 3/3/23 02:41, jdd@dodin.org wrote:
Le 02/03/2023 à 21:12, Frank McCormick a écrit :
I want to enlarge the file system on my Tumbleweed partition and even after Googling the situation, I feel the whole
procedure is definitely above my pay grade :)
https://btrfs.readthedocs.io/en/latest/Volume-management.html
Thank you. Will study closely, as BTRFS is far from ext4 which I am familiar with. Frank
On Thu, 2 Mar 2023 at 20:12, Frank McCormick <mccfrank@gmail.com> wrote:
What is the best way to go about this? I know partition work can only be done with the disk not mounted
Get the free Ventoy tool: https://www.ventoy.net/en/index.html You don't need to install it. Just unzip and run it. Use it to format a USB key. 8GB is enough, 16 is good, bigger is better. Then you can just drop ISO files onto the key, no need to write them with any special tool. When you boot any PC off the key (32-bit or 64-bit, BIOS or UEFI, doesn't matter, it works on all) it generates a menu of all the ISOs on the key on the fly every boot. Boot the distro you want. You can use something small like System Rescue: https://www.system-rescue.org/ You can put a full openSUSE live ISO on it: https://en.opensuse.org/SDB:Live_USB_stick You could use a KDE-based distro if you like: https://www.pclinuxos.com/ So long as it isn't your main OS, and it doesn't sound like it is, then it's easy. Boot from the key, use Gparted to remove the partition you don't want any more, and then you can reuse the space. If you use ext4 you can just resize into the free space with Gparted. If it's Btrfs, you might need to install the Btrfs tools package for your live distro first. Or you can use the commands others gave. This is the simple, easy, safe way. I do it a lot. One of my laptops has about 10 OSes on it, including Debian, Ubuntu, Fedora, openSUSE, Windows 10 and FreeBSD, managed this way. -- Liam Proven ~ Profile: https://about.me/liamproven Email: lproven@cix.co.uk ~ gMail/gTalk/FB: lproven@gmail.com Twitter/LinkedIn: lproven ~ Skype: liamproven UK: (+44) 7939-087884 ~ Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053
Le 03/03/2023 à 18:02, Liam Proven a écrit :
On Thu, 2 Mar 2023 at 20:12, Frank McCormick <mccfrank@gmail.com> wrote:
What is the best way to go about this? I know partition work can only be done with the disk not mounted
Get the free Ventoy tool: https://www.ventoy.net/en/index.html
good tool that I use regularly, but don't always boot the iso, depending of the hardware jdd -- mon serveur usenet: dodin.fr.nf c'est quoi, usenet? http://www.dodin.org/wiki/pmwiki.php?n=Usenet.Usenet
On Fri, 3 Mar 2023 at 17:11, jdd@dodin.org <jdd@dodin.org> wrote:
good tool that I use regularly, but don't always boot the iso, depending of the hardware
For what it's worth, pretty much every Linux and Windows I've tried worked. I think, from memory, Alpine Linux 64-bit wouldn't work, but 32-bit worked fine. Some distros, e.g. EasyLinux, don't publish ISOs so they won't work. Windows XP can't install from USB -- you need to burn a physical optical disk. Win7, 10 and 11 are fine. Haiku isn't supported, nor is Oberon or A2, but the latter 2 are very obscure. OS/2 Warp and eComStation need optical media; ArcaOS boots and installs from USB but you need to use their special tool to make it. FreeBSD worked fine. It's a good idea to update Ventoy regularly. It's easy and non-destructive: it leaves all your ISO files intact. -- Liam Proven ~ Profile: https://about.me/liamproven Email: lproven@cix.co.uk ~ gMail/gTalk/FB: lproven@gmail.com Twitter/LinkedIn: lproven ~ Skype: liamproven UK: (+44) 7939-087884 ~ Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053
On 3/3/23 12:02, Liam Proven wrote:
On Thu, 2 Mar 2023 at 20:12, Frank McCormick <mccfrank@gmail.com> wrote:
What is the best way to go about this? I know partition work can only be done with the disk not mounted Get the free Ventoy tool: https://www.ventoy.net/en/index.html
You don't need to install it. Just unzip and run it.
Use it to format a USB key. 8GB is enough, 16 is good, bigger is better.
Then you can just drop ISO files onto the key, no need to write them with any special tool. When you boot any PC off the key (32-bit or 64-bit, BIOS or UEFI, doesn't matter, it works on all) it generates a menu of all the ISOs on the key on the fly every boot.
Boot the distro you want.
You can use something small like System Rescue:
https://www.system-rescue.org/
You can put a full openSUSE live ISO on it:
https://en.opensuse.org/SDB:Live_USB_stick
You could use a KDE-based distro if you like:
So long as it isn't your main OS, and it doesn't sound like it is, then it's easy.
Boot from the key, use Gparted to remove the partition you don't want any more, and then you can reuse the space.
If you use ext4 you can just resize into the free space with Gparted.
If it's Btrfs, you might need to install the Btrfs tools package for your live distro first.
Or you can use the commands others gave.
This is the simple, easy, safe way. I do it a lot. One of my laptops has about 10 OSes on it, including Debian, Ubuntu, Fedora, openSUSE, Windows 10 and FreeBSD, managed this way.
Great tool. I have used it once already a few weeks ago when Debian instlalled a new Grub2 which included an osprober package which failed to find my Tumbleweed installation. Thanks Frank
On 3/3/23 12:02, Liam Proven wrote:
On Thu, 2 Mar 2023 at 20:12, Frank McCormick <mccfrank@gmail.com> wrote:
What is the best way to go about this? I know partition work can only be done with the disk not mounted Get the free Ventoy tool: https://www.ventoy.net/en/index.html
You don't need to install it. Just unzip and run it.
Use it to format a USB key. 8GB is enough, 16 is good, bigger is better.
I downloaded the latest Ventoy from their site this morning and created a new Ventoy USBkey. Copied the latest openSuse live iso to the key but after booting it does not show up. I didn't get any errors when installing Ventoy onto the key but if I attempt to mount the key it fails with the warning exfat not found. I do have the exfat utilities and fuse-exfat installed. Any ideas what's wrong ? Thanks
Le 04/03/2023 à 17:28, Frank McCormick a écrit :
On 3/3/23 12:02, Liam Proven wrote:
On Thu, 2 Mar 2023 at 20:12, Frank McCormick <mccfrank@gmail.com> wrote:
What is the best way to go about this? I know partition work can only be done with the disk not mounted Get the free Ventoy tool: https://www.ventoy.net/en/index.html
You don't need to install it. Just unzip and run it.
Use it to format a USB key. 8GB is enough, 16 is good, bigger is better.
I downloaded the latest Ventoy from their site this morning and created a new
Ventoy USBkey. Copied the latest openSuse live iso to the key but after booting
it does not show up. I didn't get any errors when installing Ventoy onto the key but
you have to boot from the key. Instructions are given in the ventoy archive
if I attempt to mount the key it fails with the warning exfat not found.
how did you copy the opensuse iso file?? jdd -- mon serveur usenet: dodin.fr.nf c'est quoi, usenet? http://www.dodin.org/wiki/pmwiki.php?n=Usenet.Usenet
On 3/5/23 03:32, jdd@dodin.org wrote:
Le 04/03/2023 à 17:28, Frank McCormick a écrit :
On 3/3/23 12:02, Liam Proven wrote:
On Thu, 2 Mar 2023 at 20:12, Frank McCormick <mccfrank@gmail.com> wrote:
What is the best way to go about this? I know partition work can only be done with the disk not mounted
I downloaded the latest Ventoy from their site this morning and created a new
Ventoy USBkey. Copied the latest openSuse live iso to the key but after booting
it does not show up. I didn't get any errors when installing Ventoy onto the key but
you have to boot from the key. Instructions are given in the ventoy archive
Yes that's what I did. Insert the key and reboot. The Ventoy screen comes up but says it did not find any files.
if I attempt to mount the key it fails with the warning exfat not found.
how did you copy the opensuse iso file??
From the command line.. .. "cp whatever.iso /dev/sdc1" I can't understand why I can't mount the key to have a look at what's on it, mount fails with the warning exfat not found, I think referring to the filesystem on the key. Perhaps the key is defective ? They don't last forever. Thanks
jdd
Le 06/03/2023 à 13:00, Frank McCormick a écrit :
you have to boot from the key.
this is only for use of the included isos Instructions are given in the ventoy archive sudo bash Ventoy2Disk.sh { -i | -I | -u } /dev/sdX sdX is the USB device, for example /dev/sdb.
Yes that's what I did. Insert the key and reboot. The Ventoy screen comes up but says it did not find any files.
if you just run the above command before rebooting, it's normal, no iso are on the drive
From the command line.. .. "cp whatever.iso /dev/sdc1"
sure this overwrite the ventoy install! To have a bootable key with only opensuse you have to type /dev/sdc (without the "1"), an iso is a full drive, not a partition.
I can't understand why I can't mount the key to have a look at what's on
do it again. run the above ventoy command then I don't remember if you even have to remove the key. Me I just right now plug a ventoy usb pen. Dolphin shows a "ventoy" disk, a clic ad it mounts an exfat partition, you can copy isos to this mounted partition as a file, not as a device . There is an other hidden (EFI) partition with ventoy driver. mine: Disk /dev/sde: 120.22 GiB, 129083899904 bytes, 252116992 sectors Disk model: STORE N GO Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x09a21f19 Device Boot Start End Sectors Size Id Type /dev/sde1 * 2048 252051455 252049408 120.2G 7 HPFS/NTFS/exFAT /dev/sde2 252051456 252116991 65536 32M ef EFI (FAT-12/16/32) then you can boot the usb pen and ventoy launch and shows the isos and offers to boot. booting the iso works often, but not always (approx ratio 4 times on 5 tries). Depends on the iso, the hardware, whatever... jdd -- mon serveur usenet: dodin.fr.nf c'est quoi, usenet? http://www.dodin.org/wiki/pmwiki.php?n=Usenet.Usenet
On 3/7/23 07:37, jdd@dodin.org wrote:
I don't remember if you even have to remove the key. Me I just right now plug a ventoy usb pen. Dolphin shows a "ventoy" disk, a clic ad it mounts an exfat partition, you can copy isos to this mounted partition as a file, not as a device . There is an other hidden (EFI) partition with ventoy driver.
These instructions from the Ventoy site are very confusing: After the installation is complete, the USB drive will be divided into 2 partitions. The 1st partition was formated with exFAT filesystem (You can also reformat it manually with NTFS/FAT32/UDF/XFS/Ext2/3/4 ... See Notes <https://ventoy.net/en/doc_disk_layout.html>). You just need to copy iso files to this partition. You can place the iso/wim/img/vhd(x) files any where. First it says you copy iso files to this partition. What partition? Then it says you can place the iso/etc files ANYWHERE !! I am trying yet again. I must be stupid ! They have also released another update to the program 1.0.89 apparently because of problems with the latest kernel.
mine:
Disk /dev/sde: 120.22 GiB, 129083899904 bytes, 252116992 sectors Disk model: STORE N GO Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x09a21f19
Device Boot Start End Sectors Size Id Type /dev/sde1 * 2048 252051455 252049408 120.2G 7 HPFS/NTFS/exFAT /dev/sde2 252051456 252116991 65536 32M ef EFI (FAT-12/16/32)
then you can boot the usb pen and ventoy launch and shows the isos and offers to boot.
booting the iso works often, but not always (approx ratio 4 times on 5 tries). Depends on the iso, the hardware, whatever...
jdd
Thanks Frank McCormick
On Tue, 7 Mar 2023 at 17:31, Frank McCormick <mccfrank@gmail.com> wrote:
These instructions from the Ventoy site are very confusing:
Are they? They do not seem it to me, TBH.
After the installation is complete, the USB drive will be divided into 2 partitions.
Right, so it tells you that there are 2 partitions. That's right. The other is the disk's ESP and you can't put an ISO into that because it's too small.
The 1st partition was formated with exFAT filesystem [...] You just need to copy iso files to this partition.
How is that unclear? There are 2 partitions. The first is formatted with exFAT. That is the one to use. That is all it says.
You can place the iso/wim/img/vhd(x) files any where.
First it says you copy iso files to this partition. What partition?
The first partition.
Then it says you can place the iso/etc files ANYWHERE !!
Yes. In any folder you like on that partition. -- Liam Proven ~ Profile: https://about.me/liamproven Email: lproven@cix.co.uk ~ gMail/gTalk/FB: lproven@gmail.com Twitter/LinkedIn: lproven ~ Skype: liamproven IoM: (+44) 7624 277612: UK: (+44) 7939-087884 Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053
On 3/8/23 10:55, Liam Proven wrote:
You can place the iso/wim/img/vhd(x) files any where.
First it says you copy iso files to this partition. What partition? The first partition.
Then it says you can place the iso/etc files ANYWHERE !! Yes. In any folder you like on that partition.
Now I get it. But I still think their instructions need to be clearer. BTW, the first 3 flash drives I tried turned out to be defective, despite Ventoy saying they had been created successfully by the GUI. The last one I used the shell script. Thanks
On Wed, 8 Mar 2023 12:19:22 -0500 Frank McCormick <mccfrank@gmail.com> wrote:
On 3/8/23 10:55, Liam Proven wrote:
You can place the iso/wim/img/vhd(x) files any where.
First it says you copy iso files to this partition. What partition? The first partition.
Then it says you can place the iso/etc files ANYWHERE !! Yes. In any folder you like on that partition.
Now I get it. But I still think their instructions need to be clearer.
Given that it seems to be clear to other people, how would you suggest it could be better worded?
BTW, the first 3 flash drives I tried turned out to be defective, despite
Ventoy saying they had been created successfully by the GUI.
The last one I used the shell script.
Thanks
On Tue, 7 Mar 2023 at 09:13, Frank McCormick <mccfrank@gmail.com> wrote:
Yes that's what I did. Insert the key and reboot. The Ventoy screen comes up but says it did not find any files.
Then you copied the ISO file to the wrong place, or did not wait for the copy to finish before removing the key.
From the command line.. .. "cp whatever.iso /dev/sdc1"
That is incorrect. You can't copy onto the device node. You need to mount the device first and then copy to the mount point. If you are not familiar with doing this, you should not try to use the command line. Why not simply use a graphical file manager?
I can't understand why I can't mount the key to have a look at what's on it, mount fails with the warning exfat not found, I think referring to the filesystem on the key. Perhaps the key is defective ? They don't last forever.
You copied the file to the wrong place and trashed the key. Reformat it and reinstall Ventoy. Then copy with a graphical tool to the mounted FAT32 partition on the key. -- Liam Proven ~ Profile: https://about.me/liamproven Email: lproven@cix.co.uk ~ gMail/gTalk/FB: lproven@gmail.com Twitter/LinkedIn: lproven ~ Skype: liamproven IoM: (+44) 7624 277612: UK: (+44) 7939-087884 Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053
participants (6)
-
Adam Mizerski
-
Dave Howorth
-
Frank McCormick
-
jdd@dodin.org
-
Liam Proven
-
Robert Webb