|
xiaolongkun0
初级用户
 
积分 188
发帖 84
注册 2008-12-25
状态 离线
|
『楼 主』:
是否需要find?
使用 LLM 解释/回答一下
我反复实验,使用了find命令总是提示找不到文件而不能找到文件,而不用find,把根缺省或加上类似的(hd0,0)作为根,反而可以读取文件。
比如说
我在U盘建立文件,my.txt
title Micro Windows XPE (by LaoMaotao)
find --set-root /my.txt
chainloader /ldrxpe
显示找不到my.txt文件而无法引导
而下面
title Micro Windows XPE (by LaoMaotao)
chainloader /ldrxpe
或
title Micro Windows XPE (by LaoMaotao)
chainloader (fd0)/ldrxpe
都可以引导启动。
如果是这样,是否使用缺省根反而比较好,因为上面看上去它似乎能自动定位。而使用find总是寻找失败,而又指明了fd0,就限定了u盘不能使用HDD类型的。
I repeatedly experimented. Using the find command always prompts that the file is not found and cannot locate the file, while without using find, setting the root to the default or adding something like (hd0,0) as the root can instead read the file.
For example:
I created a file, my.txt, on the USB flash drive.
title Micro Windows XPE (by LaoMaotao)
find --set-root /my.txt
chainloader /ldrxpe
It shows that the my.txt file is not found and cannot boot.
While the following:
title Micro Windows XPE (by LaoMaotao)
chainloader /ldrxpe
or
title Micro Windows XPE (by LaoMaotao)
chainloader (fd0)/ldrxpe
can both boot.
If this is the case, is it better to use the default root? Because it seems that it can automatically locate. While using find always fails to find, and specifying fd0 limits that the USB flash drive cannot be of HDD type.
|
|
2009-3-12 12:59 |
|
|
kunpeng0000
新手上路

积分 12
发帖 7
注册 2007-2-19
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
麻烦您确认标志文件(my。txt)是否 存在
Please confirm whether the flag file (my.txt) exists
|
|
2009-3-13 06:39 |
|
|
xiaolongkun0
初级用户
 
积分 188
发帖 84
注册 2008-12-25
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
自己建立的文件怎么会不存在呢,而且我不止一次做类似的实验。因为几乎每次见到别人使用find,我总觉得不服,结果我又试一次,就是这样反复多次,都没有成功使用过find命令。按照写法肯定是没有问题,文件也是按要求在根目录下建了,没有理由的。所以我就奇怪了。
How can the file I created myself not exist? And I've done similar experiments more than once. Because almost every time I see others using find, I always feel不服 (unconvinced), so I tried again, and after repeating this many times, I've never successfully used the find command. According to the writing, there must be no problem. The file was also created in the root directory as required, and there's no reason for it. So I'm confused.
|
|
2009-3-13 07:35 |
|
|
chenall
银牌会员
    
积分 1276
发帖 469
注册 2002-12-23 来自 福建泉州
状态 离线
|
|
2009-3-13 09:59 |
|
|
xiaolongkun0
初级用户
 
积分 188
发帖 84
注册 2008-12-25
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
是的,我想也是使用有问题,但我始终不知道问题出在哪,请指教。
Yes, I think there is also a problem with the use, but I still don't know where the problem is. Please give me some advice.
|
|
2009-3-13 14:54 |
|
|
yjd
初级用户
 
积分 156
发帖 76
注册 2007-8-20
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
-_-!!。
估计是用ultraiso制作然后属性里默认支持小写字母没打勾然后。。。。。。。
-_-!!.
It is estimated that it was made with UltraISO and then the box for default support of lowercase letters in properties was not checked, and then......
|
|
2009-3-14 15:27 |
|
|
xiaolongkun0
初级用户
 
积分 188
发帖 84
注册 2008-12-25
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Originally posted by yjd at 2009-3-14 15:27:
-_-!!。
估计是用ultraiso制作然后属性里默认支持小写字母没打勾然后。。。。。。。
不,我不是制作ISO,我的是U盘启动
Originally posted by yjd at 2009-3-14 15:27:
-_-!!.
It is estimated that it is made with ultraiso and the default support for lowercase letters in the properties is not checked and then......
No, I'm not making an ISO. Mine is a USB drive boot
|
|
2009-3-18 10:01 |
|
|
chenall
银牌会员
    
积分 1276
发帖 469
注册 2002-12-23 来自 福建泉州
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
汗,还在...
楼主应该报告一下GRUB4DOS的版本?,你是如何启动的?有做了什么操作?反正是越详细越好.
最好配上截图,
还有再执行一些其它的命令看下这个文件是否存在.比如 ls /my.txt
这些都是解决问题的基本功,如果没有做到想要解决问题,别人只能猜测具体原因在哪里.猜成功的几率并不大.耽误别人的时间,
所以像你这样的问题,一般就没有多少人会去关注,你自己看下就知了.
从发贴时间3.12,到前面的回复3.18,还没有解决,就已经说明问题了.
再看看别人发的贴子,提供了足够的信息,正常情况下,一天之内就解决掉了.
Sweat, still...
The LZ should report the version of GRUB4DOS? How did you boot? What operations did you do? Anyway, the more detailed the better.
It's best to attach screenshots,
And then execute some other commands to see if this file exists. For example, ls /my.txt
These are the basic skills to solve the problem. If you don't do this, wanting to solve the problem, others can only guess the specific reason. The chance of guessing correctly is not big. It's a waste of others' time,
So for a problem like yours, generally not many people will pay attention, you can see it yourself.
From the posting time 3.12, to the previous reply 3.18, there is no solution yet, which has already shown the problem.
Take a look at other people's posts, which provide sufficient information. Under normal circumstances, it can be solved within a day.
|

