Ubuntu
私のUSBから起動可能なUSBを作成したいですDebian
。私が使用しようとしている短いコマンドのリストdebootstrap
は次のとおりです。
mount /dev/sdb1 /mnt
debootstrap sid /mnt http://ftp.debian.org/debian
chroot /mnt
apt-get install linux-headers-3.2.0-4-686-pae linux-image-3.2.0-4-686-pae
apt-get install grub2
grub-install --recheck /dev/sdb
修正して含め/mnt/etc/fstab
ます。しかし、私の問題は内部でインストールしています。次のエラーが発生します。USB drive
UUID
grub
chroot
/usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
私のコンピュータのグラブに触れたくないのでubuntu
、他のコンピュータから起動できるようにUSBにグラブをインストールしたいと思います。
どのステップ/コマンドを見逃しましたか?
ベストアンサー1
/dev/
たとえば、chroot内で擬似ファイルシステムをバインドマウントできます。
mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys
mount -t proc /proc /mnt/proc
別のオプションは、以下を使用してchrootの外部でgrub-installを実行することです--root-directory
。
grub-install --root-directory=/mnt /dev/sdb