Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Aug 1998 18:05:47 -0400 (EDT)
From:      Chuck Robey <chuckr@glue.umd.edu>
To:        Doug White <dwhite@resnet.uoregon.edu>
Cc:        FreeBSD-Questions@FreeBSD.ORG
Subject:   Re: starting up the 3rd SCSI disk
Message-ID:  <Pine.BSF.4.00.9808141801430.363-100000@picnic.mat.net>
In-Reply-To: <Pine.BSF.4.00.9808141538380.13156-100000@resnet.uoregon.edu>

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

On Fri, 14 Aug 1998, Doug White wrote:

> 
> On Fri, 14 Aug 1998, Chuck Robey wrote:
> 
> > I reformatted the 4.3G SCSI disk, and then used the FreeBSD fdisk
> > program to stick a partition table in it.  I took the defaults for all,
> > which set partition 4 as the whole disk, and set it to use FreeBSD.  OK.
> > 
> > When I did that, it refused to disklabel, telling me there was no space.
> > If I don't do that, it does the disklabel, but always complains that the
> > partition table is bad (NO MAGIC).  Given a choice, I'd have no
> > partition table, but I can't see what I'm doing wrong.  I'd thought that
> > the correct procedure was:
> > 
> > 1) scsiformat the disk
> > 2) disklabel the disk, using the auto setup.
> > 3) go back, disklabel using -e -r, so I could manually edit in the b
> >    (swap) and e partitions.
> > 4) newfs the e partition
> > 5) stick both partitions in /etc/fstab
> > 6) begin file operations.
> > 
> > What did I miss, or what did I mess up, any guesses?
> 
> I think that's it, unless you flubbed the disklabel operation.  Try using
> sysinstall and see http://www.freebsd.org/tutorials/diskformat/.

OK, I didn't do the dd step before, that's made a change.  I got it
disklabeled (dang. ded. mode), and did the newfs, but at the end I got:

newfs: ioctl (WDINFO): Invalid argument
newfs: /dev/rsd2e: can't rewrite disk label

Well, I've saved the output of the newfs and disklabel here so you can
chop them off in the reply:

ROOT:/usr2/chuckr:102 >disklabel sd2
# /dev/rsd2c:
type: SCSI
disk: amnesiac
label: fictitious
flags:
bytes/sector: 512
sectors/track: 171
tracks/cylinder: 6
sectors/cylinder: 1026
cylinders: 8252
sectors/unit: 8467200
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]
  b:   196608        0      swap                        # (Cyl.    0 - 191*)
  c:  8467200        0    unused        0     0         # (Cyl.    0 - 8252*)
  e:  8270592   196608    4.2BSD        0     0     0   # (Cyl.  191*- 8252*)

ROOT:/usr2/chuckr:106 >newfs sd2e
Warning: 3328 sector(s) in last cylinder unallocated
/dev/rsd2e:     8270592 sectors in 2020 cylinders of 1 tracks, 4096
sectors
        4038.4MB in 127 cyl groups (16 c/g, 32.00MB/g, 7936 i/g)
super-block backups (for fsck -b #) at:
 32, 65568, 131104, 196640, 262176, 327712, 393248, 458784, 524320,
589856,
 655392, 720928, 786464, 852000, 917536, 983072, 1048608, 1114144,
1179680,
 1245216, 1310752, 1376288, 1441824, 1507360, 1572896, 1638432, 1703968,
 1769504, 1835040, 1900576, 1966112, 2031648, 2097184, 2162720, 2228256,
 2293792, 2359328, 2424864, 2490400, 2555936, 2621472, 2687008, 2752544,
 2818080, 2883616, 2949152, 3014688, 3080224, 3145760, 3211296, 3276832,
 3342368, 3407904, 3473440, 3538976, 3604512, 3670048, 3735584, 3801120,
 3866656, 3932192, 3997728, 4063264, 4128800, 4194336, 4259872, 4325408,
 4390944, 4456480, 4522016, 4587552, 4653088, 4718624, 4784160, 4849696,
 4915232, 4980768, 5046304, 5111840, 5177376, 5242912, 5308448, 5373984,
 5439520, 5505056, 5570592, 5636128, 5701664, 5767200, 5832736, 5898272,
 5963808, 6029344, 6094880, 6160416, 6225952, 6291488, 6357024, 6422560,
 6488096, 6553632, 6619168, 6684704, 6750240, 6815776, 6881312, 6946848,
 7012384, 7077920, 7143456, 7208992, 7274528, 7340064, 7405600, 7471136,
 7536672, 7602208, 7667744, 7733280, 7798816, 7864352, 7929888, 7995424,
 8060960, 8126496, 8192032, 8257568,
newfs: ioctl (WDINFO): Invalid argument
newfs: /dev/rsd2e: can't rewrite disk label


----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@glue.umd.edu         | communications topic, C programming, and Unix.
213 Lakeside Drive Apt T-1  |
Greenbelt, MD 20770         | I run Journey2 and picnic (FreeBSD-current)
(301) 220-2114              | and jaunt (NetBSD).
----------------------------+-----------------------------------------------





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?Pine.BSF.4.00.9808141801430.363-100000>