grub4dos 0.4.6a crashes when it 'sees' a certain partition structure #119

Closed
steve6375 opened this Issue Jun 19, 2016 · 33 comments

Comments

Projects
None yet
2 participants
@steve6375

I have had about 6 reports in a year now from different people. Boot from USB grub4dos drive to install linux to server - reboot to USB grub4dos drive - grub4dos goes 'crazy'.
Most of the reports have been when installing linux to a RAID server, so there have been a number of disks in an array, but the BIOS sees them as separate disks (hd1, hd2, hd2 etc).
When you then boot to grub4dos from a USB drive, when grub4dos tries to access the disks (e.g. find command or similar), it crashes/hangs/loses current disk, etc.
The symptom in E2B is that grub4dos cannot find an E2B.cfg file which is on the USB drive.
See one report https://www.netzgewitter.com/2016/06/easy2boot-e2b-cfg-is-missing/
If /grldr is replaced by a 0.4.5c version, it works fine.
This issue is very hard to replicate (I have not seen it myself), and re-tracing the steps (e.g. re-installing linux on the server) usually results in not seeing the issue again!
I suspect grub4dos is seeing a raw unformatted filesystem (maybe a swap partition?) and crashing but this is a guess!

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 13, 2016

Thanks to Norbert Harrer, we can now reproduce this problem.
Please download https://www.netzgewitter.com/files/public/E2BTest_VBox.zip
It contains a VirtualBox virtual machine.
If you boot to grub4dos 0.4.6a with the E2BTest.vdi loaded as disk 1 (and USB drive as disk 0), then if you boot to grub4dos and execute from command line...
geometry (hd1)
then grub4dos crashes!
There is no problem if you use grub4dos 0.4.5c

Norbert says that if he makes the partition smaller, then it is OK.

Right. I did some more tests beforehand though. I removed partitions one by one from the partition table. That lead to the fact that only the third partition caused the problem. The third partition is unfortunately the largest partition with about 930GB. So I created a new disk with a single small partition which contained only the troublesome beginning 64KB of the former third partition. Here I found out that the problem goes away when the partition is too small. I don't know the size limit though. The problem was showing up again, once I set the partition to the former size again.

I was now even able to reproduce the whole thing inside a VirtualBox VM. I created a sparse vdi of about 1TB. Since it's almost empty though, it only uses a couple MB on the host machine. Once E2B is booted with Virtual Machine USB Boot inside VirtualBox, the error message appears.

Here is a copy of the virtual machine (150KB compressed): https://www.netzgewitter.com/files/public/E2BTest_VBox.zip

And here are the MBR and the first 64KB of the partition (the drive in the VM already contains a disk with that data though):

MBR: https://www.netzgewitter.com/files/public/mbr_v4.bin
First 64K of partition: https://www.netzgewitter.com/files/public/part_start.bin

Thanks to Norbert Harrer, we can now reproduce this problem.
Please download https://www.netzgewitter.com/files/public/E2BTest_VBox.zip
It contains a VirtualBox virtual machine.
If you boot to grub4dos 0.4.6a with the E2BTest.vdi loaded as disk 1 (and USB drive as disk 0), then if you boot to grub4dos and execute from command line...
geometry (hd1)
then grub4dos crashes!
There is no problem if you use grub4dos 0.4.5c

Norbert says that if he makes the partition smaller, then it is OK.

Right. I did some more tests beforehand though. I removed partitions one by one from the partition table. That lead to the fact that only the third partition caused the problem. The third partition is unfortunately the largest partition with about 930GB. So I created a new disk with a single small partition which contained only the troublesome beginning 64KB of the former third partition. Here I found out that the problem goes away when the partition is too small. I don't know the size limit though. The problem was showing up again, once I set the partition to the former size again.

I was now even able to reproduce the whole thing inside a VirtualBox VM. I created a sparse vdi of about 1TB. Since it's almost empty though, it only uses a couple MB on the host machine. Once E2B is booted with Virtual Machine USB Boot inside VirtualBox, the error message appears.

Here is a copy of the virtual machine (150KB compressed): https://www.netzgewitter.com/files/public/E2BTest_VBox.zip

And here are the MBR and the first 64KB of the partition (the drive in the VM already contains a disk with that data though):

MBR: https://www.netzgewitter.com/files/public/mbr_v4.bin
First 64K of partition: https://www.netzgewitter.com/files/public/part_start.bin

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 13, 2016

image

The UP key no longer shows previous commands after executing geometry (hd1) command.
Also, batch files do not run.

steve6375 commented Jul 13, 2016

image

