On Sat, Nov 17, 2018 at 07:55:33PM -0500, R. Clayton wrote:

> I'm on this
> 
>   # uname -a
>   OpenBSD AngkorWat.rclayton.net 6.4 GENERIC.MP#364 amd64
> 
>   # 
> 
> and I'm trying to write some file systems on this
> 
>   # disklabel -p g sd1
>   # /dev/rsd1c:
>   type: SCSI
>   disk: SCSI disk
>   label: Rugged FW USB3  
>   duid: 7e82b7f3472419e3
>   flags:
>   bytes/sector: 512
>   sectors/track: 63
>   tracks/cylinder: 255
>   sectors/cylinder: 16065
>   cylinders: 243201
>   total sectors: 3907029168 # total bytes: 1863.0G
>   boundstart: 0
                ^
You didn't run fdisk -i on the disk, right?

        -Otto


>   boundend: 3907029168
>   drivedata: 0 
>   16 partitions:
>   #                size           offset  fstype [fsize bsize   cpg]
>     c:          1863.0G                0  unused
>     i:           600.0G              128  4.2BSD   8192 65536     1
>     j:           600.0G       1258291328  4.2BSD   8192 65536     1
>     k:           663.0G       2516582528  4.2BSD   8192 65536     1
> 
>   # 
> 
> so I do this
> 
>   # newfs sd1i                                                                
>              
>   /dev/rsd1i: 614399.9MB in 1258291072 sectors of 512 bytes                   
>               
>   189 cylinder groups of 3264.88MB, 52238 blocks, 104960 inodes each          
>               
>   super-block backups (for fsck -b #) at:                                     
>               
>    128, 6686592, 13373056, 20059520, 26745984, 33432448, 40118912, 46805376, 
> 53491840,      
>    60178304, 66864768, 73551232, 80237696, 86924160, 93610624, 100297088, 
> 106983552,        
>    113670016, 120356480, 127042944, 133729408, 140415872, 147102336, 
> 153788800, 160475264,  
>    167161728, 173848192, 180534656, 187221120, 193907584, 200594048, 
> 207280512, 213966976,  
>    220653440, 227339904, 234026368, 240712832, 247399296, 254085760, 
> 260772224, 267458688,  
>    274145152, 280831616, 287518080, 294204544, 300891008, 307577472, 
> 314263936, 320950400,  
>    327636864, 334323328, 341009792, 347696256, 354382720, 361069184, 
> 367755648, 374442112,  
>    381128576, 387815040, 394501504, 401187968, 407874432, 414560896, 
> 421247360, 427933824,  
>    434620288, 441306752, 447993216, 454679680, 461366144, 468052608, 
> 474739072, 481425536,  
>    488112000, 494798464, 501484928, 508171392, 514857856, 521544320, 
> 528230784, 534917248,
>    541603712, 548290176, 554976640, 561663104, 568349568, 575036032, 
> 581722496, 588408960,
>    595095424, 601781888, 608468352, 615154816, 621841280, 628527744, 
> 635214208, 641900672,
>    648587136, 655273600, 661960064, 668646528, 675332992, 682019456, 
> 688705920, 695392384,
>    702078848, 708765312, 715451776, 722138240, 728824704, 735511168, 
> 742197632, 748884096,
>    755570560, 762257024, 768943488, 775629952, 782316416, 789002880, 
> 795689344, 802375808,
>    809062272, 815748736, 822435200, 829121664, 835808128, 842494592, 
> 849181056, 855867520,
>    862553984, 869240448, 875926912, 882613376, 889299840, 895986304, 
> 902672768, 909359232,
>    916045696, 922732160, 929418624, 936105088, 942791552, 949478016, 
> 956164480, 962850944,
>    969537408, 976223872, 982910336, 989596800, 996283264, 1002969728, 
> 1009656192,
>    1016342656, 1023029120, 1029715584, 1036402048, 1043088512, 1049774976, 
> 1056461440,
>    1063147904, 1069834368, 1076520832, 1083207296, 1089893760, 1096580224, 
> 1103266688,
>    1109953152, 1116639616, 1123326080, 1130012544, 1136699008, 1143385472, 
> 1150071936,
>    1156758400, 1163444864, 1170131328, 1176817792, 1183504256, 1190190720, 
> 1196877184,
>    1203563648, 1210250112, 1216936576, 1223623040, 1230309504, 1236995968, 
> 1243682432,
>    1250368896, 1257055360,
>   newfs: ioctl (WDINFO): Input/output error
>   newfs: /dev/rsd1i: can't rewrite disk label
> 
>   #
> 
> and that doesn't look too cool, so I try this
> 
>   # fsck /dev/sd1i
>   ** /dev/rsd1i
>   ** File system is clean; not checking
> 
>   #
> 
> Huh.  But newfs is cheap, so I try it again
> 
>   # newfs sd1i
>   /dev/rsd1i: 614399.9MB in 1258291072 sectors of 512 bytes
>   189 cylinder groups of 3264.88MB, 52238 blocks, 104960 inodes each
>   super-block backups (for fsck -b #) at:
>    128, 6686592, 13373056, 20059520, 26745984, 33432448, 40118912, 46805376, 
> 53491840,
>    60178304, 66864768, 73551232, 80237696, 86924160, 93610624, 100297088, 
> 106983552,
>    113670016, 120356480, 127042944, 133729408, 140415872, 147102336, 
> 153788800, 160475264,
>    167161728, 173848192, 180534656, 187221120, 193907584, 200594048, 
> 207280512, 213966976,
>    220653440, 227339904, 234026368, 240712832, 247399296, 254085760, 
> 260772224, 267458688,
>    274145152, 280831616, 287518080, 294204544, 300891008, 307577472, 
> 314263936, 320950400,
>    327636864, 334323328, 341009792, 347696256, 354382720, 361069184, 
> 367755648, 374442112,
>    381128576, 387815040, 394501504, 401187968, 407874432, 414560896, 
> 421247360, 427933824,
>    434620288, 441306752, 447993216, 454679680, 461366144, 468052608, 
> 474739072, 481425536,
>    488112000, 494798464, 501484928, 508171392, 514857856, 521544320, 
> 528230784, 534917248,
>    541603712, 548290176, 554976640, 561663104, 568349568, 575036032, 
> 581722496, 588408960,
>    595095424, 601781888, 608468352, 615154816, 621841280, 628527744, 
> 635214208, 641900672,
>    648587136, 655273600, 661960064, 668646528, 675332992, 682019456, 
> 688705920, 695392384,
>    702078848, 708765312, 715451776, 722138240, 728824704, 735511168, 
> 742197632, 748884096,
>    755570560, 762257024, 768943488, 775629952, 782316416, 789002880, 
> 795689344, 802375808,
>    809062272, 815748736, 822435200, 829121664, 835808128, 842494592, 
> 849181056, 855867520,
>    862553984, 869240448, 875926912, 882613376, 889299840, 895986304, 
> 902672768, 909359232,
>    916045696, 922732160, 929418624, 936105088, 942791552, 949478016, 
> 956164480, 962850944,
>    969537408, 976223872, 982910336, 989596800, 996283264, 1002969728, 
> 1009656192,
>    1016342656, 1023029120, 1029715584, 1036402048, 1043088512, 1049774976, 
> 1056461440,
>    1063147904, 1069834368, 1076520832, 1083207296, 1089893760, 1096580224, 
> 1103266688,
>    1109953152, 1116639616, 1123326080, 1130012544, 1136699008, 1143385472, 
> 1150071936,
>    1156758400, 1163444864, 1170131328, 1176817792, 1183504256, 1190190720, 
> 1196877184,
>    1203563648, 1210250112, 1216936576, 1223623040, 1230309504, 1236995968, 
> 1243682432,
>    1250368896, 1257055360,
> 
>   # fsck /dev/sd1i
>   ** /dev/rsd1i
>   ** File system is clean; not checking
> 
>   # 
> 
> Well.  Except the same thing happens when I put a file system on sd1j and 
> sd1k:
> the first newfs complains about WDINFO, but fsck is fine and the second newfs
> doesn't complain.  Just to be sure, I did
> 
>   # fsck /dev/sd1k
>   ** /dev/rsd1k
>   BAD SUPER BLOCK: MAGIC NUMBER WRONG
> 
>   LOOK FOR ALTERNATE SUPERBLOCKS? [Fyn?] n
> 
> 
>   # 
> 
> before running newfs on sd1k.  Any ideas or explanations?
> 

Reply via email to