[FZH] 如何删除Ubuntu并硬盘安装Fedora14 ?

Run reveloper在gmail.com
星期二 一月 18 09:12:08 UTC 2011


请问是把这段代码添加到哪个文件中?我加到 /boot/grub/grub.cfg
里面不行,文档的格式都不一样

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env
recordfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set 0b23b3aa-bcb9-4447-8de3-eb4a6c6cf745
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos9)'
search --no-floppy --fs-uuid --set 3bed4cff-b392-47a4-b3b3-8f1f01d827e9
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class
gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos9)'
search --no-floppy --fs-uuid --set 3bed4cff-b392-47a4-b3b3-8f1f01d827e9
linux /vmlinuz-2.6.35-22-generic
root=UUID=0b23b3aa-bcb9-4447-8de3-eb4a6c6cf745 ro   quiet splash
initrd /initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class
ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos9)'
search --no-floppy --fs-uuid --set 3bed4cff-b392-47a4-b3b3-8f1f01d827e9
echo 'Loading Linux 2.6.35-22-generic ...'
linux /vmlinuz-2.6.35-22-generic
root=UUID=0b23b3aa-bcb9-4447-8de3-eb4a6c6cf745 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos9)'
search --no-floppy --fs-uuid --set 3bed4cff-b392-47a4-b3b3-8f1f01d827e9
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos9)'
search --no-floppy --fs-uuid --set 3bed4cff-b392-47a4-b3b3-8f1f01d827e9
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
  if keystatus; then
    if keystatus --shift; then
      set timeout=-1
    else
      set timeout=0
    fi
  else
    if sleep --interruptible 3 ; then
      set timeout=0
    fi
  fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type
the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

2011/1/18 Yu Chen <jcomee在gmail.com>

> 如果直接安装在u的分区就可以直接用u的grub引导fedora livecd或者dvd ,livecd的引导类似这样:
>
> title Install Fedora 11
> root (hdx,x)
> kernel /LiveOS/vmlinuz0 root=/dev/sdax ro liveimg rhgb
> initrd /LiveOS/initrd0.img
> boot
>
> 在 2011年1月18日 下午2:30,好大一只鸟 <wpahipc在gmail.com>写道:
>
> > *1.注意必须要有grub4dos,
> > 2.FAT32分区、NTFS分区都可以
> >
> > 3.下载Fedora-14-i386-DVD.iso,放在D盘fedora14(自建)目录中,官网可下
> >
> > 4.把Fedora-14-i386-DVD.iso的images文件夹解压在的fedora14目录里,
> > 接着把Fedora-14-i386-DVD.iso的images文件夹解压在的fedora14目录里,再解压Fedora-14-i386-
> > DVD.iso的isolinux文件夹中的initrd.img和vmlinuz二个文件也放到fedora14目录里,还要把initrd.img和
> > vmlinuz复制到C盘的根目录下
> >
> > 5.把grub.exe、grldr、menu.lst放在C盘根目录下,修改menu.lst,在menu.lst最后加上
> >
> > title Install Fedora 14
> > kernel (hd0,0)/vmlinuz
> > initrd (hd0,0)/initrd.img
> >
> > 6.打开C盘的根目录,找到boot.ini,在最后面加上
> >
> > c:\grldr=GRUB
> >
> > 保存重启
> >
> > 选择Install Fedora 14
> >
> > 7.语言选择chinese(simplified),就是简体中文
> >
> > 8选择键盘,默认USA
> >
> > 9.选择安装方式,采用硬盘安装,选择hard deive
> >
> > 10.移用Tab键和上下键选中中/dev/sda,在下面那个输入框里面输入路径: /Fedora14/images/install.img
> >
> > 11.按照光盘安装的路子装完系统
> >
> >
> >
> >
> > *
> > 在 2011年1月18日 下午2:20,Mike <zhtx10在gmail.com>写道:
> >
> > > 还是刻盘吧,盘里面有个选项 “替换现有Linux” 可以自动格掉ub并安装fc,硬盘
> > > 装就麻烦了
> > >
> > > 于 2011年01月18日 14:15, Run 写道:
> > > > 请教一下各位:
> > > > 我的电脑*只*安装了Ubuntu 10.10 ,现在想把Ubuntu格掉,*只*安装Fedora14,但是我刻光盘刻了3次都刻废掉了,
> > > > 现在想直接硬盘安装,不知道应该怎么装?网上这方面的资料好像很少
> > > > 谢谢!
> > > > _______________________________________________
> > > > Chinese mailing list
> > > > Chinese at lists.fedoraproject.org
> > > > https://admin.fedoraproject.org/mailman/listinfo/chinese
> > >
> > >
> > > --
> > > Mike.
> > > Blog: http://ekd123.is-programmer.com/
> > > Fedora Project Contributor.
> > >
> > > _______________________________________________
> > > Chinese mailing list
> > > Chinese at lists.fedoraproject.org
> > > https://admin.fedoraproject.org/mailman/listinfo/chinese
> > >
> >
> >
> >
> > --
> >
> > Hi
> >
> >
> >
> >
> >
> >
> > Best regards
> > Big Bird
> > **
> > *
> >
> >
> ---------------------------------------------------------------------------------------------------------------------------
> > *
> > ***QQ: 353056564*
> > *MSN ID:   wp0822在msn.com *
> >
> > *Skype ID :  wpahipc*
> >
> > *Tel:       13423972311 *
> >
> > http://netniaowo.co.cc
> > <http://wpah.co.cc/><
> >
> https://mail.google.com/mail/html/compose/static_files/www.macropower.com.sg
> > >
> > _______________________________________________
> > Chinese mailing list
> > Chinese at lists.fedoraproject.org
> > https://admin.fedoraproject.org/mailman/listinfo/chinese
> >
>
>
>
> --
> Yu
> _______________________________________________
> Chinese mailing list
> Chinese at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/chinese
>


关于邮件列表 Chinese 的更多信息