Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Apr 2001 11:07:40 -0700
From:      Crist Clark <cjclark@alum.mit.edu>
To:        Jon Molin <jon.molin@resfeber.se>
Cc:        Crist Clark <cjclark@alum.mit.edu>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Adding a new drive
Message-ID:  <3AC8BFEC.FE50DDA1@alum.mit.edu>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Jon Molin wrote:
> 
> Crist Clark wrote:
> >
> > Jon Molin wrote:
> > >
> > > >
> > > > Here is what you need to do:
> > > >
> > > >   1) Write a valid slice (PC partition) table. Make sure it is a valid
> > > >      table, i.e. you don't get that error above.
> > >
> > > I guess that writing a valid slice is my problem, have you got any tips on how
> > > to create a valid table?
> > > Here's what i've tried (all taken from
> > > http://www.freebsd.org/handbook/disks-adding.html):
> > >
> > > # dd if=/dev/zero of=/dev/ad3 bs=1k count=1
> > > 1+0 records in
> > > 1+0 records out
> > > 1024 bytes transferred in 0.001281 secs (799436 bytes/sec)
> > > jmo# fdisk -BI ad3
> > > ******* Working on device /dev/ad3 *******
> > > fdisk: invalid fdisk partition table found
> > > #
> >
> > That should do it. After you zeroed the label in the first step, fdisk(8)
> > generates that error as it tries to read the table before doing the
> > write. But it should be doing the write. After you do the 'fdisk -BI ad3',
> > what do you see if you do another 'fdisk ad3'? You should be able to
> 
> The output from fdisk ad3 (i've switched it to ad2 testing to have it as a
> sec.master)
> ******* 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
> 
> this is after the reboot, it was the same before.

And it is still not right. Could you do,

  # script fdisk.log
  # dmesg | grep ^ad
  # fdisk ad2
  # fdisk -IB ad2
  # fdisk ad2
  # exit

And mail the results if you still get a, 'fdisk: invalid fdisk 
partition table found,' message in that last fdisk. Don't bother
with trying to disklabel(8) anything if you are still getting
that message.
-- 
Crist J. Clark                                Network Security Engineer
crist.clark@globalstar.com                    Globalstar, L.P.
(408) 933-4387                                FAX: (408) 933-4926

The information contained in this e-mail message is confidential,
intended only for the use of the individual or entity named above.  If
the reader of this e-mail is not the intended recipient, or the employee
or agent responsible to deliver it to the intended recipient, you are
hereby notified that any review, dissemination, distribution or copying
of this communication is strictly prohibited.  If you have received this
e-mail in error, please contact postmaster@globalstar.com

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?3AC8BFEC.FE50DDA1>