How many disks exist in our Pwnbox? (Format: 0)

This is a question from Linux Fundaments on HTB academy - File System Management.

Here is the question.
“How many disks exist in our Pwnbox? (Format: 0)”

I thought the the command “sudo fdisk -l” would provide the information required to answer this question, with each disk identified by a line:
Disk ____: ___ GiB, _____ bytes, _____ sectors

The number returned did not match the required answer.

Hmmm did you try lsblk ?
i remember that i tried it 3 times .

Hello, I’m currently working on the File System Management section and for some reason the question changed for me and I got stuck on something. I will tell you what I did an if someone can help, I would really appreciate it. Thank you for your time :slightly_smiling_face:

These are the problems I encounter and what I did:

gpt pmbr size mismatch (104857599 != 335544319) will be corrected by write. the backup GPT table is not on the end of the device.
sudo parted -l
Warning: Not all of the space available to dev/vda appears to be used, you can fix the GPT to use all of the space (an extra 230686720 blocks) or continue with the current setting?
Fix/Ignore? Fix

Partition table entries are not in disk order.
sudo fdisk /dev/vda
m (help menu)
x (Expert command)
f (fix order)
r (return to main menu)
w (write table to disk and exit)

  1. :thinking:This is the one I’m stuck on :face_with_diagonal_mouth:

sudo parted -l
Error: /dev/vdb: unrecognised disk label :point_left:
Model: Virtio Block Device (virtblk)
Disk /dev/vdb: 483kB
Sector size (logical/physical): 512B/512B
Partition Table: unknown :point_left:
Disk Flags:

I’m going to watch some information on it to make sure I understand it, but if someone gets any progress, It would be great to know.

hey i am a beginner and I’m stuck at this i tried “sudo fdisk -l” and i got output

GPT PMBR size mismatch (104857599 != 335544319) will be corrected by write.
The backup GPT table is not on the end of the device.
Disk /dev/vda: 160 GiB, 171798691840 bytes, 335544320 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
Disklabel type: gpt
Disk identifier: 72FE8E7C-20D9-2A4A-8AFF-75948771F0DA

Device Start End Sectors Size Type
/dev/vda1 262144 96731135 96468992 46G Linux filesystem
/dev/vda2 96731136 104857566 8126431 3.9G Linux swap
/dev/vda14 2048 8191 6144 3M BIOS boot
/dev/vda15 8192 262143 253952 124M EFI System

Partition table entries are not in disk order.

Disk /dev/vdb: 472 KiB, 483328 bytes, 944 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

but when try 4 it’s incorrect… i tried 3 and apparently that’s the answer however i don’t know the reason behind it . A little help would be really helpful