LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SDA Partition (https://www.linuxquestions.org/questions/linux-newbie-8/sda-partition-910418/)

JJJCR 10-27-2011 02:53 AM

SDA Partition
 
hi, i had this info on my centos box:

Quote:

[dsk@mycomp ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 144115220 8903832 133723612 7% /
/dev/sda1 194442 16884 167519 10% /boot
tmpfs 1556852 0 1556852 0% /dev/shm
Quote:

[dsk@mycomp ~]$ cat /proc/partitions
major minor #blocks name

8 0 243163136 sda
8 1 200781 sda1
8 2 6289447 sda2
8 3 148777965 sda3
as you can see from the df output only /dev/sda3 and /dev/sda1 is listed.

Where is sda2? why it's not displayed on df output.

thanks for any explanation

fukawi1 10-27-2011 03:09 AM

sda2 will be an extended partition..

http://en.wikipedia.org/wiki/Disk_pa...artition_types

Also, please use code tags.
It REALLY does make a post 10x easier to read.

rng 10-27-2011 12:13 PM

Best may be to run gparted application where you can exactly see the name, size, position and type of all partitions.

michaelk 10-27-2011 12:54 PM

It is not an necessarily an extended partition. I would say it is swap which is not mounted like a regular partition and therefore not displayed via df.

As suggested you can use gparted or any of the other disk utilities like fdisk, sfdisk.

JJJCR 10-27-2011 09:19 PM

Quote:

Originally Posted by michaelk (Post 4509989)
It is not an necessarily an extended partition. I would say it is swap which is not mounted like a regular partition and therefore not displayed via df.

As suggested you can use gparted or any of the other disk utilities like fdisk, sfdisk.

hi michaelk, yes you're right it's a swap partition. i tried to use fdisk -l then it shows as a swap.

thanks.

fukawi1 10-27-2011 09:52 PM

Quote:

Originally Posted by michaelk (Post 4509989)
It is not an necessarily an extended partition. I would say it is swap which is not mounted like a regular partition and therefore not displayed via df.

As suggested you can use gparted or any of the other disk utilities like fdisk, sfdisk.

Good point, completely missed that one.


All times are GMT -5. The time now is 07:41 PM.