The UP key no longer shows previous commands after executing geometry (hd1) command.
Also, batch files do not run.

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 13, 2016

image
The command
if exist (hd1,0)/xxx.yyy echo ddd
also causes problems.
I think memory is being corrupted? Command stack is lost and batch files and .cfg files don't work properly after accessing disk 1.

image
The command
if exist (hd1,0)/xxx.yyy echo ddd
also causes problems.
I think memory is being corrupted? Command stack is lost and batch files and .cfg files don't work properly after accessing disk 1.

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 13, 2016

!BAT
# get larger screen
#graphicsmode -1 1024
debug 3
debug msg=3
ls /_ISO/e2b/grub/e2b.cfg
echo
echo 1
echo
geometry (hd1)
echo 2
ls /_ISO/e2b/grub/e2b.cfg
echo 3

image

If use graphicsmode -1 1024, then no text is visible after geometry command.

image

!BAT
# get larger screen
#graphicsmode -1 1024
debug 3
debug msg=3
ls /_ISO/e2b/grub/e2b.cfg
echo
echo 1
echo
geometry (hd1)
echo 2
ls /_ISO/e2b/grub/e2b.cfg
echo 3

image

If use graphicsmode -1 1024, then no text is visible after geometry command.

image

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 15, 2016

Are you able to reproduce the problem?

Are you able to reproduce the problem?

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 28, 2016

Collaborator

VirtualBox VMUBDrive000.vmdk failed to mount

Collaborator

yaya2007 commented Jul 28, 2016

VirtualBox VMUBDrive000.vmdk failed to mount

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 28, 2016

You must run VBox as Administrator - use VMUB application to run VBOX or use Run as Administrator

steve6375 commented Jul 28, 2016

You must run VBox as Administrator - use VMUB application to run VBOX or use Run as Administrator

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 28, 2016

Collaborator

Open the virtual disk file D:\E2BTest\VMUBDrive000.vmdk failed.
VMUBDrive000.vmdk.txt

Collaborator

yaya2007 commented Jul 28, 2016

Open the virtual disk file D:\E2BTest\VMUBDrive000.vmdk failed.
VMUBDrive000.vmdk.txt

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 28, 2016

You must install VMUB application
http://www.rmprepusb.com/tutorials/how-to-boot-from-usb-under-vmware-server#TOC-The-solution
https://github.com/DavidBrenner3/VMUB

Then run VMUB and Add a Vbox VM
Then run VMUB - Start
[image: Inline images 1]
image

Much faster that QEMU!

steve6375 commented Jul 28, 2016

You must install VMUB application
http://www.rmprepusb.com/tutorials/how-to-boot-from-usb-under-vmware-server#TOC-The-solution
https://github.com/DavidBrenner3/VMUB

Then run VMUB and Add a Vbox VM
Then run VMUB - Start
[image: Inline images 1]
image

Much faster that QEMU!

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 28, 2016

Collaborator

"Latest VMUB v1.6 Download from GitHub" need to compile their own?

Collaborator

yaya2007 commented Jul 28, 2016

"Latest VMUB v1.6 Download from GitHub" need to compile their own?

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 28, 2016

https://drive.google.com/open?id=0ByKxAD_t9uvLYUNadFFTdWJaeE0

Link at top of page --> download compiled version

On 28 July 2016 at 14:07, yaya2007 notifications@github.com wrote:

"Latest VMUB v1.6 Download from GitHub" need to compile their own?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpk5ECerxqfqG_RFqphf0iY8MsoVoks5qaKl9gaJpZM4I5Oym
.

https://drive.google.com/open?id=0ByKxAD_t9uvLYUNadFFTdWJaeE0

Link at top of page --> download compiled version

On 28 July 2016 at 14:07, yaya2007 notifications@github.com wrote:

"Latest VMUB v1.6 Download from GitHub" need to compile their own?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpk5ECerxqfqG_RFqphf0iY8MsoVoks5qaKl9gaJpZM4I5Oym
.

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 28, 2016

Collaborator

"x86_VMUB_INNO_script.iss" how to run?

Collaborator

yaya2007 commented Jul 28, 2016

"x86_VMUB_INNO_script.iss" how to run?

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 28, 2016

Just download the exe and install it
[image: Inline images 1]

https://drive.google.com/file/d/0ByKxAD_t9uvLYUNadFFTdWJaeE0/view

On 28 July 2016 at 14:22, yaya2007 notifications@github.com wrote:

"x86_VMUB_INNO_script.iss" how to run?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpnUouZZYkVWCTGMiu5WGuCB-fYmAks5qaKz5gaJpZM4I5Oym
.

