Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 22 Oct 2003 09:53:57 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: block size in /proc/partitions bug? Message-ID: <20031022135357.GC18407@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <3F9653F3 DOT 3000507 AT futarque DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F9653F3.3000507@futarque.com> User-Agent: Mutt/1.4.1i On Wed, Oct 22, 2003 at 11:54:59AM +0200, Christian Damkjer George wrote: >Hi > >I am working on a tool which reads raw from a disk via cygwin's /dev/sdX >interface, which works fine. But I need to determine the size of the >disk preferably in sectors. I can not find a get ata identity >functionality in cygwin, but I can live without it if I could get the >disk size elsewhere. My disk is 40 Gb which is divided in to two >partitions on 20Gb each. "df" reports 19567136 and 20625392 1k-blocks >each, which is the correct size. But /proc/partitions says 313074216 and >330167880 which is about a factor 0.0625 of compared to linux. Why this >strange factor it seems like you accidently multiplied by 16. The source code would either confirm or deny that wouldn't it? cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/