Broken drive partitions after resize and move with kde partition manager
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Broken drive partitions after resize and move with kde partition manager
I broke my btrfs partition after moving and resizing it with kde partition manager. I tried to move my partition and shrink it. This process was uninterrupted. I tried fixing partitions using testdisk but it failed.
Code:
Disk /dev/nvme0n1 - 2000 GB / 1863 GiB - CHS 1907729 64 32
The harddisk (2000 GB / 1863 GiB) seems too small! (< 2167 GB / 2019 GiB)
Check the harddisk size: HD jumper settings, BIOS detection...
The following partition can't be recovered:
Partition Start End Size in sectors
> Linux filesys. data 330485632 4234186623 3903700992 [fedora_localhost-live]
[ Continue ]
btrfs blocksize=4096 Backup superblock, 1998 GB / 1861 GiB
Repairing by using btrfs also failed.
However when i tried using photorec i was able to recover uncorrupted files.
Is it possible to recover my btrfs partition?
lsblk command:
Code:
[root@localhost-live liveuser]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 2.1G 1 loop
loop1 7:1 0 7.3G 1 loop
├─live-rw 253:0 0 7.3G 0 dm /
└─live-base 253:1 0 7.3G 1 dm
loop2 7:2 0 32G 0 loop
└─live-rw 253:0 0 7.3G 0 dm /
sda 8:0 1 7.6G 0 disk
├─sda1 8:1 1 2.2G 0 part /run/initramfs/live
├─sda2 8:2 1 9.9M 0 part
└─sda3 8:3 1 300K 0 part
zram0 252:0 0 8G 0 disk [SWAP]
nvme0n1 259:0 0 1.8T 0 disk
└─nvme0n1p3 259:4 0 1.8T 0 part
nvme1n1 259:2 0 476.9G 0 disk
└─nvme1n1p1 259:1 0 476.9G 0 part /run/media/liveuser/7b9cdf1f-7d32-477e-bb6a-0aaffbde72b3
I seriously doubt it. Managing BTRFS's multiple devices requires unique care. Did you read any instructions before opening the KDE partitioner? Try reading these and see what you think.
I too would vote no (without having tried). I'm surprised something as mature as KDE would let you even try.
I have long been a proponent of btrfs, but I never use it for my root filesystem - I manage backup/restore for that myself. For data, I find snapshot irreplacable.
BTRFS is not nearly as mature as most other file systems used on linux. Most users are not familiar with management and tools that work well on other file systems often work poorly or not at all with btrfs.
As stated above, I still use LVM and EXT4 for my file systems since that technology is mature and stable. Maybe when btrfs has matured more I will consider it but so far I avoid it like the plague for my critical machines.
I would think you should consider yourself fortunate to have managed to recover what you have since btrfs isn't specifically listed as supported by photorec.
If testdisk can't help with the partition recovery, I'd reckon your chances using FOSS tools are diminishingly small.
Maybe recreating the original btrfs partitions with fdisk and run btrfs-scan and btrfs-check on the partitions will allow recovering of data.
This may or may not work since btrfs normally is used with a volume in the partition and subvolumes within the file system (root volume) on that partition.
The fact that the OP was able to recover files is good and I would rather suggest that he reinstall; then in the future never use tools that are not designed for btrfs on a btrfs file system.
Last edited by computersavvy; 12-21-2022 at 10:04 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.