Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Apr 2001 08:47:19 +0200
From:      Jon Molin <jon.molin@resfeber.se>
To:        Crist Clark <cjclark@alum.mit.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Adding a new drive
Message-ID:  <3ACAC377.A5D5D55@resfeber.se>
References:  <200103290938.f2T9c1l00499@bluebox.naken.cc> <3AC347D6.1ED5F0A2@resfeber.se> <20010329165129.A60101@pcwin002.win.tue.nl> <3AC34FC7.F53209CC@resfeber.se> <3AC386CA.157C141B@alum.mit.edu> <3AC4301F.3AD7B9D0@resfeber.se> <3AC4F61D.AA89E26F@alum.mit.edu> <3AC81F4F.7D9F5E08@resfeber.se> <3AC8BFEC.FE50DDA1@alum.mit.edu> <3AC9825A.85062A7D@resfeber.se> <3ACA0500.A2E74DDD@alum.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Crist Clark wrote:
> 
> Jon Molin wrote:
> 
> [snip]
> 
> > jmo# fdisk -IB ad2
> >
> > ******* Working on device /dev/ad2 *******
> > fdisk: invalid fdisk partition table found
> 
> That's what I would expect. There is no error generated when writing.
> If the write failed, I would expect to see,
> 
>  "fdisk: can't write fdisk partition table"
> 
> One other thing that I noticed while reviewing the code, the '-B'
> option does nothing when the '-I' option is specified. But that does
> not explain why,

I just copied it from the 'adding a new drive' section from the frrbsd
handbook without really checking the flags, but yes -B seems redundant.

> 
> > jmo# fdisk ad2
> >
> > ******* Working on device /dev/ad2 *******
> > parameters extracted from in-core disklabel are:
> > cylinders=13410 heads=15 sectors/track=63 (945 blks/cyl)
> >
> > Figures below won't work with BIOS for partitions not in cyl 1
> > parameters to be used for BIOS calculations are:
> > cylinders=13410 heads=15 sectors/track=63 (945 blks/cyl)
> >
> > fdisk: invalid fdisk partition table found
> > Media sector size is 512
> > Warning: BIOS sector numbering starts with sector 1
> > Information from DOS bootblock is:
> > The data for partition 1 is:
> > <UNUSED>
> > The data for partition 2 is:
> > <UNUSED>
> > The data for partition 3 is:
> > <UNUSED>
> > The data for partition 4 is:
> > sysid 165,(FreeBSD/NetBSD/386BSD)
> >     start 63, size 12672387 (6187 Meg), flag 80 (active)
> >         beg: cyl 0/ sector 1/ head 1;
> >         end: cyl 97/ sector 63/ head 14
> 
> Your disk is not getting the slice table written. You still get an
> error that the table is invalid and the slice table is not correct.
> What happens if you try to enter it interactively with the '-i'
> option? We are either overlooking something obvious or something
> very odd is going on.

I've tried the fdisk -i earlier but did it again now and nothing happends. It
seems like everything works really fine but when i check the result afterwards
nothing has changed (i've included a file again since it's such a long
output). I''m really clueless here, especially since i know the disk isn't
broken.






> --
> Crist J. Clark                                cjclark@alum.mit.edu

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?3ACAC377.A5D5D55>