Subject: Re: fdisk from scripts
To: Wolfgang Rupprecht <wolfgang@wsrcc.com>
From: None <rmcm@compsoft.com.au>
List: current-users
Date: 06/18/2001 10:52:23
forgot to mention I was using 1.5
Wolfgang Rupprecht writes:
>
> > eval `fdisk -S $disk`
> > echo "Writing the sector-0 partition table"
> > fdisk -f -i -b ${DLCYL}/${DLHEAD}/${DLSEC} ${disk}
> > echo "Configuring partition-4 of sector-0 partition table"
> > fdisk -3 -afu -s ${partition_id}/0/${DLSIZE} ${disk}
>
> Thanks.
>
> I'm beginning to suspect that there is a bug in -current. Here is
> what I get:
>
> $ ./fdisk-rmcm
> + dd if=/dev/zero of=/dev/rwd0d bs=64k count=10
> 10+0 records in
> 10+0 records out
> 655360 bytes transferred in 0.070 secs (9362285 bytes/sec)
> + fdisk -f -i wd0
> fdisk: invalid fdisk partition table found
> + fdisk -S wd0
> + eval DLCYL=13424 DLHEAD=15 DLSEC=63 DLSIZE=12685680 BCYL=527 BHEAD=255 BSEC=63 PART0SIZE=0 PART1SIZE=0 PART2SIZE=0 PART3SIZE=0
> + DLCYL=13424 DLHEAD=15 DLSEC=63 DLSIZE=12685680 BCYL=527 BHEAD=255 BSEC=63 PART0SIZE=0 PART1SIZE=0 PART2SIZE=0 PART3SIZE=0
> + echo Writing the sector-0 partition table
> Writing the sector-0 partition table
> + fdisk -f -i -b 13424/15/63 wd0
> + echo Configuring partition-4 of sector-0 partition table
> Configuring partition-4 of sector-0 partition table
> + fdisk -3 -afu -s 169/0/12685680 wd0
> Making partition 3 active.
> + fdisk wd0
> NetBSD disklabel disk geometry:
> cylinders: 13424 heads: 15 sectors/track: 63 (945 sectors/cylinder)
>
> BIOS disk geometry:
> cylinders: 527 heads: 255 sectors/track: 63 (16065 sectors/cylinder)
>
> Partition table:
> 0: <UNUSED>
> 1: <UNUSED>
> 2: <UNUSED>
> 3: sysid 169 (NetBSD)
> start 0, size 12685680 (6194 MB), flag 0x80
> beg: cylinder 0, head 0, sector 1
> end: cylinder 526, head 254, sector 63
>
> The netbsd partition looks ok, but the bios/mbr geometry is unchanged
> from the default.
>
> -wolfgang
--
Rex McMaster