mirror of
https://github.com/ValdikSS/windows2usb.git
synced 2023-08-10 21:13:16 +03:00
Make mode optional and assume MBR by default
This commit is contained in:
parent
1786bd582d
commit
00d4a7ea5a
10
README.md
10
README.md
@ -17,9 +17,9 @@ Features:
|
|||||||
Windows 7/8/8.1/10/11 ISO to Flash Drive burning utility
|
Windows 7/8/8.1/10/11 ISO to Flash Drive burning utility
|
||||||
WARNING: this program will delete all existing data on your drive!
|
WARNING: this program will delete all existing data on your drive!
|
||||||
|
|
||||||
windows2usb <device> <windows iso> <mbr/gpt/gptntfs/gpt+uefintfs>
|
windows2usb <device> <windows iso> [mbr/gpt/gptntfs/gpt+uefintfs]
|
||||||
|
|
||||||
mbr mode: the most universal, RECOMMENDED method.
|
mbr mode: the most universal, RECOMMENDED and DEFAULT method.
|
||||||
This mode creates MBR partition table with FAT32 partition,
|
This mode creates MBR partition table with FAT32 partition,
|
||||||
installs BIOS and UEFI bootloaders, supports Secure Boot.
|
installs BIOS and UEFI bootloaders, supports Secure Boot.
|
||||||
install.wim file larger than 4 GiB will be split.
|
install.wim file larger than 4 GiB will be split.
|
||||||
@ -44,7 +44,11 @@ gpt+uefintfs mode: alternative hacky installation method, not recommended.
|
|||||||
|
|
||||||
Download latest [portable AppImage version](https://github.com/ValdikSS/windows2usb/releases) from the **Releases** page, set *execution bit* (`chmod +x windows2usb-*.AppImage`) and run it from the terminal.
|
Download latest [portable AppImage version](https://github.com/ValdikSS/windows2usb/releases) from the **Releases** page, set *execution bit* (`chmod +x windows2usb-*.AppImage`) and run it from the terminal.
|
||||||
|
|
||||||
`windows2usb <device> <windows iso> <mbr/gpt/gptntfs/gpt+uefintfs>"`
|
`windows2usb <device> <windows iso>`
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
`./windows2usb.AppImage /dev/sdz /home/valdikss/windows10.iso`
|
||||||
|
|
||||||
The program prints removable storage list if no arguments are supplied.
|
The program prints removable storage list if no arguments are supplied.
|
||||||
|
|
||||||
|
@ -172,14 +172,14 @@ function sigint_handler() {
|
|||||||
umount_rm_path "$partpath" "$isomountpath"
|
umount_rm_path "$partpath" "$isomountpath"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ ! "$3" ]];
|
if [[ ! "$2" ]];
|
||||||
then
|
then
|
||||||
echo "${bold}Windows 7/8/8.1/10/11 ISO to Flash Drive burning utility"
|
echo "${bold}Windows 7/8/8.1/10/11 ISO to Flash Drive burning utility"
|
||||||
echo "WARNING: this program will delete all existing data on your drive!${normal}"
|
echo "WARNING: this program will delete all existing data on your drive!${normal}"
|
||||||
echo
|
echo
|
||||||
echo "$(basename "$0")" "<device> <windows iso> <mbr/gpt/gptntfs/gpt+uefintfs>"
|
echo "$(basename "$0")" "<device> <windows iso> [mbr/gpt/gptntfs/gpt+uefintfs]"
|
||||||
echo
|
echo
|
||||||
echo "mbr mode: the most universal, RECOMMENDED method."
|
echo "mbr mode: the most universal, RECOMMENDED and DEFAULT method."
|
||||||
echo " This mode creates MBR partition table with FAT32 partition,"
|
echo " This mode creates MBR partition table with FAT32 partition,"
|
||||||
echo " installs BIOS and UEFI bootloaders, supports Secure Boot."
|
echo " installs BIOS and UEFI bootloaders, supports Secure Boot."
|
||||||
echo " install.wim file larger than 4 GiB will be split."
|
echo " install.wim file larger than 4 GiB will be split."
|
||||||
@ -211,6 +211,7 @@ then
|
|||||||
isopath="$2"
|
isopath="$2"
|
||||||
isolabel=""
|
isolabel=""
|
||||||
labeltype="$3"
|
labeltype="$3"
|
||||||
|
[[ ! "$labeltype" ]] && labeltype="mbr"
|
||||||
mountntfs_cmd="mount.ntfs-3g"
|
mountntfs_cmd="mount.ntfs-3g"
|
||||||
if ! command -v "$mountntfs_cmd" > /dev/null;
|
if ! command -v "$mountntfs_cmd" > /dev/null;
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user