LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 953|回复: 3

求助:debian系统转移,硬盘(hda5)->cf卡(hdd1)?

[复制链接]
发表于 2006-8-25 17:50:20 | 显示全部楼层 |阅读模式
硬盘上hda5安装了debian系统,lilo引导,有一块1G容量的cf卡。目标是拔掉硬盘,在cf卡上跑系统。
目前我已经做的工作:
将hdd1 mount,并将hda5上的文件cp -a 到hdd1上。
修改了fstab:添加 /dev/hdd1  /mnt/hdd1 ext2 defeauts  0 0
chroot /mnt/hdd1 /bin/bash(这条命令不知用得对不对?)
在hdd1上apt-get  remove lilo,apt-get install lilo
重启进bios,修改boot,尝试后,不能从cf卡启动。

折腾了一天了,进展较少。期待大家给出看法、建议,thx a lot
发表于 2006-8-25 20:52:53 | 显示全部楼层
fstab没弄好
将/dev/hdd1 设为根目录
将原来的根目录hda5去除
不要lilo。。。用grub
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-25 21:36:45 | 显示全部楼层
非常感谢兄台的建议。我装的是lilo,当时因为grub装不上,就偷懒装了lilo。目前我就想尝试把系统移植了先,其次考虑优化裁减。
将/dev/hdd1/设为根目录,我的语句:chroot /mnt/hdd1 /sbin/lilo,回车后显示:
Warning: '/proc/partitions' does not exist, disk scan bypassed
Warning: The boot sector and map file are on different disks.
Added Linux *
Skipping /vmlinuz.old
Added Linux-custom

我拔掉硬盘后,在bios里修改first boot 为hdd0-3,启动后均是:
no bootable partition in table.
这个怎么办呢?大家给点建议,thx
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-25 21:36:44 | 显示全部楼层
非常感谢兄台的建议。我装的是lilo,当时因为grub装不上,就偷懒装了lilo。目前我就想尝试把系统移植了先,其次考虑优化裁减。
将/dev/hdd1/设为根目录,我的语句:chroot /mnt/hdd1 /sbin/lilo,回车后显示:
Warning: '/proc/partitions' does not exist, disk scan bypassed
Warning: The boot sector and map file are on different disks.
Added Linux *
Skipping /vmlinuz.old
Added Linux-custom

我拔掉硬盘后,在bios里修改first boot 为hdd0-3,启动后均是:
no bootable partition in table.
这个怎么办呢?大家给点建议,thx
回复 支持 反对

使用道具 举报

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

本版积分规则

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