Identify the Partition in Linux, find the position where it is located in your hard drive. How much is free and available size.
watchout for these strings in your commands you will observe now onwards
There is a special nomenclature that linux uses to refer to hard drive partitions that must be understood.
/dev/hda /dev/hdb and /dev/sda /dev/sdb and etc.,
Use the following command
`
ls -l
` while in the /dev dirtectory:: brw-rw---- 1 root disk 3, 0 May 5 1998 hdaA device file is a file with type c or b
brw-rw---- 1 root disk 8, 0 May 5 1998 sda
crw------- 1 root tty 4, 64 May 5 1998 ttyS0
"character" devices, devices that do not use the buffer cache
"block" devices, which go through the buffer cache
In the listing above, this is indicated by the first character of each line.
In Linux, all disks are represented as block devices only.
By convention, IDE drives will be given device names
from /dev/hda
to /dev/hdd
.Hard Drive A(
/dev/hda
) is the first drive& Hard Drive C
(/dev/hdc
) is the third and followes. drive name | drive controller | drive number |
---|---|---|
/dev/hda | 1 | 1 |
/dev/hdb | 1 | 2 |
/dev/hdc | 2 | 1 |
/dev/hdd | 2 | 2 |
A typical PC has two IDE controllers, each of which can have two drives connected to it. For example,
/dev/hda
is the first drive (master) on the first IDE controller and /dev/hdd
is the second (slave) drive on the second controller (the fourth IDE drive in the computer).SCSI Drives or Pen Drives check out when you are not having scsi controller in your Laptop or System.
drive name | drive controller | drive number | partition type | partition number |
---|---|---|---|---|
/dev/sda1 | 1 | 6 | primary | 1 |
/dev/sda2 | 1 | 6 | primary | 2 |
/dev/sda3 | 1 | 6 | primary | 3 |
Logical Partitions these are the drives same as Windows D drive, E drive and etc.,
i.e Primary Master connected Hard Disk with
drive name | drive controller | drive number | partition type | partition number |
---|---|---|---|---|
/dev/hdb1 | 1 | 2 | primary | 1 |
/dev/hdb2 | 1 | 2 | extended | NA |
/dev/hdb5 | 1 | 2 | logical | 2 |
/dev/hdb6 | 1 | 2 | logical | 3 |
No comments:
Post a Comment