Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Johnny Billquist <bqt@softjar.se>
Subject: Re: RSX11 Tape file Structure?
Date: Sat, 26 Feb 2011 10:15:09 +0100	[thread overview]
Message-ID: <ikagat$ajc$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <ika9bh$22c0$3@news.freibergnet.de>

On 2011-02-26 08:16, Holm Tiffe wrote:
> In article<ik9kh2$228$2@iltempo.update.uu.se>,
> 	Johnny Billquist<bqt@softjar.se>  writes:
>> On 2011-02-25 17:40, Holm Tiffe wrote:
>>> ...There is something curios with the RZ26L, an other disk does well.
>>> Currently I'm copying the diskimage from simh with dd from 2.11BSD to
>>> an empty disk partition (DU2). I had to disable a kernel protection mechanism
>>> in 2.11BSDs ufs_disksubr.c which should prevent disklables from being over-
>>> written. I could only wirte 2 blocks and got then an error "read only
>>> filesystem":
>>
>> You do know that the label area protection can be overridden? No need to
>> patch the code.
>> I think it's the disklabel program that you use to write-enable that part.
>
> Yes, and it is the only one where this mechanism ever gets used.
> I'm not shure if this feature is more a misfeature or a bug.

I think you are misunderstanding it...

> Modern BSDs don't have this feature anymore. For what is it good for?

Yes, they do. I'm using NetBSD a lot, and the protection of the label 
area is definitely there.

> Your can scrap easily the entire disk, only the label persists...

Yes. But scrapping the label area is pretty much as bad as scrapping the 
whole disk, but much faster. So you want to avoid people doing that 
accidentally. Because if you dd to a partition starting at 0, the disk 
label is the first part that gets overwritten, and then you are pretty 
much lost. No way of recovering the disk.

But note: the protection is not lifted by disklabel only for disklabel 
use. Disklabel can turn the protection off, so that you *then* can dd to 
the label area. It's a protection that disklabel can turn on and off for 
you, and you can then write to that area from any program.

> If I would use this mechanism I had to write a program which handles the
> label area as special case and have to set the flag to allow overwriting
> of the label.
> dd is a program to dump disks, and this program doesnt work for dumping disks
> b'cause of this ugly label preserving feature...

No, you are incorrect. dd can work perfectly fine. You just need to turn 
off the protection of the area before running dd, and disklabel dies 
that for you.

>>> Maybe I run in the next problem, since the data are now put to DU2, RSX11
>>> is build for DU1...
>>
>> Like I said before. With RSX, this is not a problem. The system is not
>> built for a system disk on a specific unit. It uses whatever unit it
>> actually is booted from.
>>
>> 	Johnny
>>
>
> hmm, yesterday eavening I've checked if sysgen works, sysgen couldnt find
> the 3 save files generatad at the previous runs on simh...

Well, it could be that you didn't place the answer files where SYSGEN 
think they would be.

As a short point to remember, though. You should not refer to your 
system disk as DUn: when you do things. You should always refer to it as 
LB:, which will always be the system disk, no matter what unit, type, or 
place it actually is at.

	Johnny

-- 
Johnny Billquist                  || "I'm on a bus
                                   ||  on a psychedelic trip
email: bqt@softjar.se             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol


  reply	other threads:[~2011-02-26  9:15 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-20 19:24 RSX11 Tape file Structure? Holm Tiffe
2011-02-20 19:44 ` Roger Ivie
2011-02-21  1:04 ` Johnny Billquist
2011-02-21 11:53   ` Holm Tiffe
2011-02-21 13:08     ` Bob Eager
2011-02-21 16:27       ` Holm Tiffe
2011-02-21 17:36         ` Bob Eager
2011-02-22 17:43           ` Holm Tiffe
2011-02-22 18:26             ` Bob Eager
2011-02-22 19:16               ` Bob Eager
2011-02-21 19:20     ` Johnny Billquist
2011-02-22 18:41       ` Holm Tiffe
2011-02-22 19:56         ` Rich Alderson
2011-02-22 22:26           ` Johnny Billquist
2011-02-23 23:32             ` Rich Alderson
2011-02-24  9:18               ` Johnny Billquist
2011-02-22 22:20         ` Johnny Billquist
2011-02-23 10:57           ` Holm Tiffe
2011-02-23 18:28             ` Holm Tiffe
2011-02-23 19:12               ` Holm Tiffe
2011-02-23 23:54                 ` Rich Alderson
2011-02-24  9:24                   ` Johnny Billquist
2011-02-24 16:52                     ` Holm Tiffe
2011-02-24 23:38                       ` Johnny Billquist
2011-02-25  7:02                         ` Holm Tiffe
2011-02-25  7:35                           ` Holm Tiffe
2011-02-25  9:13                           ` Johnny Billquist
2011-02-25 11:21                             ` Holm Tiffe
2011-02-25 16:40                               ` Holm Tiffe
2011-02-25 20:20                                 ` Holm Tiffe
2011-02-26  1:24                                   ` Johnny Billquist
2011-02-26  7:01                                     ` Holm Tiffe
2011-02-26  9:08                                       ` Johnny Billquist
2011-02-26  9:29                                         ` Holm Tiffe
2011-02-26  9:39                                           ` Holm Tiffe
2011-02-26  9:55                                             ` Johnny Billquist
2011-02-26 10:15                                               ` Holm Tiffe
2011-02-26 10:21                                                 ` Holm Tiffe
2011-02-26 10:35                                                   ` Johnny Billquist
2011-02-26 10:32                                                 ` Johnny Billquist
2011-02-26 11:00                                                   ` Holm Tiffe
2011-02-26 11:13                                                     ` Johnny Billquist
2011-02-26 12:37                                                       ` Holm Tiffe
2011-02-26 18:32                                                         ` Holm Tiffe
2011-02-26 23:47                                                           ` Johnny Billquist
2011-02-27 11:35                                                             ` Holm Tiffe
2011-02-27 11:59                                                               ` Johnny Billquist
2011-02-27 12:35                                                                 ` Holm Tiffe
2011-02-27 12:43                                                                   ` Holm Tiffe
2011-02-27 13:37                                                                     ` Johnny Billquist
2011-02-27 14:49                                                                       ` Holm Tiffe
2011-02-27 15:10                                                                         ` Holm Tiffe
2011-02-28  1:33                                                                           ` Johnny Billquist
2011-02-27 19:38                                                                         ` Holm Tiffe
2011-02-28  1:50                                                                           ` Johnny Billquist
2011-02-28 13:49                                             ` Bob Koehler
2011-02-26  9:53                                           ` Johnny Billquist
2011-02-26  1:20                                 ` Johnny Billquist
2011-02-26  7:16                                   ` Holm Tiffe
2011-02-26  9:15                                     ` Johnny Billquist [this message]
2011-02-26  1:18                               ` Johnny Billquist
2011-02-26  7:07                                 ` Holm Tiffe
2011-02-26  9:19                                   ` Johnny Billquist
2011-02-26 12:56                                     ` Holm Tiffe
2011-02-26 23:53                                       ` Johnny Billquist
2011-02-24  9:44             ` Johnny Billquist
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