I have fedora 26 already installed on a 1tb hard disk which is currently using less than 100gb, and I would like to convert the hard disk to a dual boot with 300 gb allocated to Windows 7. I am comfortable using parted in a bash terminal, but I have never used the parted (resize) command. I already have my data backed up, and I have both a Fedora26 Live (installation) flashdrive and a separate Windows 7 installation flashdrive. I can boot with either flashdrive during a cold boot of my pc, via the F12 key. Shown below are the generic steps that I intend to take, followed by my questions. I request help with these questions.
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?