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

[issue]: Unable to install Ventoy on a RAID-0 device. #2846

Closed
1 task done
tamdaz opened this issue May 23, 2024 · 2 comments
Closed
1 task done

[issue]: Unable to install Ventoy on a RAID-0 device. #2846

tamdaz opened this issue May 23, 2024 · 2 comments
Labels
Fixed This issue has been fixed

Comments

@tamdaz
Copy link
Contributor

tamdaz commented May 23, 2024

Official FAQ

  • I have checked the official FAQ.

Ventoy Version

1.0.98

What about latest release

Yes. I have tried the latest release, but the bug still exist.

Try alternative boot mode

No. I didn't try these alternative boot modes.

BIOS Mode

UEFI Mode

Partition Style

MBR

Disk Capacity

256GB (128GB * 2)

Disk Manufacturer

Silicon Motion

Image file checksum (if applicable)

Yes.

Image file download link (if applicable)

https://sourceforge.net/projects/ventoy/files/v1.0.98/ventoy-1.0.98-linux.tar.gz/download

What happened?

When I try to install Ventoy on the /dev/md0 device which uses the MBR partition table, the script did not indicate the letter 'p' to designate the partition number for RAID-0 (for example: /dev/md0p1, /dev/md0p2).
This problem also occurs in the GPT partition table.

For information: the /dev/md0 device contains 2 USB flash drives, each with 128 GB capacity storage; this allows to improve read/write speed and test the Ventoy installation on these two USB sticks using RAID-0.

LANG=C sudo ./Ventoy2Disk.sh -i /dev/md0

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

Disk : /dev/md0
Model: Linux Software RAID Array (md)
Size : 239 GB
Style: MBR

Attention:
You will install Ventoy to /dev/md0.
All the data on the disk /dev/md0 will be lost!!!

Continue? (y/n) y

All the data on the disk /dev/md0 will be lost!!!
Double-check. Continue? (y/n) y

Create partitions on /dev/md0 by parted in MBR style ...
Done
Wait for partitions ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
sed: can't read /sys/class/block/md01/dev: No such file or directory
mknod -m 0660 /dev/md01 b  ...
mknod: missing operand after 'b'
Special files require major and minor device numbers.
Try 'mknod --help' for more information.
sed: can't read /sys/class/block/md02/dev: No such file or directory
mknod -m 0660 /dev/md02 b  ...
mknod: missing operand after 'b'
Special files require major and minor device numbers.
Try 'mknod --help' for more information.
[FAIL] /dev/md01//dev/md02 does not exist
LANG=C sudo ./Ventoy2Disk.sh -i /dev/md0 -g

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

Disk : /dev/md0
Model: Linux Software RAID Array (md)
Size : 239 GB
Style: GPT

Attention:
You will install Ventoy to /dev/md0.
All the data on the disk /dev/md0 will be lost!!!

Continue? (y/n) y

All the data on the disk /dev/md0 will be lost!!!
Double-check. Continue? (y/n) y

Create partitions on /dev/md0 by parted in GPT style ...
Done
Wait for partitions ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
Wait for /dev/md01//dev/md02 ...
sed: can't read /sys/class/block/md01/dev: No such file or directory
mknod -m 0660 /dev/md01 b  ...
mknod: missing operand after 'b'
Special files require major and minor device numbers.
Try 'mknod --help' for more information.
sed: can't read /sys/class/block/md02/dev: No such file or directory
mknod -m 0660 /dev/md02 b  ...
mknod: missing operand after 'b'
Special files require major and minor device numbers.
Try 'mknod --help' for more information.
[FAIL] /dev/md01//dev/md02 does not exist
@tamdaz tamdaz changed the title [issue]: Unable to install Ventoy on a RAID device. [issue]: Unable to install Ventoy on a RAID-0 device. May 23, 2024
@ventoy
Copy link
Owner

ventoy commented May 24, 2024

Try this CI release: https://github.com/ventoy/Ventoy/actions/runs/9207193439
https://www.ventoy.net/en/doc_github_ci.html

@tamdaz
Copy link
Contributor Author

tamdaz commented May 24, 2024

Results

This CI release has successfully installed 2 partitions, with MBR and GPT partition tables.

MBR

sudo ./Ventoy2Disk.sh -i /dev/md0   

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

Disk : /dev/md0
Model: Linux Software RAID Array (md)
Size : 31 GB
Style: MBR


Attention:
You will install Ventoy to /dev/md0.
All the data on the disk /dev/md0 will be lost!!!

Continue? (y/n) y

All the data on the disk /dev/md0 will be lost!!!
Double-check. Continue? (y/n) y

Create partitions on /dev/md0 by parted in MBR style ...
Done
Wait for partitions ...
partition exist OK
create efi fat fs /dev/md0p2 ...
mkfs.fat 4.2 (2021-01-31)
success
Wait for partitions $vPART1 and $vPART2 ...
/dev/md0p1 exist OK
/dev/md0p2 exist OK
partition exist OK
Format partition 1 /dev/md0p1 ...
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/md0 successfully finished.

image

GPT

sudo ./Ventoy2Disk.sh -i /dev/md0 -g

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

Disk : /dev/md0
Model: Linux Software RAID Array (md)
Size : 31 GB
Style: GPT


Attention:
You will install Ventoy to /dev/md0.
All the data on the disk /dev/md0 will be lost!!!

Continue? (y/n) y

All the data on the disk /dev/md0 will be lost!!!
Double-check. Continue? (y/n) y

Create partitions on /dev/md0 by parted in GPT style ...
Done
Wait for partitions ...
partition exist OK
create efi fat fs /dev/md0p2 ...
mkfs.fat 4.2 (2021-01-31)
success
Wait for partitions $vPART1 and $vPART2 ...
/dev/md0p1 exist OK
/dev/md0p2 exist OK
partition exist OK
Format partition 1 /dev/md0p1 ...
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/md0 successfully finished.

image

@ventoy ventoy added the Fixed This issue has been fixed label May 25, 2024
@tamdaz tamdaz closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed This issue has been fixed
Projects
None yet
Development

No branches or pull requests

2 participants