|
minchengan
中级用户
  
积分 376
发帖 164
注册 2006-12-5
状态 离线
|
『楼 主』:
很全面的U盘系统:求助:grub 启动FANX(一种LINUX)
使用 LLM 解释/回答一下
FANX是一种LIVE-CD LINUX,网上很多光盘版的,我在自己机器硬盘上也成功进入。因为FANX可以用LOADIN在DOS下启动,现在想将FANX移植到U盘,却发现不行,不知是不是FANX启动时将U盘变成了LINUX下的路径:如/dev/sda0,而不再是A或C盘。后来想启动U盘进入DOS后,用GRUB调用一个做好的IMG软盘映像,这个映像里有DOS下的USB驱动及subst文件,用于将找到的U盘盘符改成A盘再启动,现在也没成功(LFS这个U盘LINUX实现过,不过他是进入LINUX后加载的USB驱动,还没有找到方法)。后来又想,grub应该可以调用硬盘映像IMG的,于是将FANX整个目录全拷到IMG映像里,可能是我没有将这种硬盘版的IMG文件弄成启动型的吧(该怎么弄?在网上我找到一个WIN98的硬盘IMG,可用grub没有启动成功。请高手指教),怎么也启动不了,我这个IMG映像有200多M,哪个高手可以指点一下,要是这个FANX能启动了,我的U盘系统就整个完成。包括很全的DOS系统和工具:支持局域网、因特网、各类系统维护工具,多媒体工具;几种简单的LINUX和图形界面的FANX(可以上网,听歌,看电影,处理中文),还有WINXPE(支持网卡),不久前看到含有声卡与显示驱动的XPE,想借鉴,但没成功。有时间会做。
不知哪位高手可以帮我解决FANX的启动问题?
Last edited by minchengan on 2007-5-27 at 01:19 PM ]
FANX is a LIVE-CD LINUX. There are many CD versions on the Internet, and I have successfully entered it on my own machine's hard disk. Because FANX can be started under DOS using LOADIN, I now want to port FANX to a USB flash drive but find that it doesn't work. I wonder if FANX changes the USB flash drive into a path under LINUX like /dev/sda0 when it starts, and it's no longer the A or C drive. Later, I thought of starting the USB flash drive to enter DOS, and then using GRUB to call a well-made IMG floppy disk image. This image has USB drivers under DOS and a subst file, which is used to change the found USB flash drive letter to the A drive and then start it. But it didn't succeed either (LFS has realized this for USB flash drive LINUX, but it loads the USB driver after entering LINUX, and I haven't found the method yet). Then I thought that GRUB should be able to call the hard disk image IMG. So I copied the entire FANX directory into the IMG image. Maybe I didn't make this hard disk version of the IMG file bootable? (How to do it? I found a WIN98 hard disk IMG on the Internet, but GRUB didn't start it successfully. Please give me some advice.) I can't start it anyway. This IMG image is more than 200 MB. Which expert can give me some pointers? If this FANX can be started, my USB flash drive system will be completely completed. It includes a very comprehensive DOS system and tools: supporting local area network, Internet, various system maintenance tools, multimedia tools; several simple LINUX and graphical interface FANX (can surf the Internet, listen to music, watch movies, handle Chinese), and WINXPE (supports network card). I saw XPE with sound card and display driver not long ago, and I want to draw on it, but I haven't succeeded. I will do it when I have time.
I don't know which expert can help me solve the startup problem of FANX?
Last edited by minchengan on 2007-5-27 at 01:19 PM ]
|
|
2007-5-27 13:15 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
GRUB 启动 LINUX,不需要仿真磁盘。
用
kernel (...)/.../.../vmlinuz ..........
initrd (...)/.../.../initrd
boot
便可。
GRUB boots LINUX without the need for an emulated disk.
Use
kernel (...)/.../.../vmlinuz ..........
initrd (...)/.../.../initrd
boot
and that's it.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2007-5-27 16:48 |
|
|
barton
中级用户
  
积分 480
发帖 197
注册 2006-9-20 来自 黄冈
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
娱乐用GEEXBOX
启动fanx就像不点说的那样
主要是kernel (...)/.../.../vmlinuz 后面的参数问题
一个例子 kernel (hd0,x)/fanx/boot/vmlinuz max_loop=255 init=linuxrc livecd_subdir=/fanx/ hdsubdir=/fanx/ load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=15000 root=/dev/ram0 rw
Entertainment GEEXBOX
Starting fanx is as the non-point said
Mainly the parameter problem after kernel (...)/.../.../vmlinuz
An example kernel (hd0,x)/fanx/boot/vmlinuz max_loop=255 init=linuxrc livecd_subdir=/fanx/ hdsubdir=/fanx/ load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=15000 root=/dev/ram0 rw
|
|
2007-5-30 11:29 |
|
|
minchengan
中级用户
  
积分 376
发帖 164
注册 2006-12-5
状态 离线
|
『第 4 楼』:
我的问题关键不在这里
使用 LLM 解释/回答一下
我的问题关键不在这里,GRUB启动LINUX很简单,但我问的不是这点,我是说启动U盘上的LINUX。当然我现在已经知道在U盘上怎么启动,其实上次是因为U盘的问题,幸好单位U盘多,又借一个试过后得知FANX可以在U盘的DOS下直接启动。
My key issue is not here. Booting Linux with GRUB is simple, but that's not what I'm asking about. I mean booting Linux from a USB drive. Of course, I already know how to boot from a USB drive now. Actually, last time it was because of an issue with the USB drive. Fortunately, my unit has many USB drives, and after borrowing another one and testing, I found that FANX can be directly booted from DOS on a USB drive.
|
|
2007-5-30 12:23 |
|
|
barton
中级用户
  
积分 480
发帖 197
注册 2006-9-20 来自 黄冈
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Originally posted by minchengan at 2007-5-30 12:23:
我的问题关键不在这里,GRUB启动LINUX很简单,但我问的不是这点,我是说启动U盘上的LINUX。当然我现在已经知道在U盘上怎么启动,其实上次是因为U盘 ...
(hdx,y)
这个X,Y你可以设置成你U盘的值就可以了,那么linux就可以从U盘启动了
Originally posted by minchengan at 2007-5-30 12:23:
The key point of my question is not here. It is very simple to boot Linux with GRUB, but I'm not asking about that. I mean booting Linux from a USB flash drive. Of course, I already know how to boot from a USB flash drive now. Actually, last time it was because of the USB flash drive...
(hdx, y)
You can set this X and Y to the values of your USB flash drive, and then Linux can boot from the USB flash drive.
|
|
2007-5-31 13:51 |
|
|
minchengan
中级用户
  
积分 376
发帖 164
注册 2006-12-5
状态 离线
|
『第 6 楼』:
U盘是不会是(hdX,Y)的
使用 LLM 解释/回答一下
U盘是不会是(hdX,Y)的,U盘应该是sda才是。FANX的启动我已解决了,我是用LOADIN启动的,在U盘可以直接用。
USB drives are not (hdX,Y). USB drives should be sda. The FANX boot has been solved. I used LOADIN to boot and it works directly on the USB drive.
|
|
2007-5-31 23:52 |
|
|
yjq635
初级用户
 
积分 109
发帖 42
注册 2007-5-12
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
这个系统很不错,虽然我对 LINUX知之胜少,但它好像是只读的吧?不能保存设置(门外汉,见笑)而且在U盘上启动速度实在不怎么样,我用过一个Dos和WinPE双启动的磁盘GHOST镜像(U盘启动),很好用,我发现它的启动速度简直惊人,比光盘版的WINPE要快的多,后来才知道,是把系统那部分做成光盘镜像放在内存里(个人见解,不知对不对?),我想要是把FANX也那样处理,那速度不就也很快了?请高手做一下,我们这种菜鸟什么都不会,就知道baidu!!!!!期待中
This system is very good. Although I know very little about LINUX, it seems to be read-only? Can't save settings (layman, please forgive me). And the boot speed on the USB flash drive is really not good. I used a DOS and WinPE dual-boot disk GHOST image (USB flash drive boot), which is very easy to use. I found that its boot speed is simply amazing, much faster than the CD version of WINPE. Later I found out that it was making the system part into a CD image and putting it in memory (personal opinion, not sure if it's right). I thought if FANX could be processed like that, then the speed would be very fast too? Please experts do it. We such noobs don't know anything, just know baidu!!!!! Looking forward to it
|
|
2007-6-1 09:59 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
U盘是不会是(hdX,Y)的,U盘应该是sda才是。
你说的是 Linux 下 U 盘的设备表示法。你这么理解 GRUB 的设备表示法是错误的。不要混淆 LINUX 和 GRUB 这两个不同的系统(或者说是两个不同的环境)。
如果你启动 linux 之前是在 GRUB 中,那么在 GRUB 环境下是采用 BIOS 来访问 U 盘的,所以,不管是 U 盘,还是 SATA 硬盘,或者是 SCSI 硬盘,在 GRUB 看来,它们通通都是 BIOS 所赋予的硬盘号码(0x80)或者是软盘号码(0x00)。
如果你的 U 盘被你的主板 BIOS 当做软盘了,那么它应该是 (fd0),如果你的 U 盘被你的主板 BIOS 当成硬盘了,它通常就是 (hd0) 了。
Last edited by 不点 on 2007-6-1 at 11:27 AM ]
The USB flash drive is not (hdX,Y), the USB flash drive should be sda.
What you said is the device representation of the USB flash drive under Linux. Your understanding of the GRUB device representation is wrong. Do not confuse the two different systems (or two different environments) of LINUX and GRUB.
If you start Linux before being in GRUB, then in the GRUB environment, it uses BIOS to access the USB flash drive. Therefore, whether it is a USB flash drive, a SATA hard drive, or a SCSI hard drive, in the eyes of GRUB, they are all the hard drive numbers (0x80) or floppy disk numbers (0x00) given by BIOS.
If your USB flash drive is regarded as a floppy disk by your motherboard BIOS, then it should be (fd0). If your USB flash drive is regarded as a hard drive by your motherboard BIOS, it is usually (hd0).
Last edited by 不点 on 2007-6-1 at 11:27 AM ]
|

