NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/38841: installer blow up FreeBSD's disklabel on other DOS partitions



The following reply was made to PR install/38841; it has been noted by GNATS.

From: matsunaw%ja2.so-net.ne.jp@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc: install-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
netbsd-bugs%netbsd.org@localhost
Subject: Re: install/38841: installer blow up FreeBSD's disklabel on other      
DOS partitions
Date: Thu, 12 Jun 2008 09:39:43 +0900

 >  On Tue, Jun 03, 2008 at 07:32:11PM +0900, 
 > matsunaw%ja2.so-net.ne.jp@localhost wrote:
 >   > And disklabels of freebsd on DOS partition #3 (it might be same as
                                                              ^NOT
 # sorry for type.
 
 >  The chief cause of problems like this is accidentally mistyping
 >  partition sizes or offsets. Then you get overlapping partitions and
 >  things get overwritten.
 >  
 >  Can you post the fdisk table and the other disklabels?
 
 fdisk-partition id I'm using is::
 ----
 a5  FreeBSD
 a6  OpenBSD
 a9  NetBSD
 ---
 
 BTW, as you know, freebsd has ``slice'' to represents DOS partitions,
 'd' BSD partitions has no special meaning like netbsd.
 ----
 % uname -srm
 FreeBSD 7.0-STABLE i386
 % fdisk-linux -l /dev/ad4
 
 Disk /dev/ad4: 250.0 GB, 250059350016 bytes
 255 heads, 63 sectors/track, 30401 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 
     Device Boot    Start       End    Blocks   Id  System
 /dev/ad4s1             1      6080  48837568+   5  Extended
 /dev/ad4s2          6081     12160  48837600   a6  OpenBSD
 /dev/ad4s3   *     12161     18240  48837600   a5  FreeBSD
 /dev/ad4s4         18241     30401  97683232+  a5  FreeBSD
 /dev/ad4s5             1        33    265009+  83  Linux
 /dev/ad4s6            34      3925  31262458+  83  Linux
 /dev/ad4s7          3926      6014  16779861   83  Linux
 /dev/ad4s8          6015      6080    530113+  82  Linux swap
 % disklabel -r /dev/ad4s4
 # /dev/ad4s4:
 8 partitions:
 #        size   offset    fstype   [fsize bsize bps/cpg]
   a: 16777216        0    4.2BSD        0     0     0 
   b:  2097152 16777216      swap                    
   c: 195366465        0    unused        0     0         # "raw" part, don't 
edit
   e: 41943040 18874368    4.2BSD        0     0     0 
   f: 134549057 60817408    4.2BSD        0     0     0 
 % disklabel -rA /dev/ad4s4
 # /dev/ad4s4:
 type: unknown
 disk: amnesiac
 label: 
 flags:
 bytes/sector: 512
 sectors/track: 63
 tracks/cylinder: 16
 sectors/cylinder: 1008
 cylinders: 193815
 sectors/unit: 195366465
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0           # milliseconds
 track-to-track seek: 0  # milliseconds
 drivedata: 0 
 
 8 partitions:
 #        size   offset    fstype   [fsize bsize bps/cpg]
   a: 16777216        0    4.2BSD        0     0     0 
   b:  2097152 16777216      swap                    
   c: 195366465        0    unused        0     0         # "raw" part, don't 
edit
   e: 41943040 18874368    4.2BSD        0     0     0 
   f: 134549057 60817408    4.2BSD        0     0     0 
 % disklabel -r /dev/ad4s2
 # /dev/ad4s2:
 8 partitions:
 #        size   offset    fstype   [fsize bsize bps/cpg]
   a: 16778160 97675200    4.2BSD        0     0     1 
   b:  2097270 114453360      swap                    
   c: 488397168        0    unused        0     0         # "raw" part, don't 
edit
   e: 16778160 116550630    4.2BSD        0     0     1 
 partition a: partition extends past end of unit
 partition b: offset past end of unit
 partition b: partition extends past end of unit
 partition c: partition extends past end of unit
 disklabel: partition c doesn't cover the whole unit!
 disklabel: An incorrect partition c may cause problems for standard system 
utilities
 partition e: offset past end of unit
 partition e: partition extends past end of unit
 % disklabel -rA /dev/ad4s2
 # /dev/ad4s2:
 type: DOC2K
 disk: amnesiac
 label: 
 flags:
 bytes/sector: 512
 sectors/track: 63
 tracks/cylinder: 16
 sectors/cylinder: 1008
 cylinders: 96900
 sectors/unit: 488397168
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0           # milliseconds
 track-to-track seek: 0  # milliseconds
 drivedata: 0 
 
 8 partitions:
 #        size   offset    fstype   [fsize bsize bps/cpg]
   a: 16778160 97675200    4.2BSD        0     0     1 
   b:  2097270 114453360      swap                    
   c: 488397168        0    unused        0     0         # "raw" part, don't 
edit
   e: 16778160 116550630    4.2BSD        0     0     1 
 ----
 
 regards,
 matsunaw
 


Home | Main Index | Thread Index | Old Index