Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Mar 1999 10:15:28 -0600
From:      "Richard E. Hawkins Esq." <rhawkins@iastate.edu>
To:        Greg Lehey <grog@lemis.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Panic on mounting OS/2 partition (was: "WARNING: / was not properly dismounted" message at reboot time.) 
Message-ID:  <m10HVLs-000P4nC@eyry.econ.iastate.edu>
In-Reply-To: Your message of "Sun, 28 Feb 1999 10:27:49 %2B1030." <19990228102749.O7279@lemis.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
greg grumbled,

> On Saturday, 27 February 1999 at  9:44:54 -0600, Richard E. Hawkins Esq. wrote:
> > greg wrote,

> >> Indeed.  I'd be interested in finding out exactly what happened, but
> >> not at the expense of tearing your file systems apart.

> > this is also a semi-reproducible result of having an extended partition
> > following the freebsd partition--even without mounting the partition.
> > It will not hang *every* boot, but every several.  It will complain
> > every time, though.  Linux fdisk doesn't place logical partitions
> > exactly on cylinder bounds, even when given sizes in cylinders, which
> > results in what freebsd sees as a bad disklabel.

> I can't relate to that.  Could you explain the problem, please?


My disk is partitioned as
1: small ext2 for linux kernel & emergency boots
2: moderate dos partitions for if & when I get around to messing with 
   dosemu 
3: freebsd
4: extended partition with linux logical partitions

If 4: doesn't exist at all, freebsd is quite happy.  However, when I 
create it, and use the fdisk shipped by debian, and put logical 
partitions in it (typically ext2,swap,swap,ext2), the logical 
partitions do not exactly meet cylinder boundaries, even when specified 
by giving startign and ending cylinders.

When freebsd boots, it notices the fourth partition, and tries to read 
its label; something in the label makes it think that there is a 
disklabel, which it tries to read, and announces that the label is 
invalid. About 10-20% of the time, it follows this announcement with a 
panic.  If it helps, here's the partition map (from linux-side)

Disk /dev/hda: 16 heads, 63 sectors, 16278 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
/dev/hda1            1        1      128    64480+  83  Linux native
/dev/hda2          129      129      381   127512    6  DOS 16-bit >=32M
/dev/hda3          382      382     8703  4194288   a5  BSD/386
/dev/hda4   *     8192     8704    16278  3817800    5  Extended
/dev/hda5         8192     8704    11597  1458544+  83  Linux native
/dev/hda6        11264    11598    11857   131008+  82  Linux swap
/dev/hda7        11264    11858    12117   131008+  82  Linux swap
/dev/hda8        11264    12118    16278  2097112+  83  Linux native

The only solution I found was to not boot :)


-- 




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m10HVLs-000P4nC>