Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The above command shows the size of the hda11 partiton. It is 68G. I have more partitions.
------------------------------------------------------------------------------------------------------------------------
[root@c83-250-99-43 Nissanka]# /sbin/fdisk -l
Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 4552 36563908+ 7 HPFS/NTFS
/dev/hda2 4553 24321 158794492+ f W95 Ext'd (LBA)
/dev/hda5 4553 4561 72261 82 Linux swap / Solaris
/dev/hda6 4562 14264 77939316 83 Linux
/dev/hda7 14265 14417 1228941 82 Linux swap / Solaris
/dev/hda8 14418 14418 8001 82 Linux swap / Solaris
/dev/hda9 14419 14419 8001 82 Linux swap / Solaris
/dev/hda10 14420 15183 6136798+ 83 Linux
/dev/hda11 15184 24321 73400953+ 83 Linux
[root@c83-250-99-43 Nissanka]#
How do I find the size of the hda5 and hda6 partitions? What is the command? Your help is greatly appreciated.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
acid_kewpie
hda5 has the following figures:
Start 4553
End 4561
Blocks 72261
Id 82
How did you calculate?
The figure 8225280 is not clear to me?
I want to know the size. As I wrote, hda11 is 68GB. I just want to know size in GB. I am interested in hda5 and hda6.
Glad you people don't calculate my tax .... - try your math on hda8.
As for swap, you'd better hope you are using hda7 - you can check by issuing "swapon -s" from a terminal/console.
No point in all those (small) swap partitions.
On my system, the blocks column in fdisk -l /dev/sda is the near/same as size listed in qparted. This is also what shows from the command: cat /proc/partitions. So, it would seem that no calcutating is needed as I can easily see that all of my ext3 partitions are about 20GB and the swap is about 600MB. Just the way I made them.
Code:
fdisk -l /dev/sda
Disk /dev/sda: 100.2 GB, 100256292864 bytes
255 heads, 63 sectors/track, 12188 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2433 19543041 83 Linux
/dev/sda2 2434 4866 19543072+ 83 Linux
/dev/sda3 4867 4940 594405 82 Linux swap / Solaris
/dev/sda4 4941 12188 58219560 5 Extended
/dev/sda5 4941 7373 19543041 83 Linux
/dev/sda6 7374 9806 19543041 83 Linux
Code:
cat /proc/partitions
major minor #blocks name
8 0 97906536 sda
8 1 19543041 sda1
8 2 19543072 sda2
8 3 594405 sda3
8 5 19543041 sda5
8 6 19543041 sda6
Edit: I forgot to mention that fdisk -s or sfdisk -s also report partition size to be same as block in other commands.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.