Partition check at boot time & fdisk partition table don't agree

Partition check at boot time & fdisk partition table don't agree

Post by Joseph Zieniewic » Fri, 26 Jun 1998 04:00:00



At boot time:

Partition check:
 hda: hda1
 hdb: hdb1  hdb2 < hdb5 hdb6 hdb7 >

Using fdisk, partation table:

   Device  boot  Begin    Start    End    Blocks   Id   System
/dev/hdb1             1          1     254    512032     6   DOS 16-bit

Quote:>=32M

/dev/hdb2          255      255   1022   1548288    5   Extended
/dev/hdb6          255      255     508    512032   83   Linux native
/dev/hdb7          509      509     762    512032   83   Linux native
/dev/hdb8          762      762     779     34240    82   Linux swap

hdb6 = caldera linux
hdb7 = redhat linux
hdb8 = Linux swap

Why don't they agree and is there a way to change the partition
table?


 
 
 

Partition check at boot time & fdisk partition table don't agree

Post by Alexander Kozi » Fri, 26 Jun 1998 04:00:00



> At boot time:

> Partition check:
>  hda: hda1
>  hdb: hdb1  hdb2 < hdb5 hdb6 hdb7 >

> Using fdisk, partation table:

>    Device  boot  Begin    Start    End    Blocks   Id   System
> /dev/hdb1             1          1     254    512032     6   DOS 16-bit
> >=32M
> /dev/hdb2          255      255   1022   1548288    5   Extended
> /dev/hdb6          255      255     508    512032   83   Linux native
> /dev/hdb7          509      509     762    512032   83   Linux native
> /dev/hdb8          762      762     779     34240    82   Linux swap

                      ^
                      |_ misprint or really 762? Should be 763

> hdb6 = caldera linux
> hdb7 = redhat linux
> hdb8 = Linux swap

> Why don't they agree and is there a way to change the partition
> table?



-------------------------------------------------
Alexander Kozik, Medical School, Bio-Chem Dpt,
               University of California at Davis.
                      Davis, 95616 CA.

                    tel: (530)-752 3314
-------------------------------------------------

 
 
 

Partition check at boot time & fdisk partition table don't agree

Post by Clifford Ki » Fri, 26 Jun 1998 04:00:00


I believe designating swap as a partition is a convenience and it is
not a real partition - i.e., no table.  Anyone else care to confirm/deny?

===


>At boot time:
>Partition check:
> hda: hda1
> hdb: hdb1  hdb2 < hdb5 hdb6 hdb7 >
>Using fdisk, partation table:
>   Device  boot  Begin    Start    End    Blocks   Id   System
>/dev/hdb1             1          1     254    512032     6   DOS 16-bit
>>=32M
>/dev/hdb2          255      255   1022   1548288    5   Extended
>/dev/hdb6          255      255     508    512032   83   Linux native
>/dev/hdb7          509      509     762    512032   83   Linux native
>/dev/hdb8          762      762     779     34240    82   Linux swap

--
Clifford Kite                                              Not a guru. (tm)

 
 
 

Partition check at boot time & fdisk partition table don't agree

Post by Neil Ricke » Fri, 26 Jun 1998 04:00:00



>Partition check:
> hda: hda1
> hdb: hdb1  hdb2 < hdb5 hdb6 hdb7 >
>Using fdisk, partation table:
>   Device  boot  Begin    Start    End    Blocks   Id   System
>/dev/hdb1             1          1     254    512032     6   DOS 16-bit
>>=32M
>/dev/hdb2          255      255   1022   1548288    5   Extended
>/dev/hdb6          255      255     508    512032   83   Linux native
>/dev/hdb7          509      509     762    512032   83   Linux native
>/dev/hdb8          762      762     779     34240    82   Linux swap
>hdb6 = caldera linux
>hdb7 = redhat linux
>hdb8 = Linux swap

Interesting.

