From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1BUJlS-0001Ar-EM for user-mode-linux-devel@lists.sourceforge.net; Sat, 29 May 2004 23:25:46 -0700 Received: from smtpq3.home.nl ([213.51.128.198]) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.30) id 1BUJlR-0004qJ-T4 for user-mode-linux-devel@lists.sourceforge.net; Sat, 29 May 2004 23:25:46 -0700 Received: from [213.51.128.132] (port=46574 helo=smtp1.home.nl) by smtpq3.home.nl with esmtp (Exim 4.30) id 1BUJlP-0001tQ-RG for user-mode-linux-devel@lists.sourceforge.net; Sun, 30 May 2004 08:25:43 +0200 Received: from cc22149-a.groni1.gr.home.nl ([217.121.240.26]:32948 helo=ws-02.local) by smtp1.home.nl with esmtp (Exim 4.30) id 1BUJlN-0003I0-Uf for user-mode-linux-devel@lists.sourceforge.net; Sun, 30 May 2004 08:25:41 +0200 From: Leendert Meyer Subject: Re: [uml-devel] No of ubd References: <200405291408.09412.leen.meyer@home.nl> In-Reply-To: <200405291408.09412.leen.meyer@home.nl> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200405300831.32648.leen.meyer@home.nl> Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Sun, 30 May 2004 08:31:32 +0200 To: user-mode-linux-devel@lists.sourceforge.net On Saturday 29 May 2004 14:08, Leendert Meyer wrote: > On Saturday 29 May 2004 10:40, Henrik Nordstrom wrote: > > On Fri, 28 May 2004, Leendert Meyer wrote: > > > I know how to use fdisk. But I need a bit of guidance here. Given *any* > > > partitionsize, what are the appropriate values? Is there a formula for > > > that? > > > > You just need to set some geometry on the disk.. Linux does not care > > what.. The only important matter is that the geometry should add upp to > > the size of your disk (in 512 byte sectors). > > Found this in linux/Documentation/kernel-parameters.txt: > ---8<---8<---8<--- > hd= [EIDE] (E)IDE hard drive subsystem geometry > Format: ,, > ---8<---8<---8<--- > > And this in linux/Documentation/ide.txt: > ---8<---8<---8<--- > "hdx=cyl,head,sect" : disk drive is present, with specified geometry > ---8<---8<---8<--- > > Nothing on ubd concerning geometry. Do I need the fake_ide or fakehd > parameters in combination with a hdx=C,H,S? I found out that: a) Debians cfdisk calculates the number of cilinders automatically, when used on an empty disk image file. My current {c,}fdisk (SuSE Linux 9.0) is not that smart. UML calculates the same number of cylinders. b) On the kernel command line, ubd#=, where file can be a disk image, a partition (e.g. /dev/hda7), or an entire disk (e.g. /dev/hdd). You can even use COW files on partitions and disks. c) In UML, ubd0 is mapped to ubda, ubd1 is mapped to ubdb, etc. Thanks to Uwe Barteld for assistance! :) Cheers, Leen ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel