QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: satimis

Where to find initrd .img and

[复制链接]
发表于 2005-8-8 11:49:03 | 显示全部楼层
then press TAB again. ?
回复

使用道具 举报

 楼主| 发表于 2005-8-8 11:55:57 | 显示全部楼层
[quote:7ee9b14fc5="blackwolf"]then press TAB again. ?[/quote]grub> root (hd0,
Then press TAB again[code:1] Possible partitions are:
   Partition num: 0,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 1,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 2,  Filesystem type unknown, partition type 0x82
   Partition num: 4,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 5,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 6,  Filesystem type is ext2fs, partition type 0x83[/code:1]
# df -Th[code:1]Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/hda2     ext3     20G  9.2G  9.2G  51% /
/dev/hda1     ext3     99M   12M   83M  12% /boot
none         tmpfs    125M     0  125M   0% /dev/shm
/dev/hda5     ext3    9.2G  1.5G  7.3G  17% /home
/dev/hda6     ext3    5.6G  2.4G  2.9G  45% /mnt/lfs[/code:1]
satimis
回复

使用道具 举报

发表于 2005-8-8 11:58:32 | 显示全部楼层
root (hd0, 5)
setup (hd0)
回复

使用道具 举报

 楼主| 发表于 2005-8-8 12:20:41 | 显示全部楼层
[quote:1b812cf886="blackwolf"]root (hd0, 5)
setup (hd0)[/quote]Following is an extract from my Notes

root:/sources/linux-2.6.11.12# grub[code:1]   GNU GRUB  version 0.96  (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

grub> root (hd0,5) (OR "hd0, 5" inserting a SPACE)

Error 21: Selected disk does not exist

grub> setup (hd0)      

Error 12: Invalid device requested

grub> quit[/code:1]
As reported on my previous posting same problem occured on several threads found on search.

B.R.
satimis
回复

使用道具 举报

发表于 2005-8-8 13:13:53 | 显示全部楼层
try to use this command in grub command prompt:
[code:1]install (hd0,5)/boot/grub/stage1 (hd0) (hd0,5)/boot/grub/stage2 p (hd0,5)/boot/grub/menu.lst[/code:1]
回复

使用道具 举报

发表于 2005-8-8 20:28:58 | 显示全部楼层
#boot=/dev/hda
default=0
timeout=15
splashimage=(hd0,0)/grub/splash.xpm.gz
# hiddenmenu
title Fedora Core (2.6.12-1.1372_FC3)
        root (hd0,0)
        kernel /vmlinuz-2.6.12-1.1372_FC3 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.12-1.1372_FC3.img
title Fedora Core (2.6.11-1.35_FC3)
        root (hd0,0)
        kernel /vmlinuz-2.6.11-1.35_FC3 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.11-1.35_FC3.img
title LFS (lfskernel-2.6.11.12)
root (hd0,5)
kernel /lfs_kernel ro root=/dev/hda5 lfs_kernel_parameter
initrd /lfs_initrd.img

I think that this "grub" is installed by the FC3 and the /boot of FC3 is /dev/hda1, right? So I suggest you copy the kernel of LFS(if you need initrd, copy it too)to the /dev/hda1 and modify the FC3's grub.conf(or menu.lst). like this:
[code:1]
itle LFS (lfskernel-2.6.11.12)
root (hd0,0)
kernel /lfs_kernel ro root=/dev/hda5 lfs_kernel_parameter
initrd /lfs_initrd.img
[/code:1]
The code above can test not only the kenel but also the initrd.
回复

使用道具 举报

 楼主| 发表于 2005-8-8 21:27:33 | 显示全部楼层
Hi linky_fan,

I think that this "grub" is installed by the FC3 and the /boot of FC3 is /dev/hda1, right?
Yes.  That is correct.

So I suggest you copy the kernel of LFS(if you need initrd, copy it too)to the /dev/hda1 and modify the FC3's grub.conf(or menu.lst)....
I already did it adding follows to Host /etc/grub.conf[code:1]title LFS 6.1 (2.6.11.12)
        root (hd0,5)
        kernel /boot/lfskernel-2.6.11.12 ro root=/dev/hda6 vga=795
[/code:1]
B.R.
satimis
回复

使用道具 举报

发表于 2005-8-9 08:43:12 | 显示全部楼层
If you use the grub of host system, you need not run root (hd0,5) and setup (hd0) in grub, only need copy the kernel to /boot of hostsystem and edit menu.lst or grub.conf of hostsystem.
but my suggestion is use the grub you installed in LFS system. so you can get more info of grub and you can let the hostsystem out of your harddisk and run LFS only.
回复

使用道具 举报

 楼主| 发表于 2005-8-9 09:15:48 | 显示全部楼层
Hi blackwolf,

Tks for your advice.

<snip>

but my suggestion is use the grub you installed in LFS system. so you can get more info of grub and you can let the hostsystem out of your harddisk and run LFS only.
That is what I'm interested to learn, the steps to be performed.

On starting the PC where and how to control to boot FC3 Host or to boot LFS 6.1.  Please advise.  Tks.

I'm prepared to have another round using LFS LiveCD to build LFS 6.1 on a blank HD.  I'm now searching the shelves for a spare HD.  If not available I'll repartition another running HD which has space.  What will be the minimum space needed in building LFS?

Another problem is reading Chinese on LFS LiveCD without Chinese fonts installed.  I can only read this website blindly on guess.  I can get it remaster but taking time.  OR I can use Knoppix CD.  LFS LiveCD is quite convenient in building LFS 6.1 having all packages as well as the LFS 6.1 book available on CD.  Besides because its small size it is easy to boot, dislike Knoppix CD taking long time to load before coming up to Login page.  Any other suggestion?

TIA

B.R.
satimis
回复

使用道具 举报

发表于 2005-8-9 10:19:35 | 显示全部楼层
LFS LiveCD is very good. I had builded a LFS with it.
回复

使用道具 举报

 楼主| 发表于 2005-8-9 10:45:59 | 显示全部楼层
[quote:43cb3bf6c4="blackwolf"]LFS LiveCD is very good. I had builded a LFS with it.[/quote]Hi blackwolf,

Have you sorted out the problem of reading Chinse on this website?  Does this website maintains English pages?

I was thinking about keeping the Chinese fonts on HD.  After booting up LFS LiveCD

then run;
# mkdir /mnt/hd
# mount /dev/hda /mnt/hd
# cp -r /mnt/hd/cn_fonts /livecd/path/to/font_dir/

Do you know;
1) Where the font file is retained on LFS LiveCD
2) Which Chinese fonts needed
3) Where to download

