Grub - ntfsパーティションからDebian isoファイルを起動してインストールします。

Grub - ntfsパーティションからDebian isoファイルを起動してインストールします。

ハードドライブからDebianを直接インストールするのに問題があります。たとえば、論理パーティションがあり、そこにもDebian DVD isoファイルとファイルが/dev/sda5あります。その後、次のように grub メニュー項目を作成しました。(hd0,5)/iso/debian-8.0.0-amd64-DVD-1.isoinitrd

menuentry "Debian Jessie (stable)" {
    set isofile='/iso/debian-8.0.0-amd64-DVD-1.iso'
    set initrdfile='/iso/debian-8.0.0-hdd.initrd.gz'
    loopback loop (hd0,5)$isofile
    linux (loop)/install.amd/vmlinuz iso-scan/ask_second_pass=true iso-scan/filename=$isofile
    initrd (hd0,5)$initrdfile
}

正常に起動しました。しかし、Debian CD の検索に失敗しました。インストーラがisoファイルを見つけることができません。 USBドライブを使用すると、すべてがうまくいきます。 USBの「/boot/iso/debian-8.0.0-amd64-DVD-1.iso」にdebian DVD isoを入れました。メニュー項目は次のとおりです。

menuentry 'Debian Jessie (stable)' {
    set isofile='/boot/iso/debian-8.0.0-amd64-DVD-1.iso'
    set initrdfile='/boot/iso/debian-8.0.0-amd64-DVD-1.hdd.initrd.gz'
    loopback loop $isofile
    linux (loop)/install.amd/vmlinuz iso-scan/ask_second_pass=true iso-scan/filename=$isofile
    initrd $initrdfile
}

私のUSBドライブはで/dev/sda5フォーマットされています。したがって、問題はファイルシステムの種類が原因であるようです。それでは、NTFSパーティションからDebian isoファイルを正しく起動する方法は?NTFSFAT32

修正する

NTFSパーティションは論理パーティションです。それも問題を引き起こしますか?

答え1

initrd.gz以下からダウンロードする必要があります。HDメディアカタログそして、画像ファイルと同じディレクトリに入れて、適切な名前を付けてください。たとえば、grub.cfg

menuentry 'Debian Jessie (stable) graphical expert' {
    set isofile='/iso/debian-8.3.0-amd64-lxde-CD-1.iso'
    set initrdfile='/iso/gtk/debian-8.3.0-amd64-lxde-CD-1.initrd.gz'
    loopback loop $isofile
    linux (loop)/install.amd/vmlinuz findiso=$isofile dekstop=lxde priority=low     gfxpayload=1024x768x32
    initrd $initrdfile
}

Redditで解決策を見つけました。ここ

答え2

あなたはダウンロードする必要がありますHDメディア/vmlinuzそしてHDメディア/initrd.gzそしてそれぞれLinuxカーネルと初期RAMディスクとして使用します。使用できません仮想デバイスそして初期化ファイル gzDebian ISO イメージ内にあります。 Debian ISOイメージはインストーラに必要なCDです。

私のブログの詳細なガイドは次のとおりです。https://www.linuxbabe.com/debian/boot-debian-9-iso-from-hard-drive-grub2

答え3

Debian 8(jessie)の場合、isoイメージを見つけるには他のオプションが必要です(指定したオプションはUbuntuに有効です)。

次のように grub エントリを変更します。

linux (loop)/install.amd/vmlinuz findiso=$isofile

関連情報