From: Keir Fraser Subject: Re: [SOLVED] Error looking up phy:sda5 Date: Fri, 14 May 2004 09:24:24 +0100 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: References: Return-path: In-Reply-To: Your message of "Fri, 14 May 2004 08:43:05 BST." Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Ian Pratt Cc: Michael Kaegler , xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org > > As usual, one finds the answer on their own right after asking a devel list. > > /usr/lib/python2.3/site-packages/XenoUtil.py hardcoded the location > > of sfdisk to /sbin/sfdisk, when in fact slackware 9.1 places it at > > /usr/sbin/sfdisk. I just removed the /sbin/ bit and let my PATH take > > care of finding it. > > Anyone want to knock up a patch that looks in both locations and > return a more useful error message on failure? ;-) 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... Unfortunately the proc file lists blocks rather than sectors, so you can't do sector-accurate calculations based on it. -- Keir ------------------------------------------------------- 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