From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,429e7fdcab5a4dce X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-07-12 14:20:13 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.uchicago.edu!vixen.cso.uiuc.edu!hardy.tc.umn.edu!news.nodak.edu!not-for-mail From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Newsgroups: comp.unix.tru64 Subject: Re: TRU64 UNIX Howto format a 2nd SCSI Drive Date: 12 Jul 2001 21:08:02 GMT Organization: North Dakota Higher Education Computing Network (NDHECN) Message-ID: <9il3ji$765$1@news.ndsu.nodak.edu> References: <5c26265e.0107121032.6fe76537@posting.google.com> NNTP-Posting-Host: dogbert.cc.ndsu.nodak.edu Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: news.ndsu.nodak.edu 994972082 7365 134.129.106.23 (12 Jul 2001 21:08:02 GMT) X-Complaints-To: abuse@nodak.edu NNTP-Posting-Date: 12 Jul 2001 21:08:02 GMT X-Newsreader: trn 4.0-test74 (May 26, 2000) Originator: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Xref: archiver1.google.com comp.unix.tru64:3447 In article <5c26265e.0107121032.6fe76537@posting.google.com>, Manfred Soth wrote: > Hi all, > > I am a newbie and recently installed TRU64 UNIX 5.1 on a Alpha > PWS500au. I got the system up and running. Now I want to format the > 2nd SCSI disk it was used by Linux before. > > 1. > I used the Disk configuration tool on alpha it shows > > dsk0 RZ1CB-BS bus-2-targ-0-lun-0 > dsk1 RZ1CB-BS bus-2-targ-1-lun-0 > > when I want to configure dsk1.... > > I get, Error:syntax error in expression "+" You're doing a good job with the command line tools, I think you can stay away from the GUI. ;-) > 2. > I tried disklabel, > a) > >/sbin/disklabel -r dsk1a > > I get: disk is unlabeled or is not in Block 0 of the disk You tried to read the label, there wasn't one or it wasn't recognized, so this message isn't unexpected. > b) > >/sbin/disklabel -z dsk1a > > I get: dsk1a, No such file or directory Hmmm, maybe it requires the full path? It's been a while since I've labelled a disk under 5.1, so I don't remember the details. > c) > >/sbin/disklable -z /dev/rdisk/dsk1a > > I get: disk is unlabeled or is not in Block 0 of the disk You must not be cut-n-pasting, because you typed disklabel incorrectly in the example above. > d) > >/sbin/disklabel -n /dev/rdisk/dsk1a Ok, and it spits out something, so at least it can see a label now. When I label, I usually do something like: disklabel -z dsk1 disklabel -n -wr dsk1 rz_noisy Note that I don't specify a partition, just the disk itself. I specify `-n' to say it doesn't need to be bootable (shouldn't make much difference either way, honestly). The `rz_noisy' can be anything that's not a known disk type, and the label will then be based on geometry information from the drive itself. If you wanted it bootable, you would instead do something like: disklabel -t advfs -wr dsk1 dsk_dynamic_geometry or disklabel -t ufs -wr dsk1 dsk_dynamic_geometry > >/sbin/scu -f /dev/rdisk/dsk1a format > > > >OK, its formated now. Ok. > I have the Compaq Non-Commercial Tru64 UNIX V5 and can't use AdvFS. Why can't you use AdvFS? I have the Tru64 Non-Commercial V 5.0a at home, and AdvFS is a filesystem option for me. > I can't use addvol its need the license too. > > 5. > >/sbin/disklabel -wr -t UFS /dev/rdisk/dsk1a > >/sbin/disklabel -wr -t UFS /dev/rdisk/dsk1g Ok, you just wrote a default label, twice. disklabel just creates the partition table at the beginning of the disk -- other than setting the boundaries of each partition, it doesn't do anything to any of the partitions themselves. You only write a disklabel to a disk once. You do LSM or filesystem to the partitions, but the label is at the head of the disk and is not part of any of the partitions. > 6. > >/sbin/newfs /dev/rdisk/dsk1g > > Its creating the new file system.... Ok. > I tried /sbin/mount -d /dev/rdisk/dsk1g /data (for e.g.) Since you're using UFS, and the filesystem has never been mounted, it's not in a known clean state. It's a common idiom among the commercial UNIXes to do newfs ... fsck ... mount ... to fsck the filesystem right after it's created, before it's mounted the first time. Once you've fscked it, just mount /dev/disk/dsk1g /data Note you do *not* want the raw device (/dev/rdisk/dsk1g) for mount -- mount should always work through the *block* device. Newfs and fsck work through the raw device, but mount does not. Tim -- Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu Information Technology Services (701) 231-1076 (Voice) Room 242-J6, IACC Building (701) 231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164