Who the fdisk?

  • user warning: Table 'cache' is marked as crashed and should be repaired query: SELECT data, created, headers, expire FROM cache WHERE cid = 'filter:3:09bd3c81a03c9399245e98b8b1c5fce6' in /home/dowdle/public_html/montanalinux/includes/database.mysql.inc on line 121.
  • user warning: Table 'cache' is marked as crashed and should be repaired query: UPDATE cache SET data = '<p>Found another cool time saver tip. For me I find myself looking for partition mount points. So I usually do:</p>\n<blockquote>\n<pre>fdisk /dev/hda\n\nThe number of cylinders for this disk is set to 4982.\nThere is nothing wrong with that, but this is larger than 1024,\nand could in certain setups cause problems with:\n1) software that runs at boot time (e.g., old versions of LILO)\n2) booting and partitioning software from other OSs\n (e.g., DOS FDISK, OS/2 FDISK)\n\nCommand (m for help): p\n\nDisk /dev/hda: 40.9 GB, 40982151168 bytes\n255 heads, 63 sectors/track, 4982 cylinders\nUnits = cylinders of 16065 * 512 = 8225280 bytes\n\n Device Boot Start End Blocks Id System\n/dev/hda1 * 1 13 104391 83 Linux\n/dev/hda2 14 523 4096575 83 Linux\n/dev/hda3 524 778 2048287+ 83 Linux\n/dev/hda4 779 4982 33768630 5 Extended\n/dev/hda5 779 909 1052226 82 Linux swap\n/dev/hda6 910 4982 32716341 8e Linux LVM</pre></p></blockquote>\n<p>I would do this for all drives, or if I didn\'t know what device, I could run through the alphabet. Most recently I was searching for a USB thumb drive I just plugged in. So here is my time saver tip just learned today:</p>\n<blockquote>\n<pre>fdisk -l\n\nDisk /dev/hda: 40.9 GB, 40982151168 bytes\n255 heads, 63 sectors/track, 4982 cylinders\nUnits = cylinders of 16065 * 512 = 8225280 bytes\n\n Device Boot Start End Blocks Id System\n/dev/hda1 * 1 13 104391 83 Linux\n/dev/hda2 14 523 4096575 83 Linux\n/dev/hda3 524 778 2048287+ 83 Linux\n/dev/hda4 779 4982 33768630 5 Extended\n/dev/hda5 779 909 1052226 82 Linux swap\n/dev/hda6 910 4982 32716341 8e Linux LVM\n\nDisk /dev/hdb: 30.0 GB, 30000000000 bytes\n255 heads, 63 sectors/track, 3647 cylinders\nUnits = cylinders of 16065 * 512 = 8225280 bytes\n\n Device Boot Start End Blocks Id System\n/dev/hdb1 * 1 3647 29294496 8e Linux LVM\n\nDisk /dev/hdc: 20.4 GB, 20409532416 bytes\n16 heads, 63 sectors/track, 39546 cylinders\nUnits = cylinders of 1008 * 512 = 516096 bytes\n\n Device Boot Start End Blocks Id System\n/dev/hdc1 1 39546 19931152+ 8e Linux LVM\n\nDisk /dev/hdd: 22.5 GB, 22527590400 bytes\n255 heads, 63 sectors/track, 2738 cylinders\nUnits = cylinders of 16065 * 512 = 8225280 bytes\n\n Device Boot Start End Blocks Id System\n/dev/hdd1 * 1 2738 21992953+ 8e Linux LVM</pre></p></blockquote>\n<p>Looky looky, all my drives that make up my boxtop backup server. Will have to post the pic of that here soon.</p>\n', created = 1411004374, expire = 1411090774, headers = '' WHERE cid = 'filter:3:09bd3c81a03c9399245e98b8b1c5fce6' in /home/dowdle/public_html/montanalinux/includes/database.mysql.inc on line 121.
  • user warning: Table 'cache' is marked as crashed and should be repaired query: SELECT data, created, headers, expire FROM cache WHERE cid = 'filter:1:e8fe73fbd50257844cfd6b8d22fbfb33' in /home/dowdle/public_html/montanalinux/includes/database.mysql.inc on line 121.
  • user warning: Table 'cache' is marked as crashed and should be repaired query: UPDATE cache SET data = '<blockquote><p> -l List the partition tables for the specified devices and then exit. If no devices are given, those mentioned in /proc/partitions (if that exists) are used.</p></blockquote>\n<br class=\"clear\" />', created = 1411004374, expire = 1411090774, headers = '' WHERE cid = 'filter:1:e8fe73fbd50257844cfd6b8d22fbfb33' in /home/dowdle/public_html/montanalinux/includes/database.mysql.inc on line 121.
|

Found another cool time saver tip. For me I find myself looking for partition mount points. So I usually do:

fdisk /dev/hda

The number of cylinders for this disk is set to 4982.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 40.9 GB, 40982151168 bytes
255 heads, 63 sectors/track, 4982 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14         523     4096575   83  Linux
/dev/hda3             524         778     2048287+  83  Linux
/dev/hda4             779        4982    33768630    5  Extended
/dev/hda5             779         909     1052226   82  Linux swap
/dev/hda6             910        4982    32716341   8e  Linux LVM

I would do this for all drives, or if I didn't know what device, I could run through the alphabet. Most recently I was searching for a USB thumb drive I just plugged in. So here is my time saver tip just learned today:

fdisk -l

Disk /dev/hda: 40.9 GB, 40982151168 bytes
255 heads, 63 sectors/track, 4982 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14         523     4096575   83  Linux
/dev/hda3             524         778     2048287+  83  Linux
/dev/hda4             779        4982    33768630    5  Extended
/dev/hda5             779         909     1052226   82  Linux swap
/dev/hda6             910        4982    32716341   8e  Linux LVM

Disk /dev/hdb: 30.0 GB, 30000000000 bytes
255 heads, 63 sectors/track, 3647 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        3647    29294496   8e  Linux LVM

Disk /dev/hdc: 20.4 GB, 20409532416 bytes
16 heads, 63 sectors/track, 39546 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1               1       39546    19931152+  8e  Linux LVM

Disk /dev/hdd: 22.5 GB, 22527590400 bytes
255 heads, 63 sectors/track, 2738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdd1   *           1        2738    21992953+  8e  Linux LVM

Looky looky, all my drives that make up my boxtop backup server. Will have to post the pic of that here soon.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Amazing what use 'man' is..

-l List the partition tables for the specified devices and then exit. If no devices are given, those mentioned in /proc/partitions (if that exists) are used.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.