* Alpha/OSF disk format
@ 1996-01-08 5:00 John Yung
1996-01-10 5:00 ` Alan Rollow
0 siblings, 1 reply; 2+ messages in thread
From: John Yung @ 1996-01-08 5:00 UTC (permalink / raw)
This may sound stupid but even DEC support couldn't give me a direct answer.
I am trying to check disk partitioning and add more swap space. I use
disklabel to check my disks. Only the root disk came back with info, others
came back invalid label. My fstab file indicates that I have /dev/rz0b and
/dev/rz2b for swapping. Since I can't see partition info for rz2, I don't
know how big.
I have a new disk (RZ28). How can I partition 200mb for b and remainder 1.8gb
for g partition and assign b for swapping.
Please copy your reply to jyung@pointcast.com.
Thanks alot in advance,
John Yung
PointCast Inc.
# disklabel rz0
8 partitions:
# size offset fstype [fsize bsize cpg]
a: 131072 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 82*)
b: 401408 131072 unused 1024 8192 # (Cyl. 82*- 336*)
c: 4110480 0 unused 1024 8192 # (Cyl. 0 - 2594)
d: 1191936 532480 unused 1024 8192 # (Cyl. 336*- 1088*)
e: 1191936 1724416 unused 1024 8192 # (Cyl. 1088*- 1841*)
f: 1194128 2916352 unused 1024 8192 # (Cyl. 1841*- 2594*)
g: 1787904 532480 4.2BSD 1024 8192 16 # (Cyl. 336*- 1464*)
h: 1790096 2320384 unused 1024 8192 # (Cyl. 1464*- 2594*)
# disklabel rz1
Invalid disk label (label is corrupted, or disk is unlabeled)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Alpha/OSF disk format
1996-01-08 5:00 Alpha/OSF disk format John Yung
@ 1996-01-10 5:00 ` Alan Rollow
0 siblings, 0 replies; 2+ messages in thread
From: Alan Rollow @ 1996-01-10 5:00 UTC (permalink / raw)
In article <4crt8n$gh8@lore.interserv.net>, jyung@pointcast.com (John Yung) writes:
>This may sound stupid but even DEC support couldn't give me a direct answer.
To some it might be an interesting exercise to find out what the question
was and what information you provided...
>
>I am trying to check disk partitioning and add more swap space. I use
>disklabel to check my disks. Only the root disk came back with info, others
>came back invalid label.
Had you considered that the disks aren't labeled? The label is feature
managed by Digital UNIX and you have to a bit out of your way to write
the initial label to a disk. If no label is present, the disk driver
uses a default partition table that depends on the disk drive. The
default partitions for supported SCSI disks are given in the rz(7)
manual page.
The default partition for unsupported disks is typically:
A = 64 MB
B = 128 MB
C = entire disk
G = C - ( A + B )
The remaining partitions aren't defined.
>My fstab file indicates that I have /dev/rz0b and
>/dev/rz2b for swapping. Since I can't see partition info for rz2, I don't
>know how big.
The swapon command should know how much space is being provided by
a particular partition:
% /sbin/swapon -s
Swap partition /dev/rz2b:
Allocated space: 16384 pages (128MB)
In-use space: 1 pages ( 0%)
Free space: 16383 pages ( 99%)
Swap partition /dev/rz3b:
Allocated space: 16384 pages (128MB)
In-use space: 1 pages ( 0%)
Free space: 16383 pages ( 99%)
Total swap allocation:
Allocated space: 32768 pages (256MB)
In-use space: 2 pages ( 0%)
Available space: 32766 pages ( 99%)
>I have a new disk (RZ28). How can I partition 200mb for b and remainder 1.8gb
>for g partition and assign b for swapping.
1. Label the disk:
# disklabel -wr /dev/rrz#c rz28
2. Use the disklabel to edit the partition table.
# disklabel -e /dev/rrz#c
3. Arrange some space to protect the label, which is on the first
sector of the disk. The paging code will be very happy to
try and overwrite it, so starting a page/swap device at the
beginning of the disk is bad idea. Left to itself the label
is readonly, so the page/swap code will get I/O errors when
it tries to write there. Either offset B from the beginning
or put a file system at the beginning and the page/swap at the
end.
>
>Please copy your reply to jyung@pointcast.com.
>
>Thanks alot in advance,
>John Yung
>PointCast Inc.
>
> [ example label of rz0 deleted. ]
>
># disklabel rz1
>Invalid disk label (label is corrupted, or disk is unlabeled)
^^^^^^^^^^^^^^^^^
Odds are, it isn't labeled. Maybe never was.
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-01-10 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-01-08 5:00 Alpha/OSF disk format John Yung
1996-01-10 5:00 ` Alan Rollow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox