1

Topic: Problem during installation and partition

good greeting
There are files that do not appear containing my photos and files Please see this thread to explain my problem
https://bodhilinux.boards.net/thread/89 … on-problem

2

Re: Problem during installation and partition

Please run the following commands at the Linux command prompt and report the output here.

LANG=C sudo fdisk -l
LANG=C sudo lsblk -o name,maj:min,rm,size,ro,type,fstype,label,mountpoint

Please explain the operations you requested GParted to perform.

I understand your first language is Arabic.  Consider using https://translate.google.com/ to translate your Arabic into English.

3

Re: Problem during installation and partition

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

bodhi@bodhi:~$ LANG=C sudo fdisk -l
Disk /dev/loop0: 715.10 MiB, 750759936 bytes, 1466328 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 698.65 GiB, 750156374016 bytes, 1465149168 sectors
Disk model: Hitachi HTS54757
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x529cb6b9

Device     Boot   Start        End    Sectors   Size Id Type
/dev/sda1          2048    1906687    1904640   930M 83 Linux
/dev/sda2       1908734 1465147391 1463238658 697.7G  5 Extended
/dev/sda5       3907584 1465147391 1461239808 696.8G 83 Linux
/dev/sda6       1908736    3907583    1998848   976M 82 Linux swap / Solaris

Partition 2 does not start on physical sector boundary.
Partition table entries are not in disk order.




Disk /dev/sdb: 961 MiB, 1007681536 bytes, 1968128 sectors
Disk model: USB Flash Disk
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: 0x01ad8c99

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1  *     2048 1968127 1966080  960M  c W95 FAT32 (LBA)

bodhi@bodhi:~$ LANG=C sudo lsblk -o name,maj:min,rm,size,ro,type,fstype,label,mountpoint
NAME   MAJ:MIN RM   SIZE RO TYPE FSTYPE   LABEL      MOUNTPOINT
loop0    7:0    0   716M  1 loop squashfs            /rofs
sda      8:0    0 698.7G  0 disk
|-sda1   8:1    0   930M  0 part ext4
|-sda2   8:2    0   512B  0 part
|-sda5   8:5    0 696.8G  0 part
`-sda6   8:6    0   976M  0 part swap                [SWAP]
sdb      8:16   1   961M  0 disk
`-sdb1   8:17   1   960M  0 part vfat     BODHI LIVE /cdrom
sr0     11:0    1  1024M  0 rom

4 (edited by tarqalqrnas 2022-03-16 08:55:16)

Re: Problem during installation and partition

mfleetwo wrote:

Please explain the operations you requested GParted to perform.

Event sequence
1 - Install bobby linux distribution after moving from linux mint distribution and split hardsk without mastery and according to YouTube guidelines
2 - there is a problem in the type of file format after installation
3 - turn on the distribution of Bodhi Linux from Flash without installing
a note that may be important: my important files are 99% sure that they are here tracking the size of the files

/dev/sda2       1908734 1465147391 1463238658 697.7G  5 Extended
/dev/sda5       3907584 1465147391 1461239808 696.8G 83 Linux
mfleetwo wrote:

I understand your first language is Arabic.  Consider using https://translate.google.com/ to translate your Arabic into English

Yes I understand you

5

Re: Problem during installation and partition

Please run this too:

LANG=C sudo blkid

From the details you have so far provided all I can assume is that when you installed Bobby Linux it overwrote everything on drive sda by re-partitioning it, creating new file systems and writing all the Bobby Linux installation files to it.  If so then your only hope of recovering even a single file would be to use photorec, (Photorec Step By Step).

If you can, provide more details about the disk re-partitioning you performed; how you instructed Bobby Linux to use your disk drive; the order of these steps and when your files disappeared.

6

Re: Problem during installation and partition

Please run this too:

