From owner-freebsd-hackers Wed Mar 28 5:18: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 832D237B71D for ; Wed, 28 Mar 2001 05:17:46 -0800 (PST) (envelope-from roam@orbitel.bg) Received: (qmail 9026 invoked by uid 1000); 28 Mar 2001 13:16:40 -0000 Date: Wed, 28 Mar 2001 16:16:40 +0300 From: Peter Pentchev To: Julian Elischer Cc: Ceri Storey , Sandeep Kohli , fbsd-hackers Subject: Re: accessing ide Message-ID: <20010328161640.H5524@ringworld.oblivion.bg> Mail-Followup-To: Julian Elischer , Ceri Storey , Sandeep Kohli , fbsd-hackers References: <3AC1D2B2.F3244CA2@yahoo.com> <20010328113625.C5524@ringworld.oblivion.bg> <20010328104240.B443@cds220.halls.umist.ac.uk> <3AC1E257.F8E2414C@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AC1E257.F8E2414C@elischer.org>; from julian@elischer.org on Wed, Mar 28, 2001 at 05:08:40AM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 28, 2001 at 05:08:40AM -0800, Julian Elischer wrote: > Ceri Storey wrote: > > > > On Wed, Mar 28, 2001 at 11:36:25AM +0300, Peter Pentchev wrote: > > [...] > > > And btw, another part of your problem could be that FreeBSD > > > has used ad, not wd, for ATAPI devices access for some time; > > > unless you're running < 4.0 (or hmm, somebody correct me: when > > > did the wd -> ad transition take place?), try opening /dev/ad0 > > > or /dev/ad0c. > > > > > > Both 'head -c 512 /dev/ad0 | hd' and 'head -c 512 /dev/ad0c | hd' > > > work for me, on 4.2-stable (4.3-RC from March 25th). > > > > but these two command lines give me different results, eg: > > cds220# head -c 32 /dev/ad0c | hd > > 00000000 eb 1b 90 90 16 1f 66 6a 00 51 50 06 53 31 c0 88 |......fj.QP.S1..| > > 00000010 f0 50 6a 10 89 e5 e8 c7 00 8d 66 10 cb fc 31 c9 |.Pj.......f...1.| > > 00000020 > > cds220# head -c 32 /dev/ad0 | hd > > 00000000 fc 31 c0 8e c0 8e d8 8e d0 bc 00 7c bd 00 0a 89 |.1.........|....| > > 00000010 ef b9 08 00 f3 ab fe 45 f2 52 bb 00 06 89 ee b8 |.......E.R......| > > > > so they are not equivalent? > > yes they are not equivalent.. > > ad0 is the entire physical drive > ad0c is the same as ad0s1 (or whatever slice is your first BSD slice). > Do NOT use ad0c. it is magicly the same as ad0s1 but the magic is scheduled to > dissappear > some time in the next 10 years. (open mouth; take foot out; shoot foot) Oops. Forget I said anything then. Sorry for the confusion. G'luck, Peter -- I am the thought you are now thinking. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message