This is certainly a really easy question for you all I am sure.
So I have Ubuntu (13.04) as the only OS mounted on my HDD. What I would like to do is re-partition my HDD so as to begin a LFS build.
Using sudo fdisk /dev/sda
, and p
for print partition table I get:
/dev/sda1 * ................................. 83 linux
/dev/sda2 ................................. 5 extended
/dev/sda5 ................................. 82 linux swap/solaris
I would like to use the swap space that is /dev/sda5
as the swap space for the build so as to not have superfluous swap space.
Also, I would like to build the system in an extended system so I can make logical partitions for /boot
, /
, /usr
, et al.
My question is, how do I figure out what is in the /dev/sda2
partition? Is it empty? Is it available for me to build my LFS base in? If it is empty, then I won't partition anything. If it is being used by Ubuntu for something then I will have to build another primary partition for the build.
Unfortunately I do not remember making the partition, if I did.
sda2
containssda5
. @alienfetuseater Thesda2
partition occupies 512 bytes on its own, plus the space used by the logical partitions that it contains. Sincesda2
andsda5
have the same size, there is no free space insda2
. – Gilles 'SO- stop being evil' Nov 08 '13 at 21:33