Evidently, something is messed up in the extended partition.  Thus
partition 5 is missing, and the logical partitions are numbered
6,7,8.  The partition numbering by 'fdisk' is inconsistent with that
by the kernel.

Quote:>Why don't they agree and is there a way to change the partition
>table?

No guarantees, but here is what I would try.

I would boot linux from floppy, so that no partition is mounted.  Use
a rescue image, or a slackware boot/root floppy for this.

Then, I would run 'fdisk'.  I would use 'u' to change the units to
sector (because this is more precise).  I would very carefully write
down the start and end of every partition.  Then I would delete
partitions hdb6, hdb7, hdb8.  Next I would delete hdb2.  Then I would
recreate hdb2 as extended.  Then I would recreate hdb5, hdb6 and
hdb7, giving them the start/end locations that had been shown for
hdb6, hdb7, hdb8 respectively.  Then I would do a 'p' to confirm that
things look right.  Perhaps another 'u', and print them in CHS format
instead of sector format.  Then a 'v' to verify that all is kosher.
Then a 'w' to save the changes.

There is a slight risk this will destroy data.  Personally I would
take the risk, for the sake of consistency.  If something goes wrong,
you would have to reinstall linux.  It is unlikely you would*up
the DOS partition doing as above, although it does not hurt to take a
backup, just in case.

 
 
 

Partition check at boot time & fdisk partition table don't agree

Post by Frank Mil » Sat, 27 Jun 1998 04:00:00




>>Partition check:
>> hda: hda1
>> hdb: hdb1  hdb2 < hdb5 hdb6 hdb7 >

>>Using fdisk, partation table:
>>   Device  boot  Begin    Start    End    Blocks   Id   System
>>/dev/hdb1             1          1     254    512032     6   DOS 16-bit
>>>=32M
>>/dev/hdb2          255      255   1022   1548288    5   Extended
>>/dev/hdb6          255      255     508    512032   83   Linux native
>>/dev/hdb7          509      509     762    512032   83   Linux native
>>/dev/hdb8          762      762     779     34240    82   Linux swap

>>hdb6 = caldera linux
>>hdb7 = redhat linux
>>hdb8 = Linux swap
>...
>Evidently, something is messed up in the extended partition.  Thus
>partition 5 is missing, and the logical partitions are numbered
>6,7,8.  The partition numbering by 'fdisk' is inconsistent with that
>by the kernel.

I've seen "holes" induced in fdisk's partition table, caused by deleting
partitions.  The bizarre thing is that adding new partitions with
fdisk adds partitions with the next higher number (for the above case,
it would be /dev/hdb9).  I haven't looked at the fdisk source, but it
would appear that it uses a simple highest#+1 rather than looking for
holes first.

Quote:>>Why don't they agree and is there a way to change the partition
>>table?

This is jumping into the middle of the thread (without having seen/read
it all), but what does /etc/fstab look like?  What partitions is it
calling for?

Quote:>...

        -frank
 
 
 

1. Trying to partition 13GB; fdisk & mke2fs don't agree

FYI: I just took my 13GB Maxtor back, couldn't even get it to work with
windoz (exchanged it for a WDC 13GB, works fine).  Lost all my windoz data,
now I'm stuck with Outlook Express :-( . Luckly enough, my linux partitions
were on another drive and they are safe, all I need to do is download
loadlin. As far as I'm concerned the 13GB Maxtor S U C K S! If you can get
it and don't mind spending $$$ try partition magic.

Clyde



Albert  Einstein

2. Is it possible to use ADSL modem in SUSE PPC?

3. Partition table by fdisk can't be recognized by Partition Magic

4. Need HELP!

5. new filesystem problems: "fdisk: can't write fdisk partition table: Invalid argument"

6. mgetty doesnt exit on hang up !

7. FDISK murdered my partition table while removing Linux partitions

8. 2 machines: can't ping one another

9. bad partition table error during Partition Check

10. Process START times (ps aux) don't agree with 'date'

11. fdisk and disklabel don't quite agree..

12. NOVELL's fdisk alters partition-table!