From: Bastian Blank Subject: Re: PV-GRUB - Does not read partition-less disk Date: Fri, 12 Sep 2008 21:16:36 +0200 Message-ID: <20080912191636.GA18956@wavehammer.waldi.eu.org> References: <20080911231038.GA5780@wavehammer.waldi.eu.org> <20fe3cf60809111838q370a0b66pa848ea46eaef3798@mail.gmail.com> <20080912062457.GA20977@wavehammer.waldi.eu.org> <20fe3cf60809120501n29e4fc49y6f2a6075bccb8a30@mail.gmail.com> <20080912130652.GA4180@wavehammer.waldi.eu.org> <20fe3cf60809120729j41c648fep56e618c0d1838d28@mail.gmail.com> <20080912144210.GA8234@wavehammer.waldi.eu.org> <20fe3cf60809120801kdfde723hcc1b1392aa16370a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20fe3cf60809120801kdfde723hcc1b1392aa16370a@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Marco Sinhoreli Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, Sep 12, 2008 at 12:01:43PM -0300, Marco Sinhoreli wrote: > | grubdom> root (hd0,0) > | Filesystem type is ext2fs, partition type 0x83 > | > | grubdom> configfile (hd0,0)/boot/grub/menu.lst So we are at the beginning. You have a partition table on the device, I don't. Anyway, I found it. It is buried in the filesystem modules of grub in the mount hook. It checks for | ((current_drive & 0x80) || (current_slice !=3D 0)) | && (current_slice !=3D PC_SLICE_TYPE_EXT2FS) | && (current_slice !=3D PC_SLICE_TYPE_LINUX_RAID) | && (! IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_EXT2FS)) | && (! IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_OTHER)) Which reads as: - If device is a harddisk, - or it is a slice with none matching type, then abort. It simply refuses to find filesystems on the whole disk. If I remove the current_disk check it is able to find the filesystem. Bastian --=20 To live is always desirable. -- Eleen the Capellan, "Friday's Child", stardate 3498.9