* TRU64 UNIX Howto format a 2nd SCSI Drive
@ 2001-07-12 18:32 Manfred Soth
2001-07-12 21:08 ` Tim Mooney
2001-07-12 21:35 ` Florian Weps
0 siblings, 2 replies; 6+ messages in thread
From: Manfred Soth @ 2001-07-12 18:32 UTC (permalink / raw)
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
b)
>/sbin/disklabel -z dsk1a
I get: dsk1a, No such file or directory
c)
>/sbin/disklable -z /dev/rdisk/dsk1a
I get: disk is unlabeled or is not in Block 0 of the disk
d)
>/sbin/disklabel -n /dev/rdisk/dsk1a
I get:
type:SCSI
disk:
label:
flags:
bytes/sectors:512
sectors/track:63
..
..
..
drivedata:0
2 Partitions fstype (Cyl)
a: swap (Cyl.0* - 39*)
b: resrvd8 (Cyl.39*- 520)
I guess its left over from previous installation
3.
I tried SCU
>/sbin/scu -f /dev/rdisk/dsk1a
I get: only the scu prompt
4.
I missed of course an important option:
>/sbin/scu -f /dev/rdisk/dsk1a format
>
>OK, its formated now.
>
I have the Compaq Non-Commercial Tru64 UNIX V5 and can't use AdvFS.
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
It's ok.
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.)
I get: mounting a dirty filesystem r/w is not recommended
: no such file or directory
How to get the 2nd drive accessible?
Any ideas, how to get this problem fixed?
Any help is very much apreciated,
Thanks
Manfred
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TRU64 UNIX Howto format a 2nd SCSI Drive
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-12 21:35 ` Florian Weps
1 sibling, 2 replies; 6+ messages in thread
From: Tim Mooney @ 2001-07-12 21:08 UTC (permalink / raw)
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
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TRU64 UNIX Howto format a 2nd SCSI Drive
2001-07-12 18:32 TRU64 UNIX Howto format a 2nd SCSI Drive Manfred Soth
2001-07-12 21:08 ` Tim Mooney
@ 2001-07-12 21:35 ` Florian Weps
1 sibling, 0 replies; 6+ messages in thread
From: Florian Weps @ 2001-07-12 21:35 UTC (permalink / raw)
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)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TRU64 UNIX Howto format a 2nd SCSI Drive
2001-07-12 21:08 ` Tim Mooney
@ 2001-07-13 2:45 ` Paul Victor Novarese
2001-07-16 16:01 ` Manfred Soth
1 sibling, 0 replies; 6+ messages in thread
From: Paul Victor Novarese @ 2001-07-13 2:45 UTC (permalink / raw)
mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) wrote in message news:<9il3ji$765$1@news.ndsu.nodak.edu>...
> 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.
Just as an FYI, you can omit the disktype argument, though I
occasionally catch myself using "rzxx". I think this became
possible in 4.0f, but you can definitely get away with it in
any 5.x version.
--
paul victor novarese KF4ZLI
novarese AT novarese DOT net http://gammatron.weblogger.com
find / -user you -name "*base*" -exec chown us {} \;
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TRU64 UNIX Howto format a 2nd SCSI Drive
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
1 sibling, 1 reply; 6+ messages in thread
From: Manfred Soth @ 2001-07-16 16:01 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TRU64 UNIX Howto format a 2nd SCSI Drive
2001-07-16 16:01 ` Manfred Soth
@ 2001-07-17 20:05 ` Manfred Soth
0 siblings, 0 replies; 6+ messages in thread
From: Manfred Soth @ 2001-07-17 20:05 UTC (permalink / raw)
Hi,
thanks to you all. Thanks for your comments and your help.
Now I learned how to get a 2nd drive up and running. I appreciate it very much.
Manfred
msoth@salussystems.com (Manfred Soth) wrote in message news:<5c26265e.0107160801.777b8a74@posting.google.com>...
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-07-17 20:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox