The officially official Devuan Forum!

You are not logged in.

#1 2024-08-22 15:58:32

deepforest
Member
Registered: 2020-03-24
Posts: 354  

GParted - unallocated space within the partition(HOW recover data?)

Please. How fix this?
https://i.ibb.co/tzCQ9MT/Screenshot-202 … -55-59.png
https://i.ibb.co/7WXCLnw/Screenshot-202 … -00-13.png
Partition --> Check not help

UPD
story, i am interrupted cp operation by ctr+c(or z, i do not remember)
launch Gparted and reformat destination patrition,
but i dont know how source partitition of cp operation was formatted too,
i guess cp move to background and still copyng,
because unmount say that target is busy,
Question why its happens?
Perhaps source+destination partition was linked by cp operation at bacground, and i start use Gparted? And here was my mistake?

Last edited by deepforest (2024-08-23 11:51:18)


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#2 2024-08-22 16:11:28

delgado
Member
Registered: 2022-07-14
Posts: 208  

Re: GParted - unallocated space within the partition(HOW recover data?)

$# resize2fs /dev/sda1 

did the trick for me.

Offline

#3 2024-08-22 16:37:09

deepforest
Member
Registered: 2020-03-24
Posts: 354  

Re: GParted - unallocated space within the partition(HOW recover data?)

not help
i am loose sourse /dev/sdb1 partition (hdd)
before i try copy block device to block device THIS my error!
cp -a /dev/sdb1 /dev/sdc1
Tell me please how can i recover partition with ddresue now after formatting in Gparted?

home:[root]:/home/freeartist-artix# sudo fsck.ext4 -v /dev/sdb1
e2fsck 1.47.0 (5-Feb-2023)
/dev/sdb1: clean, 12/4612096 files, 434297/18432000 blocks
home:[root]:/home/freeartist-artix#

Last edited by deepforest (2024-08-22 16:38:19)


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#4 2024-08-22 17:24:56

deepforest
Member
Registered: 2020-03-24
Posts: 354  

Re: GParted - unallocated space within the partition(HOW recover data?)

can i use Testdisk for recover partition?


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#5 2024-08-22 17:51:55

delgado
Member
Registered: 2022-07-14
Posts: 208  

Re: GParted - unallocated space within the partition(HOW recover data?)

What???
You want
EITHER grow a file system to the full partition's size (see #2)
OR recover "something" from the drive.

cp simply over-writes. I would start looking for a back-up.
ddrescue is useful, when dd aborts with an error, e.g. when the drive is physically damaged.
testdisk (as far as I remember) is looking for known file headers (like png/jpg images, zip/gz archives, etc) on the raw disk and trys to recover them.

Even if you would provide all information to the accident in detail, I doubt someone could help. Sorry.

Offline

#6 2024-08-22 18:46:08

alexkemp
Member
Registered: 2018-05-14
Posts: 338  

Re: GParted - unallocated space within the partition(HOW recover data?)

Maybe one of Linux's star performers (though largely it keeps to the shadows) (I've used it: TUI, not GUI, very effective; you will need another disk to save your files/partition to, including deleted files):

$ apt info testdisk
Package: testdisk
Version: 7.1-5+nmu1
Priority: optional
Section: admin
Maintainer: Jean-Michel Kelbert <kelbert@debian.org>
Installed-Size: 1,447 kB
Depends: libc6 (>= 2.34), libext2fs2 (>= 1.41.0), libjpeg62-turbo (>= 1.3.1), libncursesw6 (>= 6), libntfs-3g89, libtinfo6 (>= 6), libuuid1 (>= 2.16), zlib1g (>= 1:1.1.4), ntfs-3g
Tag: admin::boot, admin::filesystem, admin::forensics, admin::recovery,
 interface::commandline, interface::text-mode, role::program,
 scope::utility, uitoolkit::ncurses, use::checking
Download-Size: 415 kB
APT-Manual-Installed: yes
APT-Sources: http://deb.devuan.org/merged daedalus/main amd64 Packages
Description: Partition scanner and disk recovery tool, and PhotoRec file recovery tool
 TestDisk checks the partition and boot sectors of your disks.
 It is very useful in forensics, recovering lost partitions.
 It works with :
  * DOS/Windows FAT12, FAT16 and FAT32
  * NTFS ( Windows NT/2K/XP )
  * Linux Ext2 and Ext3
  * BeFS ( BeOS )
  * BSD disklabel ( FreeBSD/OpenBSD/NetBSD )
  * CramFS (Compressed File System)
  * HFS and HFS+, Hierarchical File System
  * JFS, IBM's Journaled File System
  * Linux Raid
  * Linux Swap (versions 1 and 2)
  * LVM and LVM2, Linux Logical Volume Manager
  * Netware NSS
  * ReiserFS 3.5 and 3.6
  * Sun Solaris i386 disklabel
  * UFS and UFS2 (Sun/BSD/...)
  * XFS, SGI's Journaled File System
 .
 PhotoRec is file data recovery software designed to recover
 lost pictures from digital camera memory or even Hard Disks.
 It has been extended to search also for non audio/video headers.
 It searches for following files and is able to undelete them:
  * Sun/NeXT audio data (.au)
  * RIFF audio/video (.avi/.wav)
  * BMP bitmap (.bmp)
  * bzip2 compressed data (.bz2)
  * Source code written in C (.c)
  * Canon Raw picture (.crw)
  * Canon catalog (.ctg)
  * FAT subdirectory
  * Microsoft Office Document (.doc)
  * Nikon dsc (.dsc)
  * HTML page (.html)
  * JPEG picture (.jpg)
  * MOV video (.mov)
  * MP3 audio (MPEG ADTS, layer III, v1) (.mp3)
  * Moving Picture Experts Group video (.mpg)
  * Minolta Raw picture (.mrw)
  * Olympus Raw Format picture (.orf)
  * Portable Document Format (.pdf)
  * Perl script (.pl)
  * Portable Network Graphics (.png)
  * Raw Fujifilm picture (.raf)
  * Contax picture (.raw)
  * Rollei picture (.rdc)
  * Rich Text Format (.rtf)
  * Shell script (.sh)
  * Tar archive (.tar )
  * Tag Image File Format (.tiff)
  * Microsoft ASF (.wma)
  * Sigma/Foveon X3 raw picture (.x3f)
  * zip archive (.zip)

Offline

#7 2024-08-23 02:54:26

deepforest
Member
Registered: 2020-03-24
Posts: 354  

Re: GParted - unallocated space within the partition(HOW recover data?)

@ALL Thanks.
Is it possible fully recover OS partition after formatting/deleting in Gparted?
After formatting i am did not write any data to this partition.
Maybe just needed restore partition table and mbr? How do that?

ps also i did full img this partition to another drive using ddrescue.

Last edited by deepforest (2024-08-23 11:38:19)


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

Board footer