Just download the exe and install it
[image: Inline images 1]

https://drive.google.com/file/d/0ByKxAD_t9uvLYUNadFFTdWJaeE0/view

On 28 July 2016 at 14:22, yaya2007 notifications@github.com wrote:

"x86_VMUB_INNO_script.iss" how to run?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpnUouZZYkVWCTGMiu5WGuCB-fYmAks5qaKz5gaJpZM4I5Oym
.

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 28, 2016

Collaborator

"google" cannot access

Collaborator

yaya2007 commented Jul 28, 2016

"google" cannot access

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 28, 2016

Can you access MS OneDrive?

On 28 July 2016 at 14:26, yaya2007 notifications@github.com wrote:

"google" cannot access


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpuAV1ikw_g46C5SpGqVynqWXVKIrks5qaK4dgaJpZM4I5Oym
.

Can you access MS OneDrive?

On 28 July 2016 at 14:26, yaya2007 notifications@github.com wrote:

"google" cannot access


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpuAV1ikw_g46C5SpGqVynqWXVKIrks5qaK4dgaJpZM4I5Oym
.

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 28, 2016

https://1drv.ms/u/s!AqlrQcdsFA-KmGeLP8zxpbsMUI0f

On 28 July 2016 at 14:26, yaya2007 notifications@github.com wrote:

"google" cannot access


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpuAV1ikw_g46C5SpGqVynqWXVKIrks5qaK4dgaJpZM4I5Oym
.

https://1drv.ms/u/s!AqlrQcdsFA-KmGeLP8zxpbsMUI0f

On 28 July 2016 at 14:26, yaya2007 notifications@github.com wrote:

"google" cannot access


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpuAV1ikw_g46C5SpGqVynqWXVKIrks5qaK4dgaJpZM4I5Oym
.

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 28, 2016

Collaborator

You can add the txt suffix to the file name, and then upload it to the table.

Collaborator

yaya2007 commented Jul 28, 2016

You can add the txt suffix to the file name, and then upload it to the table.

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 28, 2016

https://1drv.ms/t/s!AqlrQcdsFA-KmGgv0HqUqvUOYEp6

On 28 July 2016 at 14:42, yaya2007 notifications@github.com wrote:

"https://1drv.ms/u/s!AqlrQcdsFA-KmGeLP8zxpbsMUI0f" cannot access .


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpqcRWXZIOa3fROosFosdkx2sEtWjks5qaLGpgaJpZM4I5Oym
.

https://1drv.ms/t/s!AqlrQcdsFA-KmGgv0HqUqvUOYEp6

On 28 July 2016 at 14:42, yaya2007 notifications@github.com wrote:

"https://1drv.ms/u/s!AqlrQcdsFA-KmGeLP8zxpbsMUI0f" cannot access .


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpqcRWXZIOa3fROosFosdkx2sEtWjks5qaLGpgaJpZM4I5Oym
.

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 28, 2016

I have uploaded it to my website, try
http://files.easy2boot.com/200001818-5bbb25cb48/Virtual%20Machine%20USB%20Boot%201.6%20compiled.zip.txt
Steve

On 28 July 2016 at 14:42, yaya2007 notifications@github.com wrote:

"https://1drv.ms/u/s!AqlrQcdsFA-KmGeLP8zxpbsMUI0f" cannot access .


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpqcRWXZIOa3fROosFosdkx2sEtWjks5qaLGpgaJpZM4I5Oym
.

I have uploaded it to my website, try
http://files.easy2boot.com/200001818-5bbb25cb48/Virtual%20Machine%20USB%20Boot%201.6%20compiled.zip.txt
Steve

On 28 July 2016 at 14:42, yaya2007 notifications@github.com wrote:

"https://1drv.ms/u/s!AqlrQcdsFA-KmGeLP8zxpbsMUI0f" cannot access .


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpqcRWXZIOa3fROosFosdkx2sEtWjks5qaLGpgaJpZM4I5Oym
.

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 28, 2016

Collaborator

Downloading

Collaborator

yaya2007 commented Jul 28, 2016

Downloading

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 28, 2016

Collaborator

After download, use the text immediately open, can not be saved.

Collaborator

yaya2007 commented Jul 28, 2016

After download, use the text immediately open, can not be saved.

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 28, 2016

Same link is on this page
http://www.easy2boot.com/testing-e2b/using-qemu-or-virtual-box/?ez_view_original_only=on
[image: Inline images 1]

On 28 July 2016 at 15:25, yaya2007 notifications@github.com wrote:

