From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,5289e984584236e0 X-Google-NewGroupId: yes X-Google-Attributes: gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: comp.sys.dec Subject: Re: RSX11 Tape file Structure? Date: Sat, 26 Feb 2011 10:15:09 +0100 Organization: Update Computer Club Message-ID: References: <4D6623BF.7030408@softjar.se> NNTP-Posting-Host: 178-83-28-113.dynamic.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: Iltempo.Update.UU.SE 1298711709 10860 178.83.28.113 (26 Feb 2011 09:15:09 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Sat, 26 Feb 2011 09:15:09 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: Xref: g2news2.google.com comp.sys.dec:3100 On 2011-02-26 08:16, Holm Tiffe wrote: > In article, > Johnny Billquist 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