Date: Fri, 12 Jan 2001 11:01:13 +1030 From: Greg Lehey <grog@lemis.com> To: Cary <scattered@babel.acu.edu> Cc: freebsd-questions@freebsd.org Subject: Re: disklabel/newfs Message-ID: <20010112110113.C21945@wantadilla.lemis.com> In-Reply-To: <Pine.LNX.4.10.10101111731380.25162-100000@babel.acu.edu>; from scattered@babel.acu.edu on Thu, Jan 11, 2001 at 05:48:48PM -0600 References: <Pine.LNX.4.10.10101111731380.25162-100000@babel.acu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 11 January 2001 at 17:48:48 -0600, Cary wrote: > I've read both man pages but they don't explain what to do when you > get an error message. Hopefully one of you "old-hands" will be kind > enough to explain what I'm doing wrong. > > The drive is a SCSI magneto-optical drive at /dev/da0, the MO disks > are 128MB a piece, formerly with ext2 formats. I can read the disk > label with: > > # disklabel -r /dev/da0 > > under disktab, I have created my own entry called ro3012e, with the drive > parameters. so when I say: > # disklabel -w da0 ro3012e > disklabel: No space left on device > # disklabel -w /dev/da0 ro3012e > disklabel: Operation not supported by device > > After trying several variations of the above, I then try: > > [moved below] > > What do these errors mean, especially the last one? What am I > missing? Thank you in advance for any help offered! > # newfs da0 > newfs: da0: `0' partition is unavailable > # newfs /dev/da0 > newfs: /dev/da0: `0' partition is unavailable > # newfs -T ro3012e /dev/da0 > newfs: /dev/da0: `0' partition is unavailable These are parse errors, caused by an incorrect assumption that the name you supplied was a partition name. > # newfs -T ro3012e /dev/da0a > newfs: /dev/da0a: Invalid argument This means (probably) that partition a is not a ufs partition. > # newfs -T ro3012e /dev/da0c > write error: 247807 > newfs: wtfs: Invalid argument > # This suggests that your c partition is too big for the disk. So what does the partition table info at the end of the drive look like? What does dmesg say? I'm looking for information like this: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 35551782 0 unused 0 0 # (Cyl. 0 - 2212*) h: 35551782 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 2212*) da0 at ahc0 bus 0 target 8 lun 0 da0: <QUANTUM QM318000TD-SW N491> Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit) da0: 17366MB (35566500 512 byte sectors: 255H 63S/T 2213C) Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers 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?20010112110113.C21945>