LANG=C sudo blkid
bodhi@bodhi:~$ LANG=C sudo blkid
/dev/sda1: UUID="ca88c1d7-58fc-48c4-8499-8659dd13edde" TYPE="ext4" PARTUUID="529cb6b9-01"
/dev/sdb1: LABEL="BODHI LIVE" UUID="08B1-2D38" TYPE="vfat" PARTUUID="01ad8c99-01"
/dev/loop0: TYPE="squashfs"
/dev/sda6: UUID="3e40541f-c873-4a65-9f40-272a10b7e8cb" TYPE="swap" PARTUUID="529cb6b9-06"
/dev/sda5: PARTUUID="529cb6b9-05"

7

Re: Problem during installation and partition

Above you said your missing files were in 99% chance in /dev/sda5.  Blkid reports sda5 doesn't contain a file system.  As you haven't provided any more detail of what was done to overwrite your files the only option left is to use photorec to scan the drive looking for fragments of data it can assemble into files.

8 (edited by tarqalqrnas 2022-03-18 09:01:56)

Re: Problem during installation and partition

From the details you have so far provided all I can assume is that when you installed Bobby Linux it overwrote everything on drive sda by re-partitioning it, creating new file systems and writing all the Bobby Linux installation files to it.  If so then your only hope of recovering even a single file would be to use photorec, (Photorec Step By Step).

If you can, provide more details about the disk re-partitioning you performed; how you instructed Bobby Linux to use your disk drive; the order of these steps and when your files disappeared.

Above you said your missing files were in 99% chance in /dev/sda5.  Blkid reports sda5 doesn't contain a file system.  As you haven't provided any more detail of what was done to overwrite your files the only option left is to use photorec to scan the drive looking for fragments of data it can assemble into files.

By repartitioning the disk I created a partition and then put Bobby Linux on it and I never overwrite the said partitions containing my stuff I put the OS in one of these two I think my procedure is correct only my problem with choosing the file format type is empty
My files are not gone How do they disappear? Look at the partitions, their size in gigabytes. It contains my files, while the size of the Bobby Linux operating system is in megabytes, I remember that well

/dev/sda1          2048    1906687    1904640   930M 83 Linux
/dev/sda6       1908736    3907583    1998848   976M 82 Linux swap / Solaris

9

Re: Problem during installation and partition

What type file system was on sda5?
(I am expecting an answer such as: fat32, ntfs, ext4 or other file system name).

Please run this and report the output.
(It may complete immediately or take many, many hours depending on what it finds).

LANG=C sudo hexdump -C /dev/sda5 | head -20

10

Re: Problem during installation and partition

