[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #33353] installing to image file = grub-probe: error: no such disk.
From: |
Carl Karsten |
Subject: |
[bug #33353] installing to image file = grub-probe: error: no such disk. |
Date: |
Fri, 20 May 2011 00:04:46 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110303 Ubuntu/10.10 (maverick) Firefox/3.6.15 |
URL:
<http://savannah.gnu.org/bugs/?33353>
Summary: installing to image file = grub-probe: error: no
such disk.
Project: GNU GRUB
Submitted by: carlfk
Submitted on: Fri 20 May 2011 12:04:44 AM GMT
Category: Disk & Partition
Severity: Major
Priority: 5 - Normal
Item Group: Software Error
Status: None
Privacy: Public
Assigned to: None
Originator Name: carlfk
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release:
Release: 1.98
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
# clean up previous run
sudo umount /dev/mapper/loop0p1
sudo kpartx -v -d $PWD/disk.img
# sudo losetup -d /dev/loop0
# create image:
qemu-img create -f raw disk.img 2000M
# partition it:
parted disk.img mklabel gpt
parted --script disk.img mkpart primary ext3 1 2090
# loop the partition
sudo losetup /dev/loop0 disk.img
sudo kpartx -a /dev/loop0
# format the partition
sudo mkfs.ext3 /dev/mapper/loop0p1
# mount the partition
mkdir -p rootfs
sudo mount /dev/mapper/loop0p1 rootfs
grub-install --version
sudo grub-install --boot-directory=rootfs/boot /dev/loop0
sudo grub-install --recheck --boot-directory=rootfs/boot /dev/loop0
+ qemu-img create -f raw disk.img 2000M
Formatting 'disk.img', fmt=raw size=2097152000
+ parted disk.img mklabel gpt
WARNING: You are not superuser. Watch out for permissions.
+ parted --script disk.img mkpart primary ext3 1 2090
+ sudo losetup /dev/loop0 disk.img
+ sudo kpartx -a /dev/loop0
+ sudo mkfs.ext3 /dev/mapper/loop0p1
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
127488 inodes, 509952 blocks
25497 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=524288000
16 block groups
32768 blocks per group, 32768 fragments per group
7968 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
+ mkdir -p rootfs
+ sudo mount /dev/mapper/loop0p1 rootfs
+ grub-install --version
grub-install (GRUB) 1.99+experimental
+ sudo grub-install --boot-directory=rootfs/boot /dev/loop0
/usr/local/sbin/grub-probe: error: no such disk.
Auto-detection of a filesystem of /dev/mapper/loop0p1 failed.
Try with --recheck.
If the problem persists please report this together with the output of
"/usr/local/sbin/grub-probe --device-map="rootfs/boot/grub/device.map"
--target=fs -v rootfs/boot/grub" to <address@hidden>
+ sudo grub-install --recheck --boot-directory=rootfs/boot /dev/loop0
/usr/local/sbin/grub-probe: error: no such disk.
Auto-detection of a filesystem of /dev/mapper/loop0p1 failed.
Try with --recheck.
If the problem persists please report this together with the output of
"/usr/local/sbin/grub-probe --device-map="rootfs/boot/grub/device.map"
--target=fs -v rootfs/boot/grub" to <address@hidden>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33353>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #33353] installing to image file = grub-probe: error: no such disk.,
Carl Karsten <=