Jump to content











Photo
- - - - -

Xiaopan boot error: [sda] asking for cache data failed usb drive


  • Please log in to reply
42 replies to this topic

#26 steve6375

steve6375

    Platinum Member

  • Developer
  • 7283 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 February 2013 - 06:49 PM

split the line and it will work!

 

uuid (bd)
set UUID=%?%

 

Something is odd about %?% being on the first line after title???



#27 h3xl3y

h3xl3y

    Member

  • Members
  • 34 posts
  •  
    European Union

Posted 04 February 2013 - 06:51 PM

Both titles appear in Qemu but i can't even select them

it jumps from previous title over them to another that i have in menu



#28 steve6375

steve6375

    Platinum Member

  • Developer
  • 7283 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 February 2013 - 06:52 PM

Use left and right cursor keys



#29 h3xl3y

h3xl3y

    Member

  • Members
  • 34 posts
  •  
    European Union

Posted 04 February 2013 - 06:57 PM

split the line and it will work!

 

uuid (bd)
set UUID=%?%

 

Something is odd about %?% being on the first line after title???

It works with the split line

If on the same line  the same old  tc@box:~$



#30 h3xl3y

h3xl3y

    Member

  • Members
  • 34 posts
  •  
    European Union

Posted 04 February 2013 - 07:07 PM

test

UUID= ?_UUID=1234-1234

UUID=1234-1234 ?_UUID=1234-1234

 

test1

UUID=1234-1234 ?_UUID=1234-1234

UUID=1234-1234 ?_UUID=1234-1234

 

So i should use

uuid (bd)
set UUID=%?%

 

instead of this?

debug 1
uuid (bd) > (md)0x220+1
cat --skip=18 --length=9 (md)0x220+1 | set UUID=

 

is better in some way besides it is shorter?



#31 steve6375

steve6375

    Platinum Member

  • Developer
  • 7283 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 February 2013 - 07:09 PM

use

 

 

uuid (bd) > nul && set UUID=%?_UUID%

seems to reliably work.



#32 h3xl3y

h3xl3y

    Member

  • Members
  • 34 posts
  •  
    European Union

Posted 04 February 2013 - 07:20 PM

uuid (bd) > nul && set UUID=%?_UUID%

 sorry to tell you  but don't work, the same problem tc@box:~$



#33 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15339 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 04 February 2013 - 07:24 PM

What is so difficult to understand
I am booting Xiaopan0.4.4.iso and a few others Linuxes with Grub4Dos from a USB Flash drive 
and used RPMprepUSB to format and install Grub4Dos on USB Flash drive
When you try a command you should try it on command line, first (i.e. NOT in a menu.lst entry).
 
This way you won' t have to reboot over and over (AND you will have actual grub4dos feedback for the command - if any)
 
To recap, when experimenting ALWAYS use command line and NEVER use a menu.lst entry, once the commands work correctly, THEN modify/create a menu.lst entry containing them.
 
Please, try the following:
  • FORGET (temporarily) about changes in the menu.lst
  • when you see the menu choices, press "c" instead
  • at the grub> prompt try the different commands posted
If you use "var" as variable after having tried one form or the other  of the uuid commands proposed, enter this command:
 
 
set var
to verify that variable "var" has got the right value.
Then, before trying another version, issue the command:
 
 
set var=
 
which will reset the variable.
If you use "UUID" as variable replace "var" with "UUID" in the above.
 
Of course this is just a humble suggestion on how things should be done, to have correct results (and have them faster), you are perfectly free to ignore this piece of advice :).
 
@steve6375
It seems like the issue is a sort of "timing problem" connected to the && :unsure:
 
On command line this:
 
 
set var=
uuid (bd) > nul
set var=%?%
set var
 
works allright (and it does also as an entry in menu.lst)
 
 
 
:cheers:
Wonko

#34 steve6375

steve6375

    Platinum Member

  • Developer
  • 7283 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 February 2013 - 07:29 PM

Problem is it works if you run the command twice (in menu or on command line) - so using the command line is only valid if you reboot each time!

That is why I thought it was working when I tested it - I had previously executed uuid..

 

uuid (bd) && set var=%?%

 

uuid (bd) && set var=%?%

 
It seems best thing to do is split the line into two commands
 

 

uuid (bd)
set var=%?%

 

 
???


#35 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15339 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 04 February 2013 - 07:49 PM

I see, the %?% remains (obviously :blush:) "sticky".
Better (to test):
First:
echo BLANK | set ?=
echo %?%
set var=
Then experiment with various commands, like:
uuid (bd) > nul
set var=%?%

or:
uuid (bd) > nul && set var=%?%
 
 
 

Finally check the result:
 
 
 
set var

:cheers:
Wonko

#36 steve6375

steve6375

    Platinum Member

  • Developer
  • 7283 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 February 2013 - 07:54 PM

The problem is using &&

 

try this

set a=5 && set b=%a%

 

b is not set.



#37 h3xl3y

h3xl3y

    Member

  • Members
  • 34 posts
  •  
    European Union

Posted 04 February 2013 - 07:59 PM

uuid (bd) > nul
set UUID=%?%

Well this works 

uuid (bd) > nul && 
set UUID=%?%

 

this way works too


Edited by Hexley Darwin, 04 February 2013 - 08:10 PM.


#38 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15339 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 04 February 2013 - 08:10 PM

The problem is using &&
 

I know, I ALREADY posted about it being the issue on post #33.

@steve6375
It seems like the issue is a sort of "timing problem" connected to the && :unsure:

 



uuid (bd) > nul && 
set UUID=%?%
 this way works too


Try:



uuid (bd) > nul && echo Mickey Mouse > nul
set UUID=%?%

it will also work :whistling:.

 

:cheers:
Wonko



#39 steve6375

steve6375

    Platinum Member

  • Developer
  • 7283 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 February 2013 - 08:14 PM

uuid (bd) > nul
set UUID=%?%

Well this works 

uuid (bd) > nul && 
set UUID=%?%

 

this way works too

 

The second example is not grammatically correct - &&  allows execution of more than one command on the same line, so uuid (bd) > nul &&   means do the command and then do "nothing".

So it makes no sense (though it will work).



#40 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15339 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 04 February 2013 - 08:33 PM

The second example is not grammatically correct - &&  allows execution of more than one command on the same line, so uuid (bd) > nul &&   means do the command and then do "nothing".

So it makes no sense (though it will work).

To be picky (as I am ;)):

 

 

&&  allows conditional execution of more than one command on the same line

 

&& will execute following command IF command before succeeded

|| will execute following command IF command before failed

 

As a matter of fact we are missing in grub4dos the plain, simple ampersand used in DOS/Windows to concatenate commands :(.

 

:

:cheers:

Wonko



#41 steve6375

steve6375

    Platinum Member

  • Developer
  • 7283 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 05 February 2013 - 12:00 AM

Chenall has suggested this solution, which seems to work :clap: 

 

uuid () && call set UUID =%^?%

The ^ is necessary as it is being used with call, otherwise UUID will be set to %?%



#42 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15339 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 05 February 2013 - 10:17 AM

Chenall has suggested this solution, which seems to work :clap: 

 



uuid () && call set UUID =%^?%

The ^ is necessary as it is being used with call, otherwise UUID will be set to %?%

Good to know :smiling9: :thumbsup:

 

:cheers:

Wonko



#43 h3xl3y

h3xl3y

    Member

  • Members
  • 34 posts
  •  
    European Union

Posted 05 February 2013 - 12:39 PM

uuid () && call set UUID =%^?% 

 

 

Works for me too :clapping: 


Edited by hexley, 05 February 2013 - 12:42 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users