TIA

B.R.
satimis
回复

使用道具 举报

发表于 2005-8-9 11:50:03 | 显示全部楼层
I had not try to install Chinese support on the LiveCD. I use another PC to access internet. I had not try to install Chinese support on the LiveCD. As you said, copy the font to the LiveCD, you must do it everytime when you reboot the PC, because the root is a virtual file system and you can not modify it permanent.
回复

使用道具 举报

 楼主| 发表于 2005-8-9 11:59:46 | 显示全部楼层
[quote:c10f3ee376="blackwolf"]I had not try to install Chinese support on the LiveCD......[/quote]
I don't expect jumping between computers.  Especially it is inconvenient to post the problem encountered on building LFS, copy/paste being much easier to do the job.

I'm aware on each fresh boot/reboot needing to execute all commands to make LFS LiveCD reading Chinese.  I think a simple script will do the job.

Anyway tks for your information.

B.R.
satimis
回复

使用道具 举报

发表于 2005-8-9 22:13:26 | 显示全部楼层
but my suggestion is use the grub you installed in LFS system. so you can get more info of grub and you can let the hostsystem out of your harddisk and run LFS only.

right , in my lfsing, i use the green(the lfs's is green ^-^) grub provided by lfs team.

But i think copy the kernel and initrd of lfs to the /boot partition of the mother
OS is a easy way to start lfs.  
回复

使用道具 举报

 楼主| 发表于 2005-8-9 23:15:41 | 显示全部楼层
Hi linky_fan,

right , in my lfsing, i use the green(the lfs's is green ^-^) grub provided by lfs team
Could you please explain further what is it.

But i think copy the kernel and initrd of lfs to the /boot partition of the mother
OS is a easy way to start lfs.  
That is what I'm running - dual boot.

However I'm interested to learn blackwoft's method "let the hostsystem out of your harddisk and run LFS only".  How to make it.

TIA

B.R.
satimis
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-6 16:59 , Processed in 0.073088 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表