[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Real partition under QEMU


On Sun, 01 Oct 2006 14:46:22 +0200, Samuel Thibault wrote:
> Luca Capello, le Sun 01 Oct 2006 11:48:58 +0200, a écrit :
>> Well, here what appears on the grub console (grub-0.95 or
>> grub-0.97):
>> grub> root (hd0)
>>  Filesystem type unknown, using whole disk
> Ok. So you need a partition table indeed (and give (hd0,0) as root
> to grub). Please also give root=device:hd0s1 as parameter to
> gnumach...

For the record, grub2 supports the solution Samuel posted before,
i.e. it recognizes the partition /dev/hda10 as a real partition, even
if there's no partition table on it.  Thus, my grub2 entry for qemu is
the following:

  menuentry "Debian GNU/Hurd" {
	set root=(hd0)
	multiboot /boot/gnumach.gz root=device:hd0
	module /hurd/ext2fs.static \
	       --multiboot-command-line='${kernel-command-line}' \
	       --host-priv-port='${host-port}' \
	       --device-master-port='${device-port}' \
	       --exec-server-task='${exec-task}' \
	       -T typed '${root}' '$(task-create)' '$(task-resume)'
	module /lib/ld.so.1 /hurd/exec '$(exec-task=task-create)'

Note the single quotes used to escape $, { and }.

Thx, bye,
Gismo / Luca

Attachment: pgp2zgjjf3YIU.pgp
Description: PGP signature

Reply to: