Skip to content

Instantly share code, notes, and snippets.

@gusenov
Last active January 30, 2022 17:10
Show Gist options
  • Save gusenov/7e04dc229416a352a59cd05a2c2d1443 to your computer and use it in GitHub Desktop.
Save gusenov/7e04dc229416a352a59cd05a2c2d1443 to your computer and use it in GitHub Desktop.
sudo ./Ventoy2Disk.sh -I -s -g -r 1430772 -L HDD-exFAT /dev/sdc
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en-US' lang='en-US'>
<head>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8' />
<title>GParted Details</title>
<style type='text/css'>
table {border:0}
th {text-align:left}
.number_col {text-align:right}
</style>
</head>
<body>
<p>GParted 1.0.0</p>
<p>configuration --enable-libparted-dmraid --enable-online-resize</p>
<p>libparted 3.3</p>
<p>========================================</p>
<table>
<tr><th>Device:</th><td>/dev/sda</td></tr>
<tr><th>Model:</th><td>ATA ST9500325AS</td></tr>
<tr><th>Serial:</th><td>6VE61AQ6</td></tr>
<tr><th>Sector size:</th><td>512</td></tr>
<tr><th>Total sectors:</th><td>976773168</td></tr>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr><th>Heads:</th><td>255</td></tr>
<tr><th>Sectors/track:</th><td>2</td></tr>
<tr><th>Cylinders:</th><td>1915241</td></tr>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr><th>Partition table:</th><td>msdos</td></tr>
<tr><td colspan='2'>&nbsp;</td></tr>
</table>
<table>
<tr><th>Partition</th><th>Type</th><th class='number_col'>Start</th><th class='number_col'>End</th><th>Flags</th><th>Partition Name</th><th>File System</th><th>Label</th><th>Mount Point</th></tr>
<tr><td>/dev/sda1</td><td>Primary</td><td class='number_col'>2048</td><td class='number_col'>976773119</td><td></td><td></td><td>exfat</td><td>Backup</td><td></td></tr>
</table>
<p>========================================</p>
<table>
<tr><th>Device:</th><td>/dev/sdb</td></tr>
<tr><th>Model:</th><td>ATA KINGSTON SUV400S</td></tr>
<tr><th>Serial:</th><td>50026B726801DB7E</td></tr>
<tr><th>Sector size:</th><td>512</td></tr>
<tr><th>Total sectors:</th><td>234441648</td></tr>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr><th>Heads:</th><td>255</td></tr>
<tr><th>Sectors/track:</th><td>2</td></tr>
<tr><th>Cylinders:</th><td>459689</td></tr>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr><th>Partition table:</th><td>gpt</td></tr>
<tr><td colspan='2'>&nbsp;</td></tr>
</table>
<table>
<tr><th>Partition</th><th>Type</th><th class='number_col'>Start</th><th class='number_col'>End</th><th>Flags</th><th>Partition Name</th><th>File System</th><th>Label</th><th>Mount Point</th></tr>
<tr><td>/dev/sdb1</td><td>Primary</td><td class='number_col'>2048</td><td class='number_col'>1050623</td><td>boot, esp</td><td>EFI System Partition</td><td>fat32</td><td></td><td>/boot/efi</td></tr>
<tr><td>/dev/sdb2</td><td>Primary</td><td class='number_col'>1050624</td><td class='number_col'>234440703</td><td></td><td></td><td>ext4</td><td></td><td>/</td></tr>
</table>
<p>========================================</p>
<table>
<tr><th>Device:</th><td>/dev/sdc</td></tr>
<tr><th>Model:</th><td>StoreJet Transcend</td></tr>
<tr><th>Serial:</th><td>WD-WX41EB904Z6H</td></tr>
<tr><th>Sector size:</th><td>512</td></tr>
<tr><th>Total sectors:</th><td>3907029168</td></tr>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr><th>Heads:</th><td>255</td></tr>
<tr><th>Sectors/track:</th><td>2</td></tr>
<tr><th>Cylinders:</th><td>7660841</td></tr>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr><th>Partition table:</th><td>gpt</td></tr>
<tr><td colspan='2'>&nbsp;</td></tr>
</table>
<table>
<tr><th>Partition</th><th>Type</th><th class='number_col'>Start</th><th class='number_col'>End</th><th>Flags</th><th>Partition Name</th><th>File System</th><th>Label</th><th>Mount Point</th></tr>
<tr><td>/dev/sdc1</td><td>Primary</td><td class='number_col'>2048</td><td class='number_col'>976742535</td><td>msftdata</td><td>Ventoy</td><td>exfat</td><td>HDD-exFAT</td><td></td></tr>
<tr><td>/dev/sdc2</td><td>Primary</td><td class='number_col'>976742536</td><td class='number_col'>976808071</td><td>hidden, msftdata</td><td>VTOYEFI</td><td>fat16</td><td>VTOYEFI</td><td></td></tr>
</table>
<p>========================================</p>
<table>
<tr>
<td colspan='2'>
<b>Create Primary Partition #1 (ntfs, 465.75 GiB) on /dev/sdc</b>&nbsp;&nbsp;00:00:08&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
create empty partition&nbsp;&nbsp;00:00:02&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
<i>path: /dev/sdc3 (partition)<br />start: 976809984<br />end: 1953550335<br />size: 976740352 (465.75 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
clear old file system signatures in /dev/sdc3&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
write 512.00 KiB of zeros at byte offset 0&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 4.00 KiB of zeros at byte offset 67108864&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 4.00 KiB of zeros at byte offset 274877906944&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 512.00 KiB of zeros at byte offset 500090535936&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 4.00 KiB of zeros at byte offset 500090994688&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 8.00 KiB of zeros at byte offset 500091052032&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
flush operating system cache of /dev/sdc&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
set partition type on /dev/sdc3&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
<i>new partition type: ntfs</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
create new ntfs file system&nbsp;&nbsp;00:00:05&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
<b><i>mkntfs -Q -v -F -L &apos;HDD-NTFS&apos; &apos;/dev/sdc3&apos;</i></b>&nbsp;&nbsp;00:00:05&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
<i>Cluster size has been automatically set to 4096 bytes.<br />Creating NTFS volume structures.<br />Creating root directory (mft record 5)<br />Creating $MFT (mft record 0)<br />Creating $MFTMirr (mft record 1)<br />Creating $LogFile (mft record 2)<br />Creating $AttrDef (mft record 4)<br />Creating $Bitmap (mft record 6)<br />Creating $Boot (mft record 7)<br />Creating backup boot sector.<br />Creating $Volume (mft record 3)<br />Creating $BadClus (mft record 8)<br />Creating $Secure (mft record 9)<br />Creating $UpCase (mft record 0xa)<br />Creating $Extend (mft record 11)<br />Creating system file (mft record 0xc)<br />Creating system file (mft record 0xd)<br />Creating system file (mft record 0xe)<br />Creating system file (mft record 0xf)<br />Creating $Quota (mft record 24)<br />Creating $ObjId (mft record 25)<br />Creating $Reparse (mft record 26)<br />Syncing root directory index record.<br />Syncing $Bitmap.<br />Syncing $MFT.<br />Updating $MFTMirr.<br />Syncing device.<br />mkntfs completed successfully. Have a nice day.<br /></i>
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
<i></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>========================================</p>
<table>
<tr>
<td colspan='2'>
<b>Create Primary Partition #2 (ext4, 465.75 GiB) on /dev/sdc</b>&nbsp;&nbsp;00:00:49&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
create empty partition&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
<i>path: /dev/sdc4 (partition)<br />start: 1953550336<br />end: 2930290687<br />size: 976740352 (465.75 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
clear old file system signatures in /dev/sdc4&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
write 512.00 KiB of zeros at byte offset 0&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 4.00 KiB of zeros at byte offset 67108864&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 4.00 KiB of zeros at byte offset 274877906944&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 512.00 KiB of zeros at byte offset 500090535936&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 4.00 KiB of zeros at byte offset 500090994688&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 8.00 KiB of zeros at byte offset 500091052032&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
flush operating system cache of /dev/sdc&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
set partition type on /dev/sdc4&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
<i>new partition type: ext4</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
create new ext4 file system&nbsp;&nbsp;00:00:46&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
<b><i>mkfs.ext4 -F -O ^64bit -L &apos;HDD-Ext4&apos; &apos;/dev/sdc4&apos;</i></b>&nbsp;&nbsp;00:00:46&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
<i>64-bit filesystem support is not enabled. The larger fields afforded by this feature enable full-strength checksumming. Pass -O 64bit to rectify.<br />Creating filesystem with 122092544 4k blocks and 30523392 inodes<br />Filesystem UUID: f444f5ab-db2e-459b-ae04-c8ad10ce4868<br />Superblock backups stored on blocks: <br /> 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, <br /> 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, <br /> 102400000<br /><br />Allocating group tables: done <br />Writing inode tables: done <br />Creating journal (262144 blocks): done<br />Writing superblocks and filesystem accounting information: done <br /><br /></i>
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
<i>mke2fs 1.45.5 (07-Jan-2020)<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>========================================</p>
<table>
<tr>
<td colspan='2'>
<b>Create Primary Partition #3 (hfs+, 465.75 GiB) on /dev/sdc</b>&nbsp;&nbsp;00:00:07&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
create empty partition&nbsp;&nbsp;00:00:02&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
<i>path: /dev/sdc5 (partition)<br />start: 2930290688<br />end: 3907028991<br />size: 976738304 (465.75 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
clear old file system signatures in /dev/sdc5&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
write 512.00 KiB of zeros at byte offset 0&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 4.00 KiB of zeros at byte offset 67108864&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 4.00 KiB of zeros at byte offset 274877906944&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 512.00 KiB of zeros at byte offset 500089487360&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 4.00 KiB of zeros at byte offset 500089946112&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
write 8.00 KiB of zeros at byte offset 500090003456&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
flush operating system cache of /dev/sdc&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
set partition type on /dev/sdc5&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
<i>new partition type: hfs+</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
create new hfs+ file system&nbsp;&nbsp;00:00:03&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
<b><i>mkfs.hfsplus -v &apos;HDD-HFS+&apos; &apos;/dev/sdc5&apos;</i></b>&nbsp;&nbsp;00:00:03&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table>
<tr>
<td colspan='2'>
<i>Initialized /dev/sdc5 as a 466 GB HFS Plus volume<br /></i>
</td>
</tr>
</table>
<table>
<tr>
<td colspan='2'>
<i></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
**********************************************
Ventoy: 1.0.64 x86_64
longpanda admin@ventoy.net
https://www.ventoy.net
**********************************************
Disk : /dev/sdc
Model: StoreJet Transcend (scsi)
Size : 1863 GB
Style: GPT
You will reserve 1430772 MB disk space
Attention:
You will install Ventoy to /dev/sdc.
All the data on the disk /dev/sdc will be lost!!!
Continue? (y/n) y
All the data on the disk /dev/sdc will be lost!!!
Double-check. Continue? (y/n) y
Create partitions on /dev/sdc by parted in GPT style ...
Done
Wait for partitions ...
partition exist OK
create efi fat fs /dev/sdc2 ...
mkfs.fat 4.1 (2017-01-24)
success
Wait for partitions ...
Wait for /dev/sdc1//dev/sdc2 ...
/dev/sdc1 exist OK
/dev/sdc2 exist OK
partition exist OK
Format partition 1 /dev/sdc1 ...
mkexfatfs 1.3.0
Creating... done.
Flushing... done.
File system created successfully.
mkexfatfs success
writing data to disk ...
sync data ...
esp partition processing ...
Install Ventoy to /dev/sdc successfully finished.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment