Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp partition error during installation #689

Closed
kcpatricio opened this issue Jan 7, 2021 · 5 comments
Closed

esp partition error during installation #689

kcpatricio opened this issue Jan 7, 2021 · 5 comments

Comments

@kcpatricio
Copy link

Getting a missing file/folder error during install

versions

Ubuntu 20.10 // 5.8.0-34-generic
Ventoy: 1.0.32  x86_64

bash report (either -i or -I)

$ sudo ./Ventoy2Disk.sh -i /dev/sdc

**********************************************
      Ventoy: 1.0.32  x86_64
      longpanda admin@ventoy.net
      https://www.ventoy.net
**********************************************

Disk : /dev/sdc
Modelo: Generic Flash Disk (scsi)
Size : 31 GB
Style: MBR


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 MBR style ...
Done
mkfs on disk partitions ...
create efi fat fs /dev/sdc2 ...
mkfs.fat 4.1 (2017-01-24)
success
mkexfatfs 1.3.0
Creating... done.
Flushing... done.
File system created successfully.
writing data to disk ...
sync data ...
esp partition processing ...
mv: não foi possível obter estado de './tmp_mnt/EFI/BOOT/grubx64_real.efi': Arquivo ou diretório inexistente
mv: não foi possível obter estado de './tmp_mnt/EFI/BOOT/grubia32_real.efi': Arquivo ou diretório inexistente

Install Ventoy to /dev/sdc successfully finished.

log.txt

############# Ventoy2Disk -i /dev/sdc [x86_64] ################
qua 06 jan 2021 20:31:04 -03
root permission check ok ...
MODE=install FORCE= RESERVE_SPACE= RESERVE_SIZE_MB=0
hexdump test ok ...
mkexfatfs test ok ...
vtoyfat test ok ...
tool check success ...
check tool work ok
install ventoy ...
format_ventoy_disk_mbr 0 /dev/sdc parted ...
part1_start_sector=2048  part1_end_sector=65470463
part2_start_sector=65470464  part2_end_sector=65535999
format disk by parted ...
test uuid: 00000000  c6 df 08 72 9c f3 49 37  80 9f 8f 7e 92 d5 a5 53  |...r..I7...~...S|
00000010
mounting part2 ....
mounting part2 success
umount part2 success

checksums checked
files deleted and re-extracted

@ventoy
Copy link
Owner

ventoy commented Jan 7, 2021

Does 1.0.31 or 1.0.30 have same issue?

@kcpatricio
Copy link
Author

kcpatricio commented Jan 7, 2021

Does 1.0.31 or 1.0.30 have same issue?

same error on both versions
even though it says that was successfully finished, it does not boot and -l flag returns "Ventoy Version: NA"

@ventoy
Copy link
Owner

ventoy commented Jan 8, 2021

Can you test another USB stick? I doubt that your USB stick has some problem.
You can do test as follows:

  1. Use Ventoy-1.0.32, there is a ventoy/ventoy.disk.img.xz file

  2. xz -d ventoy.disk.img.xz you will get ventoy.disk.img This file is 33554432 bytes (32MB) and has a md5sum: 6ec2819546cc738228e1696916f3f92c

  3. dd if=ventoy.disk.img of=/dev/sdc conv=fsync bs=512 count=65536 seek=65470464
    That's we write the ventoy.disk.img file to the bottom 32MB of the USB stick.

  4. dd if=/dev/sdc of=dump.img bs=512 count=65536 skip=65470464
    That's we just dump the data from the bottom 32MB of the USB stick to a file.
    After that, md5sum dump.img to see whether it is 6ec2819546cc738228e1696916f3f92c

That's to say we write some data to the USB stick and then read the data back. And check that whether the data is match.
If not match, maybe your USB stick has some problem.

@kcpatricio
Copy link
Author

Turns out the usb stick has some defective sectors
I'm running a scan to see how big it is
Thanks for support

@ventoy
Copy link
Owner

ventoy commented Jan 9, 2021

OK. I will close the issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants