Date: Fri, 25 Mar 2005 14:25:33 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: pjd@FreeBSD.org Cc: freebsd-geom@FreeBSD.org Subject: Re: strange error of GEOM_RAID3 on RELENG_5 Message-ID: <20050325.142533.35104027.hrs@allbsd.org> In-Reply-To: <20050324135602.GZ591@darkness.comp.waw.pl> References: <20050324082319.GU591@darkness.comp.waw.pl> <20050324.183055.74659435.hrs@allbsd.org> <20050324135602.GZ591@darkness.comp.waw.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Fri_Mar_25_14_25_33_2005_879)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Pawel Jakub Dawidek <pjd@FreeBSD.org> wrote in <20050324135602.GZ591@darkness.comp.waw.pl>: pj> This is very strange and I've no idea why you get EPERM from ad[246]s1a. Ah, I found a simple use of dd failed. Sorry for the false alarm... I used a disklabel like this: a: 100g * 4.2BSD c: * * unused When the offset of /dev/ad2s1a is 0, "dd if=/dev/zero of=/dev/ad2s1a bs=512 count=1" works fine but "dd if=/dev/zero of=/dev/ad2s1a bs=512 count=2" fails (count > 2 or bs!=512 also occurs EPERM with whatever skip= value). When the offset is set to >2, dd works as expected. The second sector seems to contain the disklabel information and "disklabel -w /dev/ad2s1a auto" generates an offset of 16 for a: partition. Is using an offset of 0 wrong? I assumed that the offset can be 0 and /dev/ad2s1a does not (effectively) overlap with the disklabel area and so on, but am I mistaken about it? And if the offset is necessary, I still do not understand why "dd if=/dev/zero of=/dev/ad2s1a bs=512 count=2 skip=1000" fails. -- | Hiroki SATO ----Security_Multipart(Fri_Mar_25_14_25_33_2005_879)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD4DBQBCQ6DNTyzT2CeTzy0RApjwAJivZ8/aU2TEUjWIPZoXvoSd3bHnAKCB4htT sHfHqrEYU1gsDvtoeNELHg== =DMHT -----END PGP SIGNATURE----- ----Security_Multipart(Fri_Mar_25_14_25_33_2005_879)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050325.142533.35104027.hrs>
