デュアルブートFedora 26(インストール済み)とWindows 7

デュアルブートFedora 26(インストール済み)とWindows 7

現在、100GB未満を使用している1TBハードドライブにfedora 26をインストールしていますが、ハードドライブをデュアルブートに変換してWindows 7に300GBを割り当てたいと思います。私はbash端末で parted を使いたいのですが、 parted コマンドを使ったことはありません。データをバックアップし、Fedora26 Live(インストール)フラッシュドライブとは別のWindows 7インストールフラッシュドライブがあります。コンピュータのコールドブート中に、F12キーを介してフラッシュドライブの1つから起動できます。以下に、私が取ろうとしている一般的な手順と質問を示します。これらの問題を解決するために助けを求めます。

スピード

 1. Boot from the Fedora 26 Live installation, leaving the 1tb hard disk 
    unmounted.

 2. Within Fedora 26 Live, use lsblk to determine the device name given to the 
    1tb partition.  Then use parted in a bash terminal to resize this partition.
    Shown below is the parted (print) output of the 1tb partition.

    (parted) print                                                            
    Model: ATA WDC WD10EZEX-00W (scsi)
    Disk /dev/sda: 1000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: msdos
    Disk Flags: 

    Number  Start   End     Size    Type     File system  Flags
     1      1049kB  1075MB  1074MB  primary  ext4         boot
     2      1075MB  1000GB  999GB   primary               lvm

    Assuming that lsblk indicates that the 1tb partition is assigned to 
    /dev/sdb, I plan to execute the following in a bash terminal

    sudo parted /dev/sdb
    < RESIZE COMMAND GOES HERE >
    quit

 3. Still within Fedora 26 Live, quit parted, re-execute lsblk, and then use
    parted on the 300 gb remaining to create a Windows 7 partition.  Assuming   
    that lsblk now indicates that the 300 gb is assigned to /dev/sdc, I
    will then execute the following in a bash terminal:

    sudo parted /dev/sdc
    mklabel msdos
    mkpart primary ntfs 1MiB 100%
    quit

 4. Power off and then cold boot with the Windows 7 installation flashdrive.
    During the installation, select the 300gb (unformatted) partition.

 5. SOMEHOW, install grub on the 1tb hard disk.  My intention is that when I
    hit F12 during a cold boot and select the 1tb hard disk, grub will then 
    present the option to boot into either Fedora 26 or Windows 7.

質問

a.  Are these the right steps to take, in the right order?

b.  In step 2 above, what is the syntax needed for the resize command?

c.  How do I install and configure grub on the 1tb hard disk?

d.  Should I expect the (now 700gb) Fedora 26 environment to be unaffected, 
    except for the reduced space?

e.  (Slightly off topic) Does the 300gb partition need to be pre-formatted, or 
    flagged as bootable, or will the Windows 7 installation flashdrive handle
    this?

ベストアンサー1

ㅏ。複雑ですが、私が言及したい問題を除いてはうまくいくと思います。

resizepart。これは対話型コマンドです。パーティション番号と新しいサイズを指定するだけです。しかし、私は自分gpartedよりも使うことを好みますparted

氏。ライブブート Fedoraでrootとして実行

grub2-install /dev/sda

または、必要に応じて置き換えること/dev/sdaができますが、自分で試したことがないので、責任は自分にあります。/dev/sda1/dev/sda1

d。gpartedうまくいけば、これを行う必要があります。理論上は可能でしょpartedうが、resizepart自分で試したことはありません。

e.フォーマットしないままにしておくことができ、起動可能としてマークする必要はありません。

ステップ5の説明に追加:grubメニューは自動的に更新されないため、grub2-mkconfig > /boot/grub2/grub.cfgメニューを更新するには実行する必要があります。

しかし、私の経験によれば、WindowsがMBRを上書きしてgrub2-install素晴らしいグルーブメニューを復元するには、コマンドを呼び出す必要があるかもしれません。

免責事項:これは私の個人的な経験に基づいています。私はこのプロセスを何度も経験しましたが、これがあなたの場合にそれ以上の問題を引き起こさないという保証はありません。

おすすめ記事