Date: Fri, 12 Jan 2001 10:30:56 -0600 (CST) From: Cary <scattered@babel.acu.edu> To: Greg Lehey <grog@lemis.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: disklabel/newfs Message-ID: <Pine.LNX.4.10.10101121003030.32745-100000@babel.acu.edu> In-Reply-To: <20010112170605.K21945@wantadilla.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> >> > >> 1. If practical, reboot with a medium in the drive. That will give > >> us the information about what the system thinks the size is. > >> > >> 2. Otherwise (or just for the fun of it, anyway) try using dd to copy > >> data from the medium: > >> > >> dd if=/dev/da0c of=/dev/null > >> > >> This will take forever, but at the end it will tell you how many > >> sectors it read. Here is the results of dd. I didn't test it out last night because I needed to get to bed and your warning that it would take a while didn't inspire me to try it. However, it now appears my fears were unfounded: # dd if=/dev/da0c of=/dev/null 0+0 records in 0+0 records out 0 bytes transferred in 0.000165 secs (0 bytes/sec) # And for good measure I reversed the input and output: # dd if=/dev/null of=/dev/da0c 0+0 records in 0+0 records out 0 bytes transferred in 0.000076 secs (0 bytes/sec) # Since newfs is looking for a BDS partition, should I edit the /etc/disktab file to reflect that on the c partition? Even though a is labeled as one already? #disklabel -r /dev/da0 3 partitions: # size offset fstype [fsize bsize bps/cpg] a: 247808 0 4.2BSD 0 0 0 # (Cyl. 0 - 120) c: 247808 0 unused 0 0 # (Cyl. 0 - 120) # > > > > OK, dmesg after reboot with MO media IN the drive! :) > > > > #dmesg > > [snip] > > da0 at ahc0 bus 0 target 0 lun 0 > > da0: <RICOH RO-3012E 8.00> Removable Optical SCSI-2 device > > da0: 5.000MB/s transfers (5.000MHz, offset 15) > > da0: 121MB (248826 512 byte sectors: 64H 32S/T 121C) > > You don't say what dd did. ~See above~ > > > With this information, will I be able to format the disk with ufs, > > or is there further digging I need to do? > > Hmm. Based on that, all looks well. You could try adding another > partition with only 120 cylinders (245760 sectors): > > h: 245760 0 4.2BSD 0 0 0 # (Cyl. 0 - 120) Like this?: #disklabel -e -r /dev/da0 [snip] 3 partitions: # size offset fstype [fsize bsize bps/cpg] a: 247808 0 4.2BSD 0 0 0 # (Cyl. 0 - 120) c: 247808 0 unused 0 0 # (Cyl. 0 - 120) h: 245760 0 4.2BSD 0 0 0 # (Cyl. 0 - 120) /tmp/EdDk.QrPTOYT502: 24 lines, 609 characters. line 24: bad partition name re-edit the label? [y]: OR, like this?: #disklabel /dev/da0 [snip] 3 partitions: # size offset fstype [fsize bsize bps/cpg] a: 247808 0 4.2BSD 0 0 0 # (Cyl. 0 - 120) b: 245760 0 4.2BSD 0 0 0 # (Cyl. 0 - 119) c: 247808 0 unused 0 0 # (Cyl. 0 - 120) :q disklabel: ioctl DIOCWLABEL: Operation not supported by device # (Originally I did type in "Cyl. 0 - 120" but disklabel adjusted it for me.) > > # newfs /dev/da0a > > newfs: /dev/da0a: Invalid argument > > Hmm. So it wasn't the lack of medium. > > > # newfs /dev/da0c > > newfs: ioctl (GDINFO): Invalid argument > > newfs: /dev/da0c: can't read disk label; disk type must be specified > > It needs to be a 4.2BSD partition. > > Greg > -- As always, Greg, a big THANK YOU! Cary 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.LNX.4.10.10101121003030.32745-100000>