[问题]移动硬盘安装edgy以后boot的问题 问题解决喽!!!!有打算安装移动系统的好好看哦!!

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
wucongkun
帖子: 251
注册时间: 2006-11-10 20:27

[问题]移动硬盘安装edgy以后boot的问题 问题解决喽!!!!有打算安装移动系统的好好看哦!!

#1

帖子 wucongkun » 2006-11-30 11:15

这些是我整理过的问题:
grub-install 到sata移动硬盘的结果

Due to a bug in xfs_freeze, the following command might produce a segmentation
fault when /media/usbdisk/boot/grub is not in an XFS filesystem. This error is harmless and
can be ignored.
Installation finished. No error reported.
This is the contents of the device map /media/usbdisk/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/hdd
(hd1) /dev/sda
配置menu数次失败
研究好久发现
用(hd1,0)才可以启动
但是!!!ptptptpt那种方法在我这里有点问题:
从iso解压出来原版initrd.gz
用ptptptptpt的方法解压 cpio
然后做出来一个定制过的initrd.686m.gz
但是!!
我遇到了极其遗憾 白痴的问题:
我用gaoxing的方法让610从硬盘启动
启动后开始工作
我把东西解压在一个fat32分区上面
做出一个initrd.686m.gz
然后sudo cp到/meida/usbdisk/boot/grub里面。。
但是!!!!!
奇怪啊!!!
每次cp以后
都发现cp过去的文件名字显示为红色!用窗口察看发现带了一个红色的叉。这种文件无法在grub里面工作,我输入代码一行一行来,系统都不认这种文件。
这是什么问题?奇怪啦!!!!!!
实在没有办法!!
但是貌似原版可以cp到那个目录里面
用原版启动后提示:
can`t access tty
job control turned off
所以。。。很着急。。我就想弄一个定制过的initrd。定制可以解决can`t access tty job control turned off 的问题么?

下面的是原帖
估计要看完所有楼层你才能明白我是如何发现问题解决问题的。。但是到现在我还是没有完全解决问题!
[/size]
呵呵,昨天安装好了,尝试了好多次,系统都不允许安装grub到移动硬盘,没办法我只好安装到电脑然后fdisk /mbr。今天开始安装grub到移动硬盘,sata接口,结果:

代码: 全选

Due to a bug in xfs_freeze, the following command might produce a segmentation
fault when /media/usbdisk/boot/grub is not in an XFS filesystem. This error is harmless and
can be ignored.
Installation finished. No error reported.
This is the contents of the device map /media/usbdisk/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)	/dev/fd0
(hd0)	/dev/hdd
(hd1)	/dev/sda

修改了initrd文件,配置了menu.lst

代码: 全选


timeout 6 
default 0 
fallback 1 

