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:27:47 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dns.phoenix-ag.de!news.uni-stuttgart.de!news.belwue.de!news.tesion.net!newsfeed-zh.ip-plus.net!news.ip-plus.net!not-for-mail From: Florian Weps Newsgroups: comp.unix.tru64 Subject: Re: TRU64 UNIX Howto format a 2nd SCSI Drive Date: 12 Jul 2001 23:35:00 +0200 Organization: Private Sender: fmw@bubulina.localdomain.localnet Message-ID: <87pub5n857.fsf@bubulina.localdomain.localnet> References: <5c26265e.0107121032.6fe76537@posting.google.com> NNTP-Posting-Host: 195.15.166.41 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: rex.ip-plus.net 994973260 24174 195.15.166.41 (12 Jul 2001 21:27:40 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Thu, 12 Jul 2001 21:27:40 +0000 (UTC) User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 Xref: archiver1.google.com comp.unix.tru64:3448 msoth@salussystems.com (Manfred Soth) writes: > 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 "+" > > 2. > I tried disklabel, > a) > >/sbin/disklabel -r dsk1a > > I get: disk is unlabeled or is not in Block 0 of the disk Well, slice a may not start at block 0. The slice you choose for disklabel must include block zero, as stah is where the disk label reides. Slice c is a much better choice, as it conventionally spans the whole disk. Or your disk does not yet contain a disk label. Use disklabel -rw dsk1 to write one. > I can't use addvol its need the license too. You need a disklabel before you can use addvol... > 5. > >/sbin/disklabel -wr -t UFS /dev/rdisk/dsk1a > >/sbin/disklabel -wr -t UFS /dev/rdisk/dsk1g You now have a disk label. The -t option set up your boot block. Didn't hurt, however. Now I'd look at it before creating file systems: disklabel -re dsk1c You'll probably see a smallish slice a, and a small b, c spanning the entire disk, and the groups d,e,f; and g,h overlapping. I usually edit the disk label to suit my needs. (check that $EDITOR points to an editor that suits you; be prepared to meed ed otherwise) disklabe -re dsk1 you only need to edit the first two columns (size and offset). Note that the sizes are in 512-byte units. The other columns are eye candy. Or use the GUI; I have no experience with it. > 6. > >/sbin/newfs /dev/rdisk/dsk1g > > Its creating the new file system.... > > 7. > Now I'm stuck, how to access the new file system? > > I tried /sbin/mount -d /dev/rdisk/dsk1g /data (for e.g.) Why the d option? The file system is clean after a newfs. Also, you probably want to use /dev/disk/dsk1g. > I get: mounting a dirty filesystem r/w is not recommended > : no such file or directory Did you create your mount point? (mkdir /data) Also, remember to update /etc/fstab. You can leave out the mount operation, update fstab, and then do a mount -a; this will also test your fstab. To recap the steps: disklabel -rw /dev/disk/dsk1 disklabel -re /dev/disk/dsk1c newfs /dev/disk/dsk1g mkdir /data vi /etc/fstab mount -a Look at the documentation at http://tru64unix.compaq.com/faqs/publications/pub_page/V51_DOCS/ADM_DOCS.HTM Florian -- Once upon the Python spoke, / Now he lacks interpreters, Withering in his laurelled fires / All the bitter rock interns, >From within those jewelled eyes / Tells you only what you know, Know, but dare not realise. -- Lawrence Durrell, "Delphi" (1965)