因为我们亲手创建,这个世界更加美丽。 |
|
2007-6-1 11:25 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
yjq635:我不知道 FANX 行不行,但我知道 Linux 肯定行。
你用 GRUB 的 kernel 和 initrd 来加载你的内核以及内存盘,速度一定不会慢。
yjq635: I don't know if FANX works, but I know Linux definitely works.
You use GRUB's kernel and initrd to load your kernel and ramdisk, and the speed will definitely not be slow.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2007-6-1 11:31 |
|
|
minchengan
中级用户
  
积分 376
发帖 164
注册 2006-12-5
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
系统全部加载进内存后速度当然会快,但你要将U盘上内容拷进内存,那个速度就慢了,U盘上启动系统慢就慢在这里,而老毛桃的WINXPE启动速度很快, 原因是它没有将所有数据都读到内存,应用程序仍放在了光盘或U盘上。
Of course, the speed will be fast after the entire system is loaded into memory. But if you copy the content from the USB flash drive into memory, the speed will be slow. The slow startup of the system from the USB flash drive is due to this. And the old Mao Tao's WINXPE starts very quickly because it doesn't read all the data into memory, and the application programs are still placed on the CD or USB flash drive.
|
|
2007-7-4 22:42 |
|
|
yjq635
初级用户
 
积分 109
发帖 42
注册 2007-5-12
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
Originally posted by minchengan at 2007-7-4 10:42 PM:
系统全部加载进内存后速度当然会快,但你要将U盘上内容拷进内存,那个速度就慢了,U盘上启动系统慢就慢在这里,而老毛桃的WINXPE启动速度很快, 原因是它没有将所有数据都读到内存,应用程序仍放在了光盘或U盘上。
是这样的,,我还不是什么都不懂吗,,所以请高手们有时间费心研究一下,,我自己是没那个本事了,至少现在还远着呢!!
Originally posted by minchengan at 2007-7-4 10:42 PM:
The system will naturally be faster after all is loaded into memory, but if you copy content from the USB flash drive into memory, that speed is slow. The slow startup of the system from the USB flash drive is due to this. And Lao Maotao's WINXPE starts very quickly because it doesn't read all data into memory; applications are still placed on the CD or USB flash drive.
That's true. I still don't know everything, so please, experts, take the time to study it if you have the chance. I don't have that ability myself, at least not yet!
|
|
2007-7-5 10:16 |
|