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-16 09:01:27 PST Path: archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail From: msoth@salussystems.com (Manfred Soth) Newsgroups: comp.unix.tru64 Subject: Re: TRU64 UNIX Howto format a 2nd SCSI Drive Date: 16 Jul 2001 09:01:27 -0700 Organization: http://groups.google.com/ Message-ID: <5c26265e.0107160801.777b8a74@posting.google.com> References: <5c26265e.0107121032.6fe76537@posting.google.com> <9il3ji$765$1@news.ndsu.nodak.edu> NNTP-Posting-Host: 208.181.191.147 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 995299287 23684 127.0.0.1 (16 Jul 2001 16:01:27 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 16 Jul 2001 16:01:27 GMT Xref: archiver1.google.com comp.unix.tru64:3551 mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) wrote in message news:<9il3ji$765$1@news.ndsu.nodak.edu>... > 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 Thanks everybody for your comments and help. Now I learned how to get a 2nd drive installed. Always learning by doing. Manfred