Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2006 15:10:35 GMT
From:      Helmut Schellong <var@schellong.biz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/97498: newfs has no option to clear the first 128 sectors
Message-ID:  <200605191510.k4JFAZrO005349@www.freebsd.org>
Resent-Message-ID: <200605191520.k4JFKG1t077741@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         97498
>Category:       bin
>Synopsis:       newfs has no option to clear the first 128 sectors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 19 15:20:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Helmut Schellong
>Release:        6.1
>Organization:
private
>Environment:
FreeBSD fbsd.lokal.biz 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 08:45:34 CEST 2006
root@fbsd.lokal.biz:/usr/src/sys/i386/compile/BSD61  i386

>Description:
CF-Card 8 GB:
-------------
sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT)
    start 63, size 3666915 (1790 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 228/ head 65/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 3667041, size 12574674 (6139 Meg), flag 0
        beg: cyl 228/ head 67/ sector 1;
        end: cyl 1010/ head 254/ sector 63

Partition 2 first was FAT32.
newfs touches not the first 128 sectors.
I'm missing an option to clear this area automatically.
(When there is no bsdlabel in 2nd sector)
Because other OSes misinterpret: p1=1.75GB,FAT32  p2=2.4GB,FAT32
Correct would be: p1=1.75GB,FAT32  p2=6.0GB,unknown
I had used dd to correct, but an option would be better.
>How-To-Repeat:
newfs ...
>Fix:
Add an option.
(A OS from SCO has such an option: 1st 64KB = Zero)
>Release-Note:
>Audit-Trail:
>Unformatted:



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