QQ:366840202
http://chenall.net |
|
2009-4-1 13:17 |
|
|
xiaolongkun0
初级用户
 
积分 188
发帖 84
注册 2008-12-25
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
Originally posted by chenall at 2009-4-1 13:17:
汗,还在...
楼主应该报告一下GRUB4DOS的版本?,你是如何启动的?有做了什么操作?反正是越详细越好.
最好配上截图,
还有再执行一些其它的命令看下这 ...
是的,就是一直解决不了问题,估计别人没有碰到这样的问题,所以.......
先说如何做启动吧,原来使用的是Flashboot做DOS启动在进GRUB,现在使用grubinst做启动,后来还试用DD配合bootlace做MBR。
应该跟版本没有关系,我试过的版本都是这样,计算机启动是USBZIP方法启动,USB格式化成ZIP的,grub4dos命令符下,ls可以显示文件和所有文件,但find命令只列出了所有硬盘分区,却没有U盘设备,这可能就是无法用FIND的原因了。我在虚拟中测试的 光盘(ISO)和软盘(IMG),用FIND和LS都正常显示,但实机find就是只有硬盘,U盘出不来,是否FIND并不支持USBZIP?
我认为我很难做的非常详细了,因为是真机使用,没有办法从虚拟中截图(虚拟机可以找到FD0)。
Originally posted by chenall at 2009-4-1 13:17:
Sweat, still here...
The owner should report the version of GRUB4DOS? How did you start it? What operations did you do? Anyway, the more detailed the better.
It is best to match with screenshots,
And then perform some other commands to see this...
Yes, it has been unable to solve the problem. It is estimated that others have not encountered such a problem, so.......
First, let's talk about how to make the boot. Originally, Flashboot was used to make DOS boot to enter GRUB, now grubinst is used to make the boot, and then bootlace was also tried with DD to make MBR.
It should have nothing to do with the version. The versions I tried are all like this. The computer starts in USBZIP method. The USB is formatted as ZIP. Under the grub4dos command line, ls can display files and all files, but the find command only lists all hard disk partitions, but there is no USB device. This may be the reason why FIND cannot be used. I tested the CD (ISO) and floppy disk (IMG) in the virtual machine. FIND and LS are displayed normally, but the real machine find only has the hard disk, and the USB flash drive does not come out. Does FIND not support USBZIP?
I think it is very difficult for me to be very detailed, because it is a real machine use, and there is no way to take screenshots from the virtual machine (the virtual machine can find FD0).
|
|
2009-4-1 15:37 |
|
|
chenall
银牌会员
    
积分 1276
发帖 469
注册 2002-12-23 来自 福建泉州
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
其实find 只要特定的情况下才使用.比如你不知道你的文件具体在哪个分区上时才需要使用.
如果你的启动菜单还有你的文件在同一个磁盘上,根本就不需要find命令.使用反而会得到意料之外的结果.比如你从光盘启动,使用find如果硬盘上刚好有这个文件,那就会使用硬盘上的文件了,光盘上的文件没有用了.
直接使用相对路径就好了.
所以有此命令在不了解的情况下,不要随意使用.也不要跟风,别人使用find可能有他自己目的,
我是能少用个命令就少用个命令.只要保证启动正常就可以了.
In fact, find is only used in specific situations. For example, when you don't know which partition your file is on, you need to use it.
If your boot menu and your file are on the same disk, you don't need the find command at all. Using it will反而 get unexpected results. For example, if you boot from a CD and use find, if the file happens to be on the hard disk, then the file on the hard disk will be used, and the file on the CD will be useless.
Just use the relative path directly.
So, don't use this command casually without understanding. Also, don't follow the crowd. Others may have their own purposes for using find.
I try to use one less command if possible. As long as the boot is normal, that's fine.
|

QQ:366840202
http://chenall.net |
|
2009-4-2 02:44 |
|
|
xiaolongkun0
初级用户
 
积分 188
发帖 84
注册 2008-12-25
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
是的。
我也发现这么个问题,所以我已经开始使用相对路径。不过某些情况下仍需要描述设备,比如说DOS启动执行grub.exe,如果不指定设备,那么就会优先读取硬盘的文件,所以只能指定fd0。当然这是实验性的测试,因为根据测试我可以避免采用DOS启动的方法,从而避免使用绝对路径,使文件搜索顺序符合预想。
Yes.
I also discovered such a problem, so I have started using relative paths. However, in some cases, it is still necessary to describe the device. For example, when DOS starts to execute grub.exe, if the device is not specified, it will preferentially read the files on the hard disk, so only fd0 can be specified. Of course, this is an experimental test, because according to the test, I can avoid the method of starting with DOS, thus avoiding the use of absolute paths, and making the file search order meet the expectations.
|
|
2009-4-2 06:03 |
|
|