Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: msoth@salussystems.com (Manfred Soth)
Subject: Re: TRU64 UNIX  Howto format a 2nd SCSI Drive
Date: 16 Jul 2001 09:01:27 -0700	[thread overview]
Message-ID: <5c26265e.0107160801.777b8a74@posting.google.com> (raw)
In-Reply-To: 9il3ji$765$1@news.ndsu.nodak.edu

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 <msoth@salussystems.com> 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


  parent reply	other threads:[~2001-07-16 16:01 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 [this message]
2001-07-17 20:05     ` Manfred Soth
2001-07-12 21:35 ` Florian Weps
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