From: Ian Pratt Subject: Re: [SOLVED] Error looking up phy:sda5 Date: Fri, 14 May 2004 09:56:27 +0100 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: References: Return-path: In-reply-to: Your message of "Fri, 14 May 2004 09:24:24 BST." Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Keir Fraser Cc: Ian Pratt , Michael Kaegler , xen-devel@lists.sourceforge.netIan.Pratt@cl.cam.ac.uk List-Id: xen-devel@lists.xenproject.org > Maybe check 'sfdisk', '/sbin/sfdisk', then '/usr/sbin/sfdisk'? > > > I guess it would probably be cleaner if we just read this out of > > /proc/partitions rather than using sfdisk... I'd check 'sfdisk' last, using PATH as a last resort. > Unfortunately the proc file lists blocks rather than sectors, so you > can't do sector-accurate calculations based on it. Oh yeah, I remember why I wrote that code now ;-) Ian ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click