title    mobile ubuntu 
kernel   (sd0,0/boot/vmlinuz-2.6.17-10-generic boot=casper ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd    (sd0,0/boot/initrd.686m.gz

title    mobile ubuntu xforcevesa 
kernel   (sd0,0/boot/vmlinuz-2.6.17-10-generic boot=casper xforcevesa ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd    (sd0,0/boot/initrd.686m.gz
 

移动硬盘根目录创建了记号文件。。。我也不知道到底前面又没有"."
所以创建了ubuntu .ubuntu两个

代码: 全选

.
..
abi-2.6.17-10-generic
boot
config-2.6.17-10-generic
grub
initrd.img-2.6.17-10-generic
lost+found
memtest86+.bin
System.map-2.6.17-10-generic
ubuntu
.ubuntu
vmlinuz-2.6.17-10-generic

启动的时候
grub stage 1.5
error 23
请大家帮忙。。。
我的menu有问题?
上次由 wucongkun 在 2006-12-05 18:09,总共编辑 3 次。
wucongkun
帖子: 251
注册时间: 2006-11-10 20:27

#2

帖子 wucongkun » 2006-11-30 11:53

代码: 全选

timeout 6 
default 0 
fallback 1 

title     sd mobile ubuntu 
kernel   (sd0,0)/boot/vmlinuz-2.6.17-10-generic boot=casper ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd    (sd0,0)/boot/initrd.686m.gz

title   sd  mobile ubuntu xforcevesa 
kernel   (sd0,0)/boot/vmlinuz-2.6.17-10-generic boot=casper xforcevesa ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd    (sd0,0)/boot/initrd.686m.gz
 

title    hd0mobile ubuntu 
kernel   (hd0,0)/boot/vmlinuz-2.6.17-10-generic boot=casper ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd    (hd0,0)/boot/initrd.686m.gz

title    mobile ubuntu xforcevesa  hd 
kernel   (hd0,0)/boot/vmlinuz-2.6.17-10-generic boot=casper xforcevesa ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd    (hd0,0)/boot/initrd.686m.gz

title   hd1mobile ubuntu 
kernel   (hd1,0)/boot/vmlinuz-2.6.17-10-generic boot=casper ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd    (hd1,0)/boot/initrd.686m.gz

title   sd  mobile ubuntu xforcevesa 
kernel   (hd1,0)/boot/vmlinuz-2.6.17-10-generic boot=casper xforcevesa ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd    (hd1,0)/boot/initrd.686m.gz
 
半个括号我也弄了
然后 关于可能的hd1 或者hd0的问题我都考虑。。
修改了menu后运行
看到的结果是
sd启动 Err 23 error while parsing number
hd0
hd1
都提示
error 15 File not found
wucongkun
帖子: 251
注册时间: 2006-11-10 20:27

#3

帖子 wucongkun » 2006-11-30 12:01

我需要(sd0,1)??????
wucongkun
帖子: 251
注册时间: 2006-11-10 20:27

#4

帖子 wucongkun » 2006-11-30 18:55

实在没有办法 自己尝试出错的可能情况。。。
重新写了menu.lst
initrd.gz vmlinuz都直接从iso里面解压后放到boot里面

代码: 全选

timeout 6 
default 0 
fallback 1 

title     sd0 mobile ubuntu 
kernel   (sd0,0)/boot/vmlinuz boot=casper ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd.gz    (sd0,0)/boot/initrd.gz

title   sd0  mobile ubuntu xforcevesa 
kernel   (sd0,0)/boot/vmlinuz boot=casper xforcevesa ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd.gz    (sd0,0)/boot/initrd.gz
 
title     sd0 mobile ubuntu 
kernel   (sd0,1)/boot/vmlinuz boot=casper ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd.gz    (sd0,1)/boot/initrd.gz

title   sd0  mobile ubuntu xforcevesa 
kernel   (sd0,1)/boot/vmlinuz boot=casper xforcevesa ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd.gz    (sd0,1)/boot/initrd.gz

title    hd0 mobile ubuntu 
kernel   (hd0,0)/boot/vmlinuz boot=casper ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd.gz    (hd0,0)/boot/initrd.gz

title    hd 0 mobile ubuntu xforcevesa 
kernel   (hd0,0)/boot/vmlinuz boot=casper xforcevesa ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd.gz    (hd0,0)/boot/initrd.gz

title   hd1 mobile ubuntu 
kernel   (hd1,0)/boot/vmlinuz boot=casper ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd.gz    (hd1,0)/boot/initrd.gz

title   hd1 mobile ubuntu xforcevesa 
kernel   (hd1,0)/boot/vmlinuz boot=casper xforcevesa ramdisk_size=1048576 root=/dev/ram rw splash debian-installer/locale=zh_CN 
initrd.gz    (hd1,0)/boot/initrd.gz
测试的结果。。就是hd1,0可以boot
但是最后显示了好多信息以后出现错误。。然后就停止了
最后两行的信息:

代码: 全选

no filesystem could mount root tried:cramfs
kernel panic ---no syncing:VFS:unable ro mount root fs on unknow-block(1,0)
真奇怪啦 前面的方式都会提示error 23 或者error 15
最后这个。。。似乎可以引导内核
但是为什么会提示不能在(hd1,0)上面boot呢?
期待。。。。求解。。。
wucongkun
帖子: 251
注册时间: 2006-11-10 20:27

#5

帖子 wucongkun » 2006-11-30 19:41

把代码弄下来
自己输入到grub
才发现 四楼的 initrd出了错误
initrd由于我的疏忽 都改成了initrd.gz
难怪我看代码只有第一行
我手工的测试
hd1,0是唯一一个正常的系统。。。
别的都不可以
还有
前面自己做的initrd.686m.gz之所以无法运行
似乎也有了眉目。。
sudo cp 到那个目录下面以后 文件上有一个红色的叉 这就代表不可用了?难道仅仅因为这个?嗬嗬。也难怪无法启动。。
手工输入iso里面的initrd vmlinuz地址启动以后
can`t access tty
job control turned off
离成功越来越近了!!!!!!
给了我一个sh
可惜。。里面没有startX命令。
我该如何做?[/i]
wucongkun
帖子: 251
注册时间: 2006-11-10 20:27

#6

帖子 wucongkun » 2006-11-30 20:56

跟大家再说一些细节。。我实在不知道怎么回事。。。
从iso解压出来原版initrd.gz
用ptptptptpt的方法解压 cpio
然后做出来一个定制过的initrd.686m.gz
但是!!
我遇到了极其遗憾 白痴的问题:
我用gaoxing的方法让610从硬盘启动
启动后开始工作
我把东西解压在一个fat32分区上面
做出一个initrd.686m.gz
然后sudo cp到/meida/usbdisk/boot/grub里面。。
但是!!!!!
奇怪啊!!!
每次cp以后
都发现cp过去的文件名字显示为红色!用窗口察看发现带了一个红色的叉。这种文件无法在grub里面工作,我输入代码一行一行来,系统都不认这种文件。
这是什么问题?奇怪啦!!!!!!
wucongkun
帖子: 251
注册时间: 2006-11-10 20:27

#7

帖子 wucongkun » 2006-12-01 14:59

在移动硬盘上面有一个fat32分区。。。我已经疯狂了。。。
grub代码自己用command line写
成功的从fat32上面的 initrd vmlinuz boot起来。。。
但是。。。
mount root fs的时候被卡住死机
用explore2fs看我的文件
发现其实boot里面的东西都还在啊
为什么启动的时候 grub不肯用这里面的东西呢???
我就纳闷了!!!
世界真奇妙。。。
explore2fs察看了下属性 也没有什么特殊 。。
难道待会儿要我全部chmod 775?
grub会顾忌到权限?我不相信!
wucongkun
帖子: 251
注册时间: 2006-11-10 20:27

[讨论]

#8

帖子 wucongkun » 2006-12-01 16:01

呵呵。。刚才到IRC里面交流
有人问我 boot分区设置是不是有问题?
那时候我才突然明白!
ptptptptptptpt似乎自己都没有分出来一个boot用于引导的
但是我有一个boot

分区设置
/
swap
/boot
最后一个fat32
启动的时候 输入hd0,5
成功启动。,。
现在剩下最后一个问题
cant access tty job control turned off
呵呵。。
搜索了好多似乎没有人给出解决。。
sonic_yq
帖子: 5
注册时间: 2006-03-17 7:53

#9

帖子 sonic_yq » 2006-12-03 9:32

ptptptptptpt先生写的文章最后一步做了么
建立标志根分区的文件
虽然我不懂是干什么的,但开始我忘记这个文件了,结果出现跟您一样的错误
加上就好了
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#10

帖子 ptptptptptpt » 2006-12-03 11:54

我也晕了……

括号里肯定是HD0, 形如 “(hd0,x)”
而x具体是多少,得看你把initrd vmlinuz 放在哪里了:
如果在移动硬盘第一主分区,X=0;
如果在移动硬盘第一逻辑分区,X=4;
如果在移动硬盘第二逻辑分区,X=5;……

另外也可能制作INTIRD过程中有问题吧,可以下载作好的
viewtopic.php?t=29692

或者如楼上sonic_yq所说,没建记号文件??
wucongkun
帖子: 251
注册时间: 2006-11-10 20:27

#11

帖子 wucongkun » 2006-12-03 16:47

grub算是没有问题了。。
我已经研究透了。。。呵呵 我可以引导任意一个分区上面的内核了
我感到纳闷的是
/boot在/下面
为什么创建了分区以后 就必须用(hd0,5)/vmlinuz?
这和hd,0/boot/vmlinuz不是一样的么?
但是grub只能用前面一种。。
记号文件
我确实创建了
你的东西我看了很多遍的
我在root创建了一个ubuntu和一个.ubuntu(似乎你有一个文章里面用到了.mobile-system,我很担心这个小圆点。。)
但是确实不正常。
我安装过的/boot下面的 vmlinuz initrd 引导也有问题。纳闷。
你那个帖子十楼的我也下载了
貌似也不行。。
tty依然错误。
而且 根据你们的提示
他的标记文件本来就和你的不一样 出错也在情理之中
真是的 他干吗要用ubuntu6.10做记号?
看到网上似乎有一种办法
说要修改/etc/initab
里面一行
tty00::askfirst:/bin/ash
不知是否可行。。。
我最初用grub4dos引导。。但是那时候不了解grub 所以出了小毛病就放弃了。
决定待会儿创建ubuntu6.10文件做记号
看看十楼的文件是否可用。
如果不行
修改/etc/initab
再不行
我就在安装一次grub4dos
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#12

帖子 ptptptptptpt » 2006-12-05 16:50

其实记号文件用什么名字,取决于做INITRD时的 CASPER脚本,里面有一个函数是查找系统分区的,实际上就是查找记号文件。函数里指定文件名
wucongkun
帖子: 251
注册时间: 2006-11-10 20:27

#13

帖子 wucongkun » 2006-12-05 18:06

好了 谢谢老兄...
我昨天没有办法安装了一个SLAX
(我承认我很强........)
因为我同学不愿意让我继续在他的电脑上面启动610的liveCD了..没有办法 我只好找一个比较小的 可以随便就从一栋硬盘启动的系统 尝试过KNOPPIX 但是一直找不到root filesystem 没有办法了 搜索看了看 居然要弄什么cheat code 好长...就放弃了
找到了SLAX 大一点 210M 呵呵 解压倒移动硬盘的FAT32分区(还好当初保留了一个分区!!!) 幸亏我的移动硬盘的GRUB还管用 找点资料 输入两行代码boot起来了
一会儿就进去了
还好可以自动挂载
瓦卡卡!!
找到sda1居然没有看到记号文件
我纳闷...
呵呵 后来在/boot,就是sda6找到了.....
你个小东西 ....
你可害死我了
呵呵 唰唰唰把文件移动过去
顺便也创建了一个ubuntu6.10
哈哈
initrd要求的记号都有了
内核我愿意用哪个就用哪个!@!
不过...十楼的initrd似乎还在弹出光驱...
我终于明白为什么有人说光驱这个问题了!
呵呵..
多谢老兄.
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#14

帖子 ptptptptptpt » 2006-12-07 17:31

哈哈,祝贺祝贺!
回复