Is there a way to merge to partitions with one being empty and the other having data (like in windows you can just add)
I would like to merge 2. partition to default partition 1p2
You forgot to tell which partitions you want to merge.
1p5 into 1p2
Show output of
lsblk -f -o +start,size
As preformatted text, not as picture.
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS START SIZE
sda 111.8G
|-sda1 2048 16M
|-sda2 ntfs CA4E98064E97E989 34816 111.1G
`-sda3 ntfs F8E6E7A0E6E75D7E 233121792 643M
nvme0n1 1.8T
|-nvme0n1p1 vfat FAT32 278E-118E 985.2M 4% /boot/efi 2048 1G
|-nvme0n1p2 btrfs 44970add-66da-4658-9a0c-0359610d450c 254.6G 75% /var 2099200 1T
| /usr/local
| /srv
| /root
| /opt
| /home
| /boot/grub2/x86_64-efi
| /boot/grub2/i386-pc
| /.snapshots
| /
|-nvme0n1p3 ntfs Pelit FC0AB7AC0AB76276 2150535168 444.7G
|-nvme0n1p4 swap 1 346a4998-0da2-4114-ae5b-71049d66f071 [SWAP] 3902834688 2G
`-nvme0n1p5 btrfs 33bb4b18-b20d-47af-9734-5d89ab2f2fa1 3083186176 390.8G
You cannot merge p2
and p5
because they are not immediately adjacent. You also cannot move p3
to the current location of p5
because p3
is larger.
If you do not need data on p3
(or can copy it away) you can simply delete p3
through p5
and then enlarge p2
. You can then even create p3
again and copy back its content assuming it has enough space. But you better do it from within Windows.
Otherwise it is possible to add p5
to the filesystem on the p2
, effectively increasing its size. I do not expect problems, but it complicates configuration and puts additional demand on skills needed to manage your system.
Ok thanks so not worth it.
I made now a another partition out of it instead. How do I use it to automount ? Can I do that with gparted?
Please explain. I know of at least three different things that people call loosely “automount of a file system”.
so that When I open the computer it would automaticly use the drive and I dont have to put the password
Also so I could install something in there
The partition seems not mounted permanently (/run/media/… is an indication for it). You may want to mount it properly via fstab. As it is a NTFS partition, proper settings are required so that your user has RW permissions on it.
actually this is a btrfs partition, and empty, can be formated if is easier with some other filesystem
According your screenshots, /dev/nvme0n1p3
is a NTFS partition…
When you want to inform us about what you have now, you then post again
lsblk -f
from the new situation.
Yeah was too fast, now I did something wrong and cant even rollback and pc is borked
"failed to set locale io error (.snapshots is not a btrfs subvolume)
update: got it working had to rollback further
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
|-sda1
|-sda2 ntfs CA4E98064E97E989
`-sda3 ntfs F8E6E7A0E6E75D7E
nvme0n1
|-nvme0n1p1 vfat FAT32 278E-118E 985.2M 4% /boot/efi
|-nvme0n1p2 btrfs 44970add-66da-4658-9a0c-0359610d450c 265.1G 74% /opt
| /root
| /usr/local
| /home
| /var
| /srv
| /boot/grub2/x86_64-efi
| /boot/grub2/i386-pc
| /.snapshots
| /
|-nvme0n1p3 ntfs Pelit FC0AB7AC0AB76276
|-nvme0n1p4 swap 1 346a4998-0da2-4114-ae5b-71049d66f071 [SWAP]
`-nvme0n1p5 btrfs 238b97d3-8c1d-4189-bc41-e480ca103e21
I want to use 1p5 as a “normal” automounted partition so I can install stuff onto it
This is unreadable. Look at Post #5 above, that is fine (except that it misses the line with the command).
Try to have compassion with those who try to help you.
I am also not sure what you did.
Is very vague.
As this is openSUSE, I would have used YaST > System > Partitioning. It would care for creating the partition, creating the file system, creating the mount point and creating of the /etc/fstab
entry. That is why they designed higher level system management tools, they help the occasional system manager not forgetting to do the needed actions.
As you can see in your comment, nvme0n1p5 has no mountpint. Mount the partition via fstab (choose a memorable or prefered path like /mnt/data) and make sure that your user has write permissions.
Or if you don’t know how to edit fstab, use YaST partitioner, select the partition, give it a mountpoint and mount it. This will create the fstab entry.
And as I am curious: why NTFS? You want to use it as an exchange with a Windows system? You already have two NTFS file sytems, may I assume that is a Windows system? Then you have already a possibility to exchange data.
You probably mean “mount during boot” with this.
Thank you all, sorry for unclear replies