After download, use the text immediately open, can not be saved.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpjX2EW_YCvBijjKIk5coUYZzDpadks5qaLu8gaJpZM4I5Oym
.

Same link is on this page
http://www.easy2boot.com/testing-e2b/using-qemu-or-virtual-box/?ez_view_original_only=on
[image: Inline images 1]

On 28 July 2016 at 15:25, yaya2007 notifications@github.com wrote:

After download, use the text immediately open, can not be saved.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpjX2EW_YCvBijjKIk5coUYZzDpadks5qaLu8gaJpZM4I5Oym
.

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 28, 2016

Collaborator

download OK! Thank you

Collaborator

yaya2007 commented Jul 28, 2016

download OK! Thank you

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 29, 2016

Collaborator

run:
ls (hd1,0)/
retum:
Cannot mount selected partition

Is it the same with you?

Collaborator

yaya2007 commented Jul 29, 2016

run:
ls (hd1,0)/
retum:
Cannot mount selected partition

Is it the same with you?

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 29, 2016

Yes - that is expected - but try Up Arrow afterwards - no command stack!

Also try running from a menu.lst or grub4dos batch file - exits or errors!

Memory is corrupted when you access that partition

On 29 July 2016 at 11:38, yaya2007 notifications@github.com wrote:

run
ls (hd1,0)/
retum: Cannot mount selected partition
Is it the same with you?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrphgEY_HNGZapBINpyy9fUU0cxjZrks5qadgzgaJpZM4I5Oym
.

Yes - that is expected - but try Up Arrow afterwards - no command stack!

Also try running from a menu.lst or grub4dos batch file - exits or errors!

Memory is corrupted when you access that partition

On 29 July 2016 at 11:38, yaya2007 notifications@github.com wrote:

run
ls (hd1,0)/
retum: Cannot mount selected partition
Is it the same with you?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#119 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrphgEY_HNGZapBINpyy9fUU0cxjZrks5qadgzgaJpZM4I5Oym
.

@yaya2007

This comment has been minimized.

Show comment
Hide comment
Collaborator

yaya2007 commented Jul 30, 2016

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 30, 2016

Seems to work OK.
I will test further to make sure nothing else is broken, but it certainly seems to fix the problem.
Thank you - great work!

Seems to work OK.
I will test further to make sure nothing else is broken, but it certainly seems to fix the problem.
Thank you - great work!

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 30, 2016

Small comment (just cosmetic, not important) - on boot, I get these messages

image

Is there any reason for the line to be shown twice?

Small comment (just cosmetic, not important) - on boot, I get these messages

image

Is there any reason for the line to be shown twice?

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 30, 2016

BUG in new version 2016-07-39 - do not release yet please!
If load XP ISO into memory (map --mem) then it crashes - 0.4.5c is OK
I test with Easy2Boot - XP SP3 ISO - Step 1
Will re-test with old 0.4.6a in few minutes.

BUG in new version 2016-07-39 - do not release yet please!
If load XP ISO into memory (map --mem) then it crashes - 0.4.5c is OK
I test with Easy2Boot - XP SP3 ISO - Step 1
Will re-test with old 0.4.6a in few minutes.

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 30, 2016

Older 0.4.6a 2016-04-07 also fails in same way (I am using a Lenovo IdeaPad 300 to test - EeePC 904HA also fails in same way), but 0.4.5c 2015-05-18 is OK. So this is a different problem. I will report as different issue.
To reproduce, make Easy2Boot USB drive - add XP SP3 ISO to _ISO\XP folder.
Boot to Easy2Boot - CTRL-I - XP Step 1 - use defaults (2, Y=load into memory) - hangs after red text.
More info - 603MB XP ISO is OK, 639MB ISO crashes. Needs more investigation but problem not related to latest bugfix.

steve6375 commented Jul 30, 2016

Older 0.4.6a 2016-04-07 also fails in same way (I am using a Lenovo IdeaPad 300 to test - EeePC 904HA also fails in same way), but 0.4.5c 2015-05-18 is OK. So this is a different problem. I will report as different issue.
To reproduce, make Easy2Boot USB drive - add XP SP3 ISO to _ISO\XP folder.
Boot to Easy2Boot - CTRL-I - XP Step 1 - use defaults (2, Y=load into memory) - hangs after red text.
More info - 603MB XP ISO is OK, 639MB ISO crashes. Needs more investigation but problem not related to latest bugfix.

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Aug 9, 2016

Fixed in 2016-08-06 0.4.6a

Fixed in 2016-08-06 0.4.6a

@steve6375 steve6375 closed this Aug 9, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment