»
Member icons
HP moderator
Expert in this area
Member status
ITRC Pro
250 points
ITRC Graduate
500 points
ITRC Wizard
1000 points
ITRC Royalty
2500 points
ITRC Pharaoh
7500 points
Olympian
20000 points
1-Star Olympian
40000 points
2-Star Olympian
80000 points
»
How to earn points
»
Support forums FAQs
Question status
Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites
Delete from my favorites
Thread closed
Scot Needy
Hi,
It's been a long time for me. I have 6 new drives that I need to format, all 18Gb.
SEAGATE ST318404L
FUJITSU MAG3182L
Do I need to add an entry in /etc/disktab or is there an easier solution. If not does anyone have a sample disktab?
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click
here
Sort Answers By:
Date or Points
Rob Leadbeater
Nov 4, 2009 15:18:42 GMT
Unassigned
Hi, On 4.0F, you should just be able to write a standard label with "disklabel -wr rzN" and then edit it as required... Cheers, Rob
Scot Needy
Nov 4, 2009 16:56:17 GMT
N/A: Question Author
Right but the disklabel uses /etc/disktab for the drive geometry. I know for instance a 9gb disk is rz29b. But what can I use for the type hear? disklabel -wr /dev/rrz9a RZ29B put the wrong geometry on the drive. Thanks
Rob Leadbeater
Nov 4, 2009 17:29:57 GMT
Unassigned
Hi, If a disk type isn't in /etc/disktab, it appears to just use a default geometry. Just tried this on a 36GB disk and it works fine - see attached. On 4.0F you don't need to use the drive type. You only mentioned 4.0 though... what specific version are you running (sizer -v) Cheers, Rob P.S. A 9GB drive is an RZ40, not RZ29.
Scot Needy
Nov 4, 2009 18:06:05 GMT
N/A: Question Author
4.0 D I can use disklabel -p /dev/rrz9a which prints. # /dev/rrz9a: type: SCSI disk: ST318404 label: flags: dynamic_geometry bytes/sector: 512 sectors/track: 248 tracks/cylinder: 19 sectors/cylinder: 4712 cylinders: 7508 sectors/unit: 35378533 rpm: 7200 interleave: 1 trackskew: 45 cylinderskew: 39 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize cpg] a: 131072 0 unused 0 0 # (Cyl. 0 - 27*) b: 262144 131072 unused 0 0 # (Cyl. 27*- 83*) c: 35378533 0 unused 0 0 # (Cyl. 0 - 7508*) d: 0 0 unused 0 0 # (Cyl. 0 - -1) e: 0 0 unused 0 0 # (Cyl. 0 - -1) f: 0 0 unused 0 0 # (Cyl. 0 - -1) g: 17492658 393216 unused 0 0 # (Cyl. 83*- 3795*) h: 17492659 17885874 unused 0 0 # (Cyl. 3795*- 7508*) but cannot read (-r) or edit (-e). Nor can I newfs the partition.
Steven Schweda
Nov 4, 2009 19:17:39 GMT
Unassigned
> [...] but cannot read (-r) or edit (-e). "I cannot" is not a useful problem description. Actual command(s)? Actual output? > Nor can I newfs the partition. Which partition is "the partition"? As usual, showing actual commands with their actual output can be more helpful than vague descriptions and interpretations.
Rob Leadbeater
Nov 4, 2009 19:36:11 GMT
Unassigned
OK, on 4.0D you do need to specify a type, however that doesn't have to be in /etc/disktab. From the manpage for disklabel: "If your disk type is not specified in the /etc/disktab file, disklabel uses the default partition information in the driver." Therefore something like this: # disklabel -wr rz9 wibble should work fine. As Steven says, seeing exactly what you're doing would be useful... Cheers, Rob
Scot Needy
Nov 4, 2009 21:33:21 GMT
N/A: Question Author
Ok, I think I have it now. I got rz9 working. I was thinking I needed to use a valid entry from /etc/disktab. These were the same errors I got with rz9. # disklabel -r rz11 Disk is unlabeled or, /dev/rrz11a does not start at block 0 of the disk # disklabel -p rz11 # /dev/rrz11a: type: SCSI disk: MAG3182L label: flags: dynamic_geometry bytes/sector: 512 sectors/track: 248 tracks/cylinder: 19 sectors/cylinder: 4712 cylinders: 7508 sectors/unit: 35378533 rpm: 10025 interleave: 1 trackskew: 71 cylinderskew: 101 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize cpg] a: 131072 0 unused 0 0 # (Cyl. 0 - 27*) b: 262144 131072 unused 0 0 # (Cyl. 27*- 83*) c: 35378533 0 unused 0 0 # (Cyl. 0 - 7508*) d: 0 0 unused 0 0 # (Cyl. 0 - -1) e: 0 0 unused 0 0 # (Cyl. 0 - -1) f: 0 0 unused 0 0 # (Cyl. 0 - -1) g: 17492658 393216 unused 0 0 # (Cyl. 83*- 3795*) h: 17492659 17885874 unused 0 0 # (Cyl. 3795*- 7508*) # disklabel -r rz11 Usage: ... # disklabel -wr rz11 MAG3182L # disklabel -r rz11 # /dev/rrz11a: type: SCSI disk: MAG3182L label: flags: dynamic_geometry bytes/sector: 512 sectors/track: 248 tracks/cylinder: 19 sectors/cylinder: 4712 cylinders: 7508 sectors/unit: 35378533 rpm: 10025 interleave: 1 trackskew: 71 cylinderskew: 101 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize cpg] a: 131072 0 unused 0 0 # (Cyl. 0 - 27*) b: 262144 131072 unused 0 0 # (Cyl. 27*- 83*) c: 35378533 0 unused 0 0 # (Cyl. 0 - 7508*) d: 0 0 unused 0 0 # (Cyl. 0 - -1) e: 0 0 unused 0 0 # (Cyl. 0 - -1) f: 0 0 unused 0 0 # (Cyl. 0 - -1) g: 17492658 393216 unused 0 0 # (Cyl. 83*- 3795*) h: 17492659 17885874 unused 0 0 # (Cyl. 3795*- 7508*) # newfs /dev/rz11c Warning: 3876 sector(s) in last cylinder unallocated /dev/rrz11c: 35378532 sectors in 7509 cylinders of 19 tracks, 248 sectors 17274.7MB in 470 cyl groups (16 c/g, 36.81MB/g, 8832 i/g) super-block backups (for fsck -b #) at: ... Thanks to all.
Rob Leadbeater
Nov 5, 2009 08:02:01 GMT
Unassigned
Glad you worked it out. Remember to say thanks by assigning points. By the way, is there any particular reason that you're using UFS rather than AdvFS ? I don't think I've ever used newfs on Tru64/Digital Unix... Cheers, Rob