There is /dev/sda1 and /dev/sda5; What is sda 2,3,4?

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
User avatar
morbid_bean
Level 1
Level 1
Posts: 7
Joined: Sun Jun 03, 2012 9:30 pm

There is /dev/sda1 and /dev/sda5; What is sda 2,3,4?

Post by morbid_bean »

During installation of a fresh Mint I set up my partitions manually.

I use one partition for OS and create a 4 gig swap

They are listed as this by default.

/dev/sda1 (OS)
/dev/sda5 (swap)

What/Where is
/dev/sda2
/dev/sda3
/dev/sda4
?
Redondo
Level 1
Level 1
Posts: 41
Joined: Tue Dec 15, 2009 12:19 pm

Re: There is /dev/sda1 and /dev/sda5; What is sda 2,3,4?

Post by Redondo »

Post the output of this command so we can be of more help:

Code: Select all

sudo fdisk -l
User avatar
morbid_bean
Level 1
Level 1
Posts: 7
Joined: Sun Jun 03, 2012 9:30 pm

Re: There is /dev/sda1 and /dev/sda5; What is sda 2,3,4?

Post by morbid_bean »

Yep Here you go :D

Code: Select all

~ $ sudo fdisk -l
[sudo] password for jimbo: 

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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 identifier: 0x000d1d6f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   480575487   240286720   83  Linux
/dev/sda2       480577534   488396799     3909633    5  Extended
/dev/sda5       480577536   488396799     3909632   82  Linux swap / Solaris
AlbertP
Level 16
Level 16
Posts: 6714
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: There is /dev/sda1 and /dev/sda5; What is sda 2,3,4?

Post by AlbertP »

Logical partitions, i.e. partitions that are inside an extended partition, always get numbered 5 or higher. The numbers 1 to 4 are reserved for the four primary partitions a disk can have.

This limit to the number of partitions is also the reason why extended and logical partitions were invented. An extended partition can contain as much partitions as you want, to be able to have more than 4 partitions. sda2 is your extended partition and it contains only one partition for the moment, sda5, which could just as well have been a primary partition since you do not have more than 4 partitions.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
stanley82
Level 2
Level 2
Posts: 94
Joined: Sat Jan 28, 2012 11:01 pm

Re: There is /dev/sda1 and /dev/sda5; What is sda 2,3,4?

Post by stanley82 »

You can also try
sudo sfdick -l
sudo fdisk -l
for additional info. There is also gparted but that's a dangerous one so take lots and lots of care and preferably skip it.
AlbertP
Level 16
Level 16
Posts: 6714
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: There is /dev/sda1 and /dev/sda5; What is sda 2,3,4?

Post by AlbertP »

There is nothing wrong with your disk, so you can keep it this way.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
Post Reply

Return to “Installation & Boot”