fdisk command and fixing paritions
From this output, how to determine how much disk space is available for partitioning?
Code:
[root@localhost ~]# fdisk -l "parted" command tells me that in a nice manner: Code:
[root@localhost ~]# parted Code:
Device Boot Start End Blocks Id System |
@ Reply
Hi devUnix,
If you want to find out free space using fdisk then you have to do some calculation. The easiest way I can think of is to convert total space into MB (you can use GB when dealing with large partitions). Divide total space by number of cylinders. This will give you size / cylinder. fdisk show you total number of cylinder. Deduct used cylinder from total number of cylinder this will give you free cylinder. So free space = free cylinder * size per cylinder. For your next query: Code:
Device Boot Start End Blocks Id System See below: Code:
#fdisk /dev/sdc I would recommend that you use one tool only when you are creating partition on a disk. |
To fix the partition order (if you feel a need to do so), umount the drive, start fdisk on the drive, go to the "expert" menu, run the "fix" command, write out the fixed partition table, and remount the disk.
Note that the partition order is of no particular significance, as suggested by T3RM1NVT0R, above. |
Quote:
That is an informational message, not an error - it's not even a warning in the strictest sense. Use an older version of fdisk, and you won't even see it. Partition alignment was never an issue until (relatively) recently - probably still isn't an issue for most home users. As newer (4k sector) disks get more common, even cylinder alignment should be forgotten. |
You can check this quick link for tutorial on fdisk command.
http://www.expertslogin.com/linux-ad...stem-on-linux/ |
All times are GMT -5. The time now is 04:41 AM. |