非mbr区.启动debian系统和备份系统问题
时间:2003-08-24
来源:互联网
所以我想用GHOST(如果有什么好的备份工具的.也推荐一下.)备份debian系统.但在这里启动就是一个难题了.
资料
*****************************************************************
硬盘:一块,40G.
=====================================================
分区 | 系统 | 格式 |
-----------------------------------------------------
hda1 | winxp | fat32 |
-----------------------------------------------------
hda5,6,7| 无 | fat32 |
-----------------------------------------------------
hda8 | 无 | swap |
-----------------------------------------------------
hda9 | /boot | ext2 |
-----------------------------------------------------
hda10 | debian | ext2 |
=====================================================
光驱:有
软驱:无
引导:grub
*****************************************************************
刚开始学的人,一般每天都要重新安装很多次对吧!而每次安装不仅仅是安装一个基系统.因为就象我,就要在升级到unstable,如果对于网络速度不块的人,这样一来是多么不值呢!
而我现在的想法是:比如说你现在安装好了基系统的话,如果先备份起来的话,然后在升级到unstable的时候发生了和8月17日那样netbase(4.1.1)错误的话,那你就只需要几分钟分钟就还有了一个基系统.而如果还是要重新安装的话,那可能要一个10分钟左右吧!所以整体是这样的.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.基系统备份.
2.升级到unstable备份.
3.升级内核成功备份.
4.安装好xfree86等等,还没有安装kde和其他gnome时备份.
5.安装好kde或者gnome(或者两者都安装时)备份.
6.优化系统完毕时(就是配置好比如字体等等时)备份.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
我个人感觉如果是这样的话,那如果哪一步错了,是不是马上可以恢复到前一个来继续呢!要不然假设你到了第5时,不小心真的弄的系统崩溃了,那你在重新安装一遍的话,那时间是发不起的对吧!
出于这个我也就做了很多实验.
1.安装好基系统以后.然后删除掉lilo,把grub安装到/dev/hda9了以后.
grub-install /dev/hda9
cd /boot/grub
update-grub(这样它也就自动的配置好了menu.lst文件)
grub-install /dev/hda9
mkdir /mnt/winc
mount -t vfat /dev/hda1 /mnt/winc
dd if=/dev/hda9 of=/mnt/winc/bootsect.lnx bs=512 count=1
显示成功
然后用ghost备份了这个基系统也就是hda10.然后我进入我的winxp系统.
然后我转到winxp下面修改c:\boot.ini加入
c:\bootsect.lnx="Debian"
用魔术分区工具.把hda10分区格式化掉.然后在用ghost把先前的基系统.通过ghost软件,在拷贝到hda9以后,然后重新启动.
接着用光盘进入A:\提示符但不是真的纯DOS下,执行
fdisk /mbr
在启动的时候就看到debian选项了,结果发生错误了
+++++++++++++++++++++++++++++++++++++++++++++++
Booting 'Debian GNU/Linux',kernel-2.2.20-idepci
root(hd0 9)
File system type is ext2fs,partition type 0x83.
kernel/vmlinuz-2.2.20-idepci root=/dev/hda10 ro
Error 15:File not found.
+++++++++++++++++++++++++++++++++++++++++++++++++
到底是什么文件没有找到啊????
我的menu.lst
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
# /boot/grub/menu.lst - See: grub(8), info grub, update-grub(8)
# -------------------- grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5
# Pretty colours
color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
title Windows 95/98/NT/2000
root (hd0,0)
# makeactive
chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default optons below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda10 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,9)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## ## End Default Options ##
title Debian GNU/Linux, kernel 2.2.20-idepci
root (hd0,9)
kernel /vmlinuz-2.2.20-idepci root=/dev/hda10 ro
savedefault
boot
title Debian GNU/Linux, kernel 2.2.20-idepci (recovery mode)
root (hd0,9)
kernel /vmlinuz-2.2.20-idepci root=/dev/hda10 ro single
savedefault
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
/////////////////////////////////////////////////////////////
所以我才发帖来求救...
上面说的人是和我一样热爱DEBIAN,也都是一些新手.资质比我高一些的人..
有什么看不懂的在说.需要什么资料的也说.我会让你们看懂我到底是在问些什么的.
先在这里象大家说声谢谢了.
作者: hoby 发布时间: 2003-08-24
我认为你可以把 LILO 安装在MBR, 重装windows并不一定修改MBR, 即使作了修改, 也可以用Debian的光盘起动, 运行Lilo,将其重新写入!
作者: eTony 发布时间: 2003-08-24
因为我感觉grub简单多了
作者: hoby 发布时间: 2003-08-24
普通的grub无法装在fat32分区上
您可以试试grub for dos
另外,您也可以做张grub软盘试试
我个人不赞成“新手就应该多次重装linux”,尤其是在Deban环境中,除非是重大的误操作,否则完全没有必要重装
对普通用户来说,重装系统是学不到任何有用的知识的,只是无意义的重复
reinstall 应该是M$ Windows的专利...
作者: carlos 发布时间: 2003-08-24

作者: capture 发布时间: 2003-08-24
但我没有软驱.那我到底应该如何做呢!没有办法,以后会不重新安装的.这些都是从ms带来的毛病.也不是说改就马上改的掉的.但是会尽力.
作者: hoby 发布时间: 2003-08-24
作者: eTony 发布时间: 2003-08-24
apt-get install grub
grub-install /dev/hda
cd /boot/grub
update-grub
grub-install /dev/hda
这样做就可以用ghost备份您的系统了,等你在拷贝好不能启动的时候就可以这样做.哈哈.高兴
作者: hoby 发布时间: 2003-08-24
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28