ventoy / Ventoy

A new bootable USB solution.
https://www.ventoy.net
GNU General Public License v3.0
62.95k stars 4.1k forks source link

ventoy file manager #772

Closed nguyenhathaitrong closed 3 years ago

nguyenhathaitrong commented 3 years ago

https://user-images.githubusercontent.com/71330863/109410907-e52ca980-79d0-11eb-986c-0cd4cfe0c57f.mp4

contact nguyenhathaitrong@gmail.com

ventoy commented 3 years ago

I have no plan to develop ventoy file manager. Ventoy was designed to work with its disk layout from the beginning. So all the source files and script files don't support for boot ISO files in other disk. Maybe some iso files can boot fine, but definitely most other iso files can not boot fine. Too many places in the source code are hard coded with the disk partition layout. So there are too many places in the .c .h .sh need to modify to make Ventoy to support boot ISO files in other disks.

It's not very hard to make a grub2 menu system for the disks and partitions. But it's huge workload to make ventoy work in such mode.

nguyenhathaitrong commented 3 years ago

Do you have a way to ventoy not to search for iso, wim, img, vdi ... in the subdirectory? Because when ventoy searches in a subdirectory it slows down and crashes.

On Sun, Feb 28, 2021 at 7:29 PM longpanda notifications@github.com wrote:

I have no plan to develop ventoy file manager. Ventoy was designed to work with its disk layout from the beginning. So all the source files and script files don't support for boot ISO files in other disk. Maybe some iso files can boot fine, but definitely most other iso files can not boot fine. Too many places in the source code are hard coded with the disk partition layout. So there are too many places in the .c .h .sh need to modify to make Ventoy to support boot ISO files in other disks.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ventoy/Ventoy/issues/772#issuecomment-787444657, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAGYL6NYHGS3L6ZBBRABGLTBIZJLANCNFSM4YKY32JA .

ventoy commented 3 years ago

A global option is WIP to control the max depth when search files. Currenty, you can use these workaround:

  1. You can put all your files in a directory and tell Ventoy to only search files in the directory and sub-directories.
  2. If you don't have too many subdirectories you can put a .vtoyignore in the subdirectory. When ventoy detect this file, it will skip this directory and all its subdirectories.
nguyenhathaitrong commented 3 years ago

Thanks. ventoy can completely boot iso, img, wim, vdi, vhd ... from anywhere, I use code set vtoy_iso_part = ..... to change the partition containing iso, wim and boot ok. If you combine the code with aioboot's grubfm.cfg or filemanager.cfg, then winpe.iso or windows.iso files will boot well, and linux.iso must copy them to the first partition of hdd / usb then boot ok. Search in a subdirectory and ventoy becomes a multiboot file manager.

On Mon, Mar 1, 2021 at 7:41 PM longpanda notifications@github.com wrote:

A global option is WIP to control the max depth when search files. Currenty, you can use these workaround:

  1. You can put all your files in a directory and tell Ventoy to only search files in the directory and sub-directories.
  2. If you don't have too many subdirectories you can put a .vtoyignore in the subdirectory. When ventoy detect this file, it will skip this directory and all its subdirectories.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ventoy/Ventoy/issues/772#issuecomment-787919480, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAGYLYPZYWP3FWRIVJEPMTTBODO5ANCNFSM4YKY32JA .

nguyenhathaitrong commented 3 years ago

Here are the code files added to ventoy's grub.cfg and my vhd file ventoy1035.vhd https://drive.google.com/file/d/1wnS336utA9nc2TmNefzteDa2q7LgUxn6/view?usp=drive_web ventoyaioboot.vhd https://drive.google.com/file/d/10BlJMweYFdpDkUpT-8oY-EheywZqlvOy/view?usp=drive_web

On Mon, Mar 1, 2021 at 9:01 PM Trong Nguyen nguyenhathaitrong@gmail.com wrote:

Thanks. ventoy can completely boot iso, img, wim, vdi, vhd ... from anywhere, I use code set vtoy_iso_part = ..... to change the partition containing iso, wim and boot ok. If you combine the code with aioboot's grubfm.cfg or filemanager.cfg, then winpe.iso or windows.iso files will boot well, and linux.iso must copy them to the first partition of hdd / usb then boot ok. Search in a subdirectory and ventoy becomes a multiboot file manager.

On Mon, Mar 1, 2021 at 7:41 PM longpanda notifications@github.com wrote:

A global option is WIP to control the max depth when search files. Currenty, you can use these workaround:

  1. You can put all your files in a directory and tell Ventoy to only search files in the directory and sub-directories.
  2. If you don't have too many subdirectories you can put a .vtoyignore in the subdirectory. When ventoy detect this file, it will skip this directory and all its subdirectories.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ventoy/Ventoy/issues/772#issuecomment-787919480, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAGYLYPZYWP3FWRIVJEPMTTBODO5ANCNFSM4YKY32JA .

ventoy commented 3 years ago

Not as simple as you think. I known my code. Only modify vtoy_iso_part is not enough. Maybe WinPE or Linux LiveCD can boot fine. But many ISO files will failed to boot.

For example, the patch code for Linux Installer ISO (e.g. redhat/ubuntu...) need to wait for /dev/sdx2 as a flag to detect source medium. So if you put the iso file in a disk that only contains one partition, it will fail. grubfm's author A1ive did some try and give up finally. #117

ventoy commented 3 years ago

So Ventoy was designed and will focus on booting files inside the Ventoy disk. And I have no plan to make a Ventoy file manager.

Another recommanded way is just put the grubfm.iso in Ventoy's disk as a normal iso file. When you want to boot files in other disks, you can boot grubfm.iso firstly and then find and boot your files.

nguyenhathaitrong commented 3 years ago

Thanks for the tip!

On Mon, Mar 1, 2021 at 10:54 PM longpanda notifications@github.com wrote:

So Ventoy was designed and will focus on booting files inside the Ventoy disk. And I have no plan to make a Ventoy file manager.

Another recommanded way is just put the grubfm.iso in Ventoy's disk as a normal iso file. When you want to boot files in other disks, you can boot grubfm.iso firstly and then find and boot your files.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ventoy/Ventoy/issues/772#issuecomment-788057981, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAGYL4BHPQUFSCVKP5MIPTTBO2CRANCNFSM4YKY32JA .

nguyenhathaitrong commented 3 years ago

I tested with iso, wim, vhd, img files and it got win iso, wim, vhd, img files all ok, and with linux iso still forced to put iso file in the first partition of the drive. Dear LongPanda author this ventoyfm1036 version. venstoyfm1036.vhd https://drive.google.com/file/d/1J8AXdiNZj-MGxTOtIgMBKvWXtMx4JCto/view?usp=drive_web

On Thu, Mar 4, 2021 at 10:22 PM longpanda notifications@github.com wrote:

Closed #772 https://github.com/ventoy/Ventoy/issues/772.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ventoy/Ventoy/issues/772#event-4408673156, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAGYL6S5JVOIV7BX5O3VXTTB6QVFANCNFSM4YKY32JA .

candrapersada commented 3 years ago

Another recommanded way is just put the grubfm.iso in Ventoy's disk as a normal iso file. When you want to boot files in other disks, you can boot grubfm.iso firstly and then find and boot your files.

but grubfm.iso can't boot into vtoyboot