bodhi@bodhi:~$ LANG=C sudo hexdump -C /dev/sda5 | head -20
00000000  d6 29 12 a5 c4 63 27 3a  e1 1b 5d c1 2f 08 83 91  |.)...c':..]./...|
00000010  59 af 4c c4 14 ee 03 b5  5a 32 30 d2 2c fe f8 07  |Y.L.....Z20.,...|
00000020  14 d5 27 bf 16 1a 24 a6  ab 67 64 37 66 82 29 1e  |..'...$..gd7f.).|
00000030  4b 51 36 e1 c8 3a 95 fd  b7 23 4f 7d 31 9a c2 67  |KQ6..:...#O}1..g|
00000040  2b 36 7a 0b 33 11 76 6c  35 90 c6 6a 27 a1 12 e9  |+6z.3.vl5..j'...|
00000050  05 9d 0e 9c 27 4e f2 6d  97 fd 22 8a e1 56 78 ba  |....'N.m.."..Vx.|
00000060  04 9d 5a c1 50 d4 3d d3  0a 58 a6 e8 6c 7a 56 7f  |..Z.P.=..X..lzV.|
00000070  25 fc b7 c3 1f 60 ee f4  54 34 db 47 8d 14 22 1d  |%....`..T4.G..".|
00000080  9c 84 27 6f 47 ea 4d 7c  bc 42 47 a0 2b 78 ae 79  |..'oG.M|.BG.+x.y|
00000090  98 e9 03 bd a9 c8 32 63  02 ee 6b 0b cc fd 04 29  |......2c..k....)|
000000a0  5d a0 86 38 c4 c5 5f b3  81 3c 4f 45 bc 79 14 3b  |]..8.._..<OE.y.;|
000000b0  4d b3 bc e0 17 0a e3 0a  4c 64 ab d2 10 97 4f 41  |M.......Ld....OA|
000000c0  eb 5b 20 3f 99 d5 87 b7  ff 4d 3c e6 c9 88 a0 6f  |.[ ?.....M<....o|
000000d0  e6 a9 2b ac 14 34 e8 d1  f7 bd 8d f3 3c 88 70 c4  |..+..4......<.p.|
000000e0  cf 5d d1 0d 2d 7e 70 99  a8 40 57 f6 24 a9 3c 22  |.]..-~p..@W.$.<"|
000000f0  07 29 21 62 e5 bc f6 58  6d a0 d8 9d b9 f7 89 79  |.)!b...Xm......y|
00000100  3a df da a4 2c 56 56 60  a9 e5 1e 5a a6 3a ce 56  |:...,VV`...Z.:.V|
00000110  43 0f 72 f3 5e 48 53 4e  04 64 82 81 e3 c1 d5 c7  |C.r.^HSN.d......|
00000120  57 6f 88 a1 79 f4 c3 85  cf 30 c1 fe 69 93 e9 13  |Wo..y....0..i...|
00000130  b6 8d b4 f7 b1 2e 26 b5  be df f1 9a 25 7b 7a 8e  |......&.....%{z.|

11 (edited by tarqalqrnas 2022-03-18 15:15:24)

Re: Problem during installation and partition

mfleetwo wrote:

What type file system was on sda5?
(I am expecting an answer such as: fat32, ntfs, ext4 or other file system name).

Please run this and report the output.
(It may complete immediately or take many, many hours depending on what it finds).

LANG=C sudo hexdump -C /dev/sda5 | head -20

This is what I don't know, maybe one of the things you mentioned, I'm not sure due to my ignorance of special syntaxes in Linux
My private files are folders, PDF video formats, image formats, software, etc.

12

Re: Problem during installation and partition

The first 320 bytes at the start of partition sda5 just looks like random data.

What OS did you used to create the file system in sda5 in the first place?
What OS did you use to access, create and edit your files?
Did you use any disk encryption?

13

Re: Problem during installation and partition

mfleetwo wrote:

The first 320 bytes at the start of partition sda5 just looks like random data.

What OS did you used to create the file system in sda5 in the first place?
What OS did you use to access, create and edit your files?
Did you use any disk encryption?

When moving from Linux Mint to Bobby Linux
I don't know anything about encryption

14

Re: Problem during installation and partition

There is nothing further that I can do.

You have 3 choices:
1. Try using photorec, (Photorec Step By Step) to get your files back.
2. Pay a data recovery service to get you files back.
3. Don't get your files back.

15

Re: Problem during installation and partition

mfleetwo wrote:

There is nothing further that I can do.

You have 3 choices:
1. Try using photorec, (Photorec Step By Step) to get your files back.
2. Pay a data recovery service to get you files back.
3. Don't get your files back.

bodhi@bodhi:~$ sudo photorec / dev /sda5
PhotoRec 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

Unable to open file or device /: Inappropriate ioctl for device

16 (edited by tarqalqrnas 2022-03-20 09:22:45)

Re: Problem during installation and partition

tarqalqrnas wrote:
mfleetwo wrote:

There is nothing further that I can do.

You have 3 choices:
1. Try using photorec, (Photorec Step By Step) to get your files back.
2. Pay a data recovery service to get you files back.
3. Don't get your files back.

bodhi@bodhi:~$ sudo photorec / dev /sda5
PhotoRec 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

Unable to open file or device /: Inappropriate ioctl for device

a question
Does this program only recover images or various formats, for example, PDF files, programs, etc.

17

Re: Problem during installation and partition

tarqalqrnas wrote:
mfleetwo wrote:

There is nothing further that I can do.

You have 3 choices:
1. Try using photorec, (Photorec Step By Step) to get your files back.
2. Pay a data recovery service to get you files back.
3. Don't get your files back.

bodhi@bodhi:~$ sudo photorec / dev /sda5
PhotoRec 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

Unable to open file or device /: Inappropriate ioctl for device

The problem has been resolved
https://forum.cgsecurity.org/phpBB3/vie … hp?t=11939