Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Florian Weps <fweps@pop.agri.ch>
Subject: Re: TRU64 UNIX  Howto format a 2nd SCSI Drive
Date: 12 Jul 2001 23:35:00 +0200	[thread overview]
Message-ID: <87pub5n857.fsf@bubulina.localdomain.localnet> (raw)
In-Reply-To: 5c26265e.0107121032.6fe76537@posting.google.com

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.

<snip>

> 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)


      parent reply	other threads:[~2001-07-12 21:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-12 18:32 TRU64 UNIX Howto format a 2nd SCSI Drive Manfred Soth
2001-07-12 21:08 ` Tim Mooney
2001-07-13  2:45   ` Paul Victor Novarese
2001-07-16 16:01   ` Manfred Soth
2001-07-17 20:05     ` Manfred Soth
2001-07-12 21:35 ` Florian Weps [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox