Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
linux deepin 引导被覆盖后怎么修复
Experiences and Insight
4777
views ·
4
replies ·
To
floor
Go
hiid365
deepin
2011-11-19 07:37
Author
先前装了linux deepin,并windows 7能使用,是linuxdeepin自带的引导,后来安装Centos 6把linuxdeepin的引导覆盖了,现在引导变成了centos带的引导grub.windows7能进,但是linuxdeepin进不了了,从win7进linuxdeepin的分区/boot/grub 找到grub.cfg,想用easyBCD新建引导弄上去,但是grub.cfg和menu.lst不一样不懂呀,求高手解决。附上grub.cfg里有用的一段,求高手看下怎么写.用easybcd'装nerogrub后menu.lst怎么写……
initrd /boot/initrd.img-2.6.38-12-generic
}
menuentry 'Linux Deepin 11.06.1 32-bit, 2.6.38-11-generic (/dev/sda13)' --class linuxdeepin --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos13)'
search --no-floppy --fs-uuid --set=root 64fc79b0-2783-402a-a52d-24ca56deb0bc
linux /boot/vmlinuz-2.6.38-11-generic root=UUID=64fc79b0-2783-402a-a52d-24ca56deb0bc ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry 'Linux Deepin 11.06.1 32-bit, 2.6.38-11-generic (/dev/sda13) -- recovery mode' --class linuxdeepin --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos13)'
search --no-floppy --fs-uuid --set=root 64fc79b0-2783-402a-a52d-24ca56deb0bc
echo 'Loading Linux 2.6.38-11-generic ...'
linux /boot/vmlinuz-2.6.38-11-generic root=UUID=64fc79b0-2783-402a-a52d-24ca56deb0bc ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-11-generic
}
}
### END
Reply
Like 0
Favorite
View the author
All Replies
ubuntu6113
deepin
2011-11-19 10:24
#1
主引导记录换成Grub4dos的写起来最简单,用Kernel 命令引导相应的Core.img 文件,用Chainloader 命令引导Bootmgr 文件。手机打字母不方便,具体操作可以搜索一下。
Reply
Like 0
View the author
hazzm02
deepin
2011-11-19 21:14
#2
从deepin安装盘启动,进入终端。
sudo -i切换到超级用户。
fdisk -l查看deepin是装在哪个盘里,假设在/dev/sda6
mount /dev/sda6 /mnt挂载到mnt目录下。
grub-install --root-directory=/mnt /dev/sda指定grub到deepin的盘中找引导配置。
重启后选择硬盘上在deepin,终端执行sudo update-grub就更新了所有配置。
Reply
Like 0
View the author
xir1234
deepin
2012-08-02 05:00
#3
我也同样问题,依旧没解决呀 高手呢
Reply
Like 0
View the author
zamffkfc
deepin
2012-08-02 23:37
#4
这么简单的问题,,你用个usbpe启动盘启动后再用BOOTICE.EXE将grub4dos写进MBR,然后就不可以了用gurb4dos引导了!DEEPIN是强制将GRUB的引导写进MBR而不会像ubuntu样可以写到分区的!当然,,你也可以用USB启动盘内的ubuntu 安装镜像启动后将引导写到分区去,,不过要注意要"sudo umount -l /isodevice",,deepin的镜像是不行的,还会写到MBR去
Reply
Like 0
View the author
Please
sign
in first
New Thread
Popular Ranking
Change
deepin donwloader don't catch download launch from browsers
deepin 23 internal testing update on December 20, 2024
Popular Events
More
initrd /boot/initrd.img-2.6.38-12-generic
}
menuentry 'Linux Deepin 11.06.1 32-bit, 2.6.38-11-generic (/dev/sda13)' --class linuxdeepin --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos13)'
search --no-floppy --fs-uuid --set=root 64fc79b0-2783-402a-a52d-24ca56deb0bc
linux /boot/vmlinuz-2.6.38-11-generic root=UUID=64fc79b0-2783-402a-a52d-24ca56deb0bc ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry 'Linux Deepin 11.06.1 32-bit, 2.6.38-11-generic (/dev/sda13) -- recovery mode' --class linuxdeepin --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos13)'
search --no-floppy --fs-uuid --set=root 64fc79b0-2783-402a-a52d-24ca56deb0bc
echo 'Loading Linux 2.6.38-11-generic ...'
linux /boot/vmlinuz-2.6.38-11-generic root=UUID=64fc79b0-2783-402a-a52d-24ca56deb0bc ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-11-generic
}
}
### END