accessing hidden pa...
 
Notifications
Clear all

accessing hidden partitions

6 Posts
5 Users
0 Reactions
1,774 Views
(@mikebentzen)
New Member
Joined: 13 years ago
Posts: 2
Topic starter   [#10487]

Hi, I've posted a question on stack exchange, but was hoping to get some more discussion around this issue. I still can't work out what is happening.

Question on stack exchange

http//security.stackexchange.com/questions/33757/accessing-hidden-partitons

Problem

I have two disks. They're both bootable and run Linux. When I physically mount the disks, I can see scsi devices get added. /dev/sdb and /dev/sdc. However the partitions are not detected. I can't see for example /dev/sdb1. It seems like someone has gone into a lot of effort to hide the partitons but I don't know how.

I've tried using testdisk and it detects 2 partitons on each disk, but I know there are more than that. The partitions found are quite useless and I know there must be a boot partition. I've tried changing the disk geometry but this hasn't helped.

How can I work out how they've been hidden and any suggestions on how to unhide them so that we can mount those other partitons?

EDIT This is what is displayed during boot

Mar 27 124411 (none) user.notice kernel sd 0000 [sda] 8388608 512-byte hardware sectors (4295 MB)
Mar 27 124411 (none) user.notice kernel sd 0000 [sda] Write Protect is off
Mar 27 124411 (none) user.debug kernel sd 0000 [sda] Mode Sense 61 00 00 00
Mar 27 124411 (none) user.notice kernel sd 0000 [sda] Cache data unavailable
Mar 27 124411 (none) user.err kernel sd 0000 [sda] Assuming drive cache write through
Mar 27 124411 (none) user.info kernel sda
Mar 27 124411 (none) user.warn kernel custom_partition sda partition 4 exceeds device capacity using largest possible size reduced from 5120000 to 4259840
Mar 27 124411 (none) user.notice kernel sd 0010 [sdb] 167772160 512-byte hardware sectors (85899 MB)
Mar 27 124411 (none) user.notice kernel sd 0010 [sdb] Write Protect is off
Mar 27 124411 (none) user.debug kernel sd 0010 [sdb] Mode Sense 61 00 00 00
Mar 27 124411 (none) user.notice kernel sd 0010 [sdb] Cache data unavailable
Mar 27 124411 (none) user.err kernel sd 0010 [sdb] Assuming drive cache write through
Mar 27 124411 (none) user.info kernel sdb unknown partition table
Mar 27 124411 (none) user.info kernel kjournald starting. Commit interval 5 seconds
Mar 27 124411 (none) user.info kernel EXT3-fs mounted filesystem with ordered data mode.
Mar 27 124411 (none) user.info kernel kjournald starting. Commit interval 5 seconds
Mar 27 124411 (none) user.info kernel EXT3 FS on loop1, internal journal
Mar 27 124411 (none) user.info kernel EXT3-fs mounted filesystem with ordered data mode.
Mar 27 124411 (none) user.warn kernel Clocksource tsc unstable (delta = 607842230 ns)
Mar 27 124411 (none) user.info kernel kjournald starting. Commit interval 5 seconds
Mar 27 124411 (none) user.info kernel EXT3 FS on sda4, internal journal
Mar 27 124411 (none) user.info kernel EXT3-fs mounted filesystem with ordered data mode.
Mar 27 124411 (none) user.info kernel Adding 1048568k swap on /dev/swap. Priority-1 extents1 across1048568k
Mar 27 124411 (none) user.info kernel kjournald starting. Commit interval 5 seconds
Mar 27 124411 (none) user.info kernel EXT3 FS on sdb2, internal journal
Mar 27 124411 (none) user.info kernel EXT3-fs mounted filesystem with ordered data mode.
Mar 27 124411 (none) user.info kernel EXT3 FS on dm-0, internal journal

I have a feeling that it's not encrypted, but it's like the partition is mapped without the partition table.

Any thoughts or ideas?



   
Quote
jaclaz
(@jaclaz)
Illustrious Member
Joined: 19 years ago
Posts: 5133
 

I've tried using testdisk and it detects 2 partitons on each disk, but I know there are more than that. The partitions found are quite useless and I know there must be a boot partition. I've tried changing the disk geometry but this hasn't helped.

No.

Meaning that there is NO real need on a Linux system to have a "boot partition" (in the sense of a primary partition set "active" in the MBR partition table), of course it depends on the bootloader/bootmanager used, but most Linux system use GRUB or GRUB2 that need this not.

How EXACTLY do you know there "are more" partitions?

Can you provide some more background?

Instead of what you posted, post the TESTDISK log.

jaclaz



   
ReplyQuote
(@Anonymous 6593)
Joined: 18 years ago
Posts: 1158
 

I have two disks. They're both bootable and run Linux. When I physically mount the disks, I can see scsi devices get added. /dev/sdb and /dev/sdc. However the partitions are not detected. I can't see for example /dev/sdb1. It seems like someone has gone into a lot of effort to hide the partitons but I don't know how.

Not sure if I miss something here, but you either do the mounting yourself (in which case you are responsible for identifying the partitions), or you leave it to an automounter.

If you mounted the disks yourself, how did you do that? Where did you get the info from? Are you sure you did it the right way?

I've tried using testdisk and it detects 2 partitons on each disk, but I know there are more than that.

Why did you go for testdisk?

If the disks are bootable … why not use the ordinary partitioning tool? Or is there something wrong so that you have to go for data recovery tools? Is *that* the reason why you're having problem – if it is, don't expect partitions to be easy to identify.

How can I work out how they've been hidden and any suggestions on how to unhide them so that we can mount those other partitons?

What have you tried? 'fdisk -l /dev/sda' ? DIsktype? Or gparted or something like that?

Mar 27 124411 (none) user.warn kernel custom_partition sda partition 4 exceeds device capacity using largest possible size reduced from 5120000 to 4259840

Looks like there's something seriously wrong there – how did that happen? You can't expect that volume to mount cleanly. That's not a healthy disk.

Mar 27 124411 (none) user.info kernel sdb unknown partition table

And looks like there's something seriously wrong there as well.

Didn't those errors mean anything to you? Or perhaps I misinterpret – I thought you were a forensic analyst with a couple of puzzling disks. But I'm wrong, amn't I?

I have a feeling that it's not encrypted, but it's like the partition is mapped without the partition table.

Then there must be a volume on the disk that can be 'mapped' – find that, and you're set. If you can't find one, it either isn't there, or it's encrypted.



   
ReplyQuote
(@mikebentzen)
New Member
Joined: 13 years ago
Posts: 2
Topic starter  

Okay, so I didn't properly explain the problem.

I don't have access to the disks after they've booted. There is no shell access. I can't run fdisk or any other partitioning tool once the disks have booted.

Therefore, I am trying to run some tools on the disks by mounting them on a different machine.

I'll post the output of testdisk shortly



   
ReplyQuote
Adam10541
(@adam10541)
Honorable Member
Joined: 14 years ago
Posts: 550
 

What tools do you have access to?



   
ReplyQuote
jhup
 jhup
(@jhup)
Noble Member
Joined: 17 years ago
Posts: 1442
 

I presume you have imaged these drives.

I can think of about a half dozen variety of partitioning schemes that are not be available in most tools. What if it is an AIX, Sun or Amiga partitioning? Would your tool recognize it?

I usually work backwards, using the "Spock" method, when confronted with something incomprehensible (to me). Eliminate everything that you know, what remains contains your answer.



   
ReplyQuote
Share: