From owner-freebsd-hackers Thu Feb 1 13:02:20 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA29383 for hackers-outgoing; Thu, 1 Feb 1996 13:02:20 -0800 (PST) Received: from sivka.carrier.kiev.ua (root@sivka.carrier.kiev.ua [193.125.68.130]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA29329 for ; Thu, 1 Feb 1996 13:00:47 -0800 (PST) Received: from elvisti.kiev.ua (uucp@localhost) by sivka.carrier.kiev.ua (Sendmail 8.who.cares/5) with UUCP id WAA00239 for hackers@FreeBSD.org; Thu, 1 Feb 1996 22:58:35 +0200 Received: from office.elvisti.kiev.ua (office.elvisti.kiev.ua [193.125.28.33]) by spider2.elvisti.kiev.ua (8.6.12/8.ElVisti) with ESMTP id UAA23625 for ; Thu, 1 Feb 1996 20:12:28 +0200 Received: (from stesin@localhost) by office.elvisti.kiev.ua (8.6.12/8.ElVisti) id UAA07298; Thu, 1 Feb 1996 20:12:22 +0200 From: "Andrew V. Stesin" Message-Id: <199602011812.UAA07298@office.elvisti.kiev.ua> Subject: Re: Am I root?! or How to mirror an 'a' partition? To: rgrimes@GndRsh.aac.dev.com (Rodney W. Grimes) Date: Thu, 1 Feb 1996 20:12:21 +0200 (EET) Cc: stesin@elvisti.kiev.ua, hackers@FreeBSD.org, ccd@forgery.CS.Berkeley.EDU In-Reply-To: <199602011624.IAA20540@GndRsh.aac.dev.com> from "Rodney W. Grimes" at Feb 1, 96 08:24:32 am X-Mailer: ELM [version 2.4 PL24alpha5] Content-Type: text Sender: owner-hackers@FreeBSD.org Precedence: bulk Hello, [...] # Because the first 16 blocks of the a partition are special, they # contain the bootblocks and disklabel. These are protected from # writes and require a special ioctl to be able to write them. # > # > dd if=/dev/rsd0a of=/dev/rsd1a bs=16b skip=1 # # Try adding a seek=1 so you skip over the first 16b of the output # device too. Skip only effects the input file. Oh, God. Shame on me. I apologize for the dumb question. Probably beer made me blind while doing RTFM on dd (1). )-; sd (4) doesn't clearly state that first 16b are R/O even if the disk is _not_ mounted at all, BTW. One need to read IOCTLS section carefully to figure the idea. Can this fact be added to the sd (4) manpage? Thanks a lot for the solution! # -- # Rod Grimes rgrimes@gndrsh.aac.dev.com # Accurate Automation Company Reliable computers for FreeBSD # -- With best regards -- Andrew Stesin. +380 (44) 2760188 +380 (44) 2713457 +380 (44) 2713560 "You may delegate authority, but not responsibility." Frank's Management Rule #1.