分类: LINUX
2010-08-26 22:30:15
November 27th, 2009 | # |
First Cup of Ubuntu
Join Date: Oct 2009
Beans: 7
Ubuntu 9.10 Karmic Koala
|
Re: Wubi 9.10 + upgrade ubuntu = sh:grub>
thanks phillw,
# Set root (normally would be sda1, or hd0,1 Change as necessary set root=(hd0,1) this is (hd0,2) for me. hd0,1 looks like the notebooks recovery dir for windows I get stuck at: root=/dev/sda1 loop=/ubuntu/disks/root.disk ro with tab the sda1 is not available but i see sdp1, is this one i should use? thanks in advance. |
November 30th, 2009 | # |
First Cup of Ubuntu
Join Date: Oct 2009
Beans: 7
Ubuntu 9.10 Karmic Koala
|
Re: Wubi 9.10 + upgrade ubuntu = sh:grub>
Just to update how i 'Solved' this.
Tried to save the Wubi but couldn't. Then i Started thinking. Is Wubi something i really want? Ubuntu installed in Windows. It just did not sound right to me. So this is what i did: Burned a Mint7 Live cd. (on my other laptop that has a cdrom burner) I Like this more than Ubuntu because of the extras that are not standard installed in Ubuntu like compiz-manager, media codecs etc. And i also like the green much more than the brown, im sorry if i offend people by saying this I Booted from the fresh Mint Live CD. Then i installed usb-creator with: sudo apt-get update && sudo apt-get install usb-creator. Opened usb-creator from the menu and made an Mint 7 Live usb. Then i used that usb stick to boot into mint7 on my acer one. After booting i installed Mint 7 on my acer one. After installation of mint7 i mounted my windows drive with: sudo mkdir /media/windows_sucks && sudo mount /dev/sda2 /media/windows_sucks Then i mounted the old Ubuntu Wubi root.disk file so i could copy all my files i needed from the old Wubi installation with: sudo mkdir /media/wubi && sudo mount -o loop /media/windows_sucks/ubuntu/disks/root.disk /media/wubi And finally copied all the config files, mysql databases etc. i needed from that partition to my newly installed Mint installation. Now i'm very happy My next step is to customize the mint usb stick so i can install Mint7 for all my friends when i come over and notice that their stuck on all sorts of windows viruses and scare ware. Dualboot off course. So they can still choose to boot into lame windows if they want to. |
December 1st, 2009 | # |
First Cup of Ubuntu
Join Date: Dec 2009
Beans: 3
|
Re: Wubi 9.10 + upgrade ubuntu = sh:grub>
Hi,
I have the same problem with u I install ubuntu with wubi, and last night, I changed the grub menu list, then,when I reboot, = sh:grub what I do with the grub menu list are: __________________________ sudo chmod 744 /boot/grub/grub.cfg sudo gedit /boot/grub/grub.cfg --------------------------- ### BEGIN /etc/grub.d/00_header ### if [ -s /boot/grub/grubenv ]; then have_grubenv=true load_env fi set default="1" if [ ${prev_saved_entry} ]; then saved_entry=${prev_saved_entry} save_env saved_entry prev_saved_entry= save_env prev_saved_entry fi insmod ext2 set root=(hd0, search --no-floppy --fs-uuid --set b9c8f0c6-f9c5-4eba-bdbb-db509bdea0bf if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=640x480 insmod gfxterm insmod vbe if terminal_output gfxterm ; then true ; else # For backward compatibility with versions of terminal.mod that don't # understand terminal_output terminal gfxterm fi fi 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/white ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry "Ubuntu, Linux 2.6.31-14-generic" { recordfail=1 if [ -n ${have_grubenv} ]; then save_env recordfail; fi set quiet=1 insmod ext2 set root=(hd0, search --no-floppy --fs-uuid --set b9c8f0c6-f9c5-4eba-bdbb-db509bdea0bf linux /boot/vmlinuz-2.6.31-14-generic root=UUID=b9c8f0c6-f9c5-4eba-bdbb-db509bdea0bf ro quiet splash initrd /boot/initrd.img-2.6.31-14-generic } ### END /etc/grub.d/10_linux ### __________________________ I setted " timeout = 10 " to "timeout = 3" , then I saved the file. After reboot , I got the problem . __________________________ I will try this ____- Quote: # Add the ntfs module insmod ntfs # Set root (normally would be sda1, or hd0,1 Change as necessary set root=(hd0,1) loopback loop0 /ubuntu/disks/root.disk # Yes, set root for a second time. I don't know why... set root=(loop0) # Set the kernel. You can (and should) use Tab (twice) to complete entries such as the kernel when possible - type vml and then TAB twice and it will autocomplete to the point where there are two possibilities. Tab complete ensures the path/file names as typed exist. Additionally, if you suspect the new kernel is the problem, you might want to select an earlier one. vmlinuz.... should be a complete kernel entry such as "vmlinuz-2.6.31-15-generic-pae" * linux /boot/vmlinuz.... root=/dev/sda1 loop=/ubuntu/disks/root.disk ro # Set the initrd image - complete or tab to get the full name Example: "/boot/initrd.img-2.6.31-15-generic-pae" initrd /boot/initrd/initrd.img... # Boot. boot ______ |
December 5th, 2009 | # |
First Cup of Ubuntu
Join Date: Dec 2009
Beans: 4
|
Re: Wubi 9.10 + upgrade ubuntu = sh:grub>
I just had this problem too, and solved it. Maybe this is a double post for a solution but I want to clarify it.
Solution for Windows ME/XP: Code:
sh:grub>set root=(loop0) Solution for Windows Vista/7: Code:
sh:grub>set root=(loop0) *[1]Notice the change sda2. Because sda1 is used as boot partition under Windows Vista/7. *[2]Without quotes Last edited by Dead Pixel; December 5th, 2009 at 10:54 AM.. |
a4696607422014-03-20 18:52:35
请教下, 红帽6.1安装在磁盘镜像中改如何引导呢?
我测试boot成功加载了,但是无法加载根
我是这样写的
menuentry "--------redhat_disk-------" {
insmod ext2
insmod ext3
set root='(hd0,msdos1)'
loopback loop0 /redhat.img
set root=(loop0)
linux (loop0)/boot/vmlinuz-2.6.32-131.0.15.el6.x86_64 root=LABEL=/ ro
initrd (loop0)/boot/initramfs-2.6.32-131.0.15.el6.x86_64.img
boot
}