|
From: | Michael Flaster |
Subject: | Re: Unusual head_size in 1.6.23? |
Date: | Fri, 07 Oct 2005 23:32:55 -0400 |
User-agent: | Mozilla Thunderbird 1.0 (X11/20041206) |
address@hidden parted-1.6.23]# fdisk /dev/hda -l -u Disk /dev/hda: 46.1 GB, 46115758080 bytes 255 heads, 63 sectors/track, 5606 cylinders, total 90069840 sectors Units = sectors of 1 * 512 = 512 bytes Device Boot Start End Blocks Id System /dev/hda1 * 63 8193149 4096543+ b W95 FAT32 /dev/hda2 8193150 90060389 40933620 5 Extended /dev/hda5 8193213 15358139 3582463+ 83 Linux /dev/hda6 24981138 33961409 4490136 83 Linux /dev/hda7 40644513 45062324 2208906 b W95 FAT32 /dev/hda8 48934053 49110704 88326 83 Linux /dev/hda9 49126833 90060389 20466778+ 83 Linux /dev/hda10 45062388 45576404 257008+ 82 Linux swap / Solaris Partition table entries are not in disk order address@hidden parted-1.6.23]# fdisk /dev/hda The number of cylinders for this disk is set to 5606. 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: 46.1 GB, 46115758080 bytes 255 heads, 63 sectors/track, 5606 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 510 4096543+ b W95 FAT32 /dev/hda2 511 5606 40933620 5 Extended /dev/hda5 511 956 3582463+ 83 Linux /dev/hda6 1556 2114 4490136 83 Linux /dev/hda7 2531 2805 2208906 b W95 FAT32 /dev/hda8 3047 3057 88326 83 Linux /dev/hda9 3059 5606 20466778+ 83 Linux /dev/hda10 2806 2837 257008+ 82 Linux swap / Solaris Partition table entries are not in disk order Command (m for help): x Expert command (m for help): p Disk /dev/hda: 255 heads, 63 sectors, 5606 cylinders Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID 1 80 1 1 0 254 63 509 63 8193087 0b 2 00 0 1 510 254 63 1023 8193150 81867240 05 3 00 0 0 0 0 0 0 0 0 00 4 00 0 0 0 0 0 0 0 0 00 5 00 1 1 510 254 63 955 63 7164927 83 6 00 254 63 1023 254 63 1023 63 8980272 83 7 00 254 63 1023 254 63 1023 63 4417812 0b 8 00 254 63 1023 254 63 1023 63 176652 83 9 00 254 63 1023 254 63 1023 63 40933557 83 10 00 254 63 1023 254 63 1023 63 514017 82 Mike Michael Flaster wrote:
Assertion (head_size <= 63) at disk_dos.c:584 in function probe_partition_for_geom() failed. I added some print statements before the assertion failure:printf("head_size is %lld, from h %lld, H %lld, a_ %lld, c %lld, cyl_size %lld\n",head_size, h, H, a_, c, cyl_size); and it printed: head_size is 63, from h 1, H 254, a_ 63, c 0, cyl_size 16065 head_size is 573, from h 1, H 254, a_ 8193213, c 510, cyl_size 16064 (assertion failure)I checked the computer's math, 573 is the right number from those other values... :-)This is with parted GNU Parted 1.6.23.You probably want some other info about my disk, not exactly sure what to give you.I can tell you that parted 1.6.21 seemed to work: address@hidden parted-1.6.23]# /usr/sbin/parted.old GNU Parted 1.6.21 Copyright (C) 1998 - 2004 Free Software Foundation, Inc. This program is free software, covered by the GNU General Public License.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR APARTICULAR PURPOSE. See the GNU General Public License for more details. Using /dev/hda (parted) print Disk geometry for /dev/hda: 0.000-43979.414 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 4000.561 primary fat32 boot2 4000.562 43974.799 extended 5 4000.592 7499.091 logical ext2 6 12197.821 16582.719 logical ext3 7 19845.954 22003.088 logical fat32 10 22003.119 22254.104 logical linux-swap 8 23893.581 23987.680 logical ext2 9 23987.711 43974.799 logical ext3 (parted) quitaddress@hidden parted-1.6.23]# df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda5 3526172 2305476 1041576 69% / /dev/hda9 5763616 4323236 1147600 80% /backup /dev/hda6 4419512 853248 3566264 20% /home /dev/hda1 4088532 883588 3204944 22% /mnt/win_c /dev/hda7 2204572 13292 2191280 1% /mnt/win_d Mike
[Prev in Thread] | Current Thread | [Next in Thread] |