Yeah, you will have to specify WHICH device you wanted to work with. Also you need to be superuser (ROOT) for that as well.
On my Debian System, I have sudo enabled so;
will return only the master drive; as
Code:
cfdisk 2.12r
Disk Drive: /dev/hda
Size: 3400040448 bytes, 3400 MB
Heads: 128 Sectors per Track: 63 Cylinders: 823
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
hda1 Boot Primary Linux ext2 1201.48
hda2 Primary Linux ext2 503.71
hda3 Primary Linux swap / Solaris 511.97
hda4 Primary Linux ext2 1180.83
[Bootable] [ Delete ] [ Help ] [Maximize] [ Print ]
[ Quit ] [ Type ] [ Units ] [ Write ]
Toggle bootable flag of the current partition
If I specify my master drive on secondary IDE channel
Code:
sudo cfdisk /dev/hdc
Then, it will return as
Code:
cfdisk 2.12r
Disk Drive: /dev/hdc
Size: 8455200768 bytes, 8455 MB
Heads: 255 Sectors per Track: 63 Cylinders: 1027
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
hdc1 Boot Primary Linux ext2 8447.37
If you want to see which drive is being mounted with what file system and space usage/percentage, then you can do
Code:
compunuts@tecra:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 1.2G 891M 180M 84% /
tmpfs 126M 4.0K 126M 1% /dev/shm
/dev/hda2 466M 384M 58M 87% /home
/dev/hda4 1.1G 263M 790M 25% /var
/dev/hdc1 7.8G 3.0G 4.5G 40% /data
compunuts@tecra:~$
And I'm sure you already know that
1. The master drive on primary IDE channel is /dev/hda
2. The Slave drive on primary IDE channel is /dev/hdb
3. The master drive on secondary IDE channel is /dev/hdc
4. The Slave drive on secondary IDE channel is /dev/hdb
and SATA drives are address as /dev/sdx where x is the drive number such as a,b or c depending on the postion of SCSI ID.
HTH ...
P.S --> Yeah, I know my partition system sucks but it's Debian Stable (now you know how old that one is) and the last time I installed the system was when ext3 was in development stage.
Bookmarks