Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24
Hello Linux Forum. I am new to Linux and as confused as I can be with all this Grub, MBR, and Terminal commands stuff, (but I am enjoying the learning ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    28

    [SOLVED] Boot problems


    Hello Linux Forum.

    I am new to Linux and as confused as I can be with all this Grub, MBR, and Terminal commands stuff, (but I am enjoying the learning process) and I am hoping against hope to find a solution for this problem.

    Some History
    I had Linux Mint 10 32bit installed and was forced to remove it because of a problem that I couldn't get resolved (and believe me, I TRIED.) Though it's a moot point now, if you are interested in the issue that caused the removal of my original Mint install you can see my Post titled "Display does not fill the screen." In this Forum

    The Problem
    I have downloaded the Linux Mint 10 LXDE 64bit ver. Live DVD and installed it in place of the previous Linux Mint install. (That is, on the same /dev (hdd).)
    I deleted the partition and recreated it telling Mint to take the entire drive for the install.
    Now when I try to boot, all I get is a "grub rescue:>" and I cannot boot into Linux Mint or Windows XP.
    I have adjusted the boot order in the BIOS but I still get the same result.

    The only thing I can do successfully is boot with the Live DVD.
    Here is the output of the sudo fdisk -l command:

    Code:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000d4d20 Device Boot Start End Blocks Id System /dev/sda1 * 1 19457 156288321 83 Linux Disk /dev/sdb: 40.0 GB, 40017485312 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00012725 Device Boot Start End Blocks Id System /dev/sdb1 * 1 4864 39070048+ 7 HPFS/NTFS Disk /dev/sdc: 41.2 GB, 41173057024 bytes 255 heads, 63 sectors/track, 5005 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000ae92b Device Boot Start End Blocks Id System /dev/sdc1 1 5006 40206336 5 Extended /dev/sdc5 1 5006 40205312 83 Linux
    I have tried to update grub with the sudo update-grub command and I get the following error:
    /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
    You will notice that there is a Linux install on /dev/sda1. If I remember, this is just a backup. An image of a previous Linux install.

    Oh, and by the way, I installed Windows first.
    Please help if you can. I have some experience with Linux commands but not much. In a way, I am kind'a glad that this is happening because it forces me to learn Linux. And then I can remove Windows from my computer, never to return to it.

    Thank you in advance for your help.
    Last edited by MikeTbob; 04-24-2011 at 07:44 AM. Reason: Added Code Tags

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Post your /boot/grub/grub.cfg
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    28
    Here ya go MikeT.
    As requested.

    Code:
    # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then 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 load_video { insmod vbe insmod vga insmod video_bochs insmod video_cirrus } insmod part_msdos insmod ext2 set root='(/dev/sdc,msdos5)' search --no-floppy --fs-uuid --set 9ba17822-1a3f-455b-b512-503dca4b1a0a 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='(/dev/sdc,msdos5)' search --no-floppy --fs-uuid --set 9ba17822-1a3f-455b-b512-503dca4b1a0a set locale_dir=($root)/boot/grub/locale set lang=en insmod gettext set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/06_mint_theme ### insmod part_msdos insmod ext2 set root='(/dev/sdc,msdos5)' search --no-floppy --fs-uuid --set 9ba17822-1a3f-455b-b512-503dca4b1a0a insmod png if background_image /boot/grub/linuxmint.png ; then set color_normal=white/black set color_highlight=white/light-gray else set menu_color_normal=white/black set menu_color_highlight=white/light-gray fi ### END /etc/grub.d/06_mint_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'LinuxMint GNU/Linux, with Linux 2.6.32-5-686' --class linuxmint --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(/dev/sdc,msdos5)' search --no-floppy --fs-uuid --set 9ba17822-1a3f-455b-b512-503dca4b1a0a echo 'Loading Linux 2.6.32-5-686 ...' linux /boot/vmlinuz-2.6.32-5-686 root=UUID=9ba17822-1a3f-455b-b512-503dca4b1a0a ro quiet echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-686 } menuentry 'LinuxMint GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(/dev/sdc,msdos5)' search --no-floppy --fs-uuid --set 9ba17822-1a3f-455b-b512-503dca4b1a0a echo 'Loading Linux 2.6.32-5-686 ...' linux /boot/vmlinuz-2.6.32-5-686 root=UUID=9ba17822-1a3f-455b-b512-503dca4b1a0a ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-686 } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "LinuxMint GNU/Linux, with Linux 2.6.32-5-686 (on /dev/sda1)" { insmod part_msdos insmod ext2 set root='(/dev/sda,msdos1)' search --no-floppy --fs-uuid --set ce48fe5f-dad7-4fb4-af94-904a63f99d54 linux /boot/vmlinuz-2.6.32-5-686 root=UUID=ce48fe5f-dad7-4fb4-af94-904a63f99d54 ro quiet initrd /boot/initrd.img-2.6.32-5-686 } menuentry "LinuxMint GNU/Linux, with Linux 2.6.32-5-686 (recovery mode) (on /dev/sda1)" { insmod part_msdos insmod ext2 set root='(/dev/sda,msdos1)' search --no-floppy --fs-uuid --set ce48fe5f-dad7-4fb4-af94-904a63f99d54 linux /boot/vmlinuz-2.6.32-5-686 root=UUID=ce48fe5f-dad7-4fb4-af94-904a63f99d54 ro single initrd /boot/initrd.img-2.6.32-5-686 } menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" { insmod part_msdos insmod ntfs set root='(/dev/sdb,msdos1)' search --no-floppy --fs-uuid --set 26c05621c055f78f drivemap -s (hd0) ${root} chainloader +1 } ### 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 ###
    Thank you for taking a look.
    Last edited by MikeTbob; 04-24-2011 at 09:01 AM. Reason: added code tags

  4. $spacer_open
    $spacer_close
  5. #4
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    When you re-installed Mint, did you tell the installer to re-install grub also? Or is this leftover from the previous install? And finally, did you create MSDos filesystems? Linux wants and needs ext2 or better.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  6. #5
    Just Joined!
    Join Date
    Aug 2010
    Posts
    28
    Hmmm?
    When I installed Linux I didn't select any check boxes that would have changed the default install.
    So, if the installer re-installs grub by default then I would have to say yes. But I didn't re-install it intentionally.

    During the setup of the partition I did select ext4 for the fs type.

    I apologize that I didn't pay more attention. I have uninstalled and re-installed this so many times now that it is all a haze at this point.

    Is there a way that I can check these things?

    EDIT: I opened GParted and looked at the /dev/sdc info. and can confirm that the Partition Table is msdos.
    Last edited by patriot56; 04-24-2011 at 09:25 AM. Reason: To add to previous thread.

  7. #6
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Quiet frankly I'm a little confused about the grub config....I don't know if it's wrong or not. I can't check it because I'm not at a Linux machine and plus I'm really tired right now, I should get some sleep before I tell you to do something dumb. Anyone else feel free to jump in here.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  8. #7
    Just Joined!
    Join Date
    Aug 2010
    Posts
    28
    Thank you for taking the time to help me this late at night.
    I am ready to call it a night too.

    I'm not sure that the grub.cfg file is the correct one either.
    I will do a little searching and try to confirm whether or not it is the right one.

    Thanks again Mike and we can address this issue again at a later time.

  9. #8
    Just Joined!
    Join Date
    Aug 2010
    Posts
    28
    Ok, here's what I know for sure.

    I have three (3) internal HDD's in my computer that the two OS's can look to for boot info.
    Here are the three drives and their information according to boot info script

    Code:
    Boot Info Script 0.55 dated February 15th, 2010 ============================= Boot Info Summary: ============================== => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in partition #1 for (,msdos1)/boot/grub. => Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in partition #1 for (,msdos1)/boot/grub. => Grub 2 is installed in the MBR of /dev/sdc and looks on the same drive in partition #5 for (,msdos5)/boot/grub. sda1: _________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Linux Mint Debian Edition Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img sdb1: _________________________________________________________________________ File system: ntfs Boot sector type: Windows XP Boot sector info: No errors found in the Boot Parameter Block. Operating System: Windows XP Boot files/dirs: /grub/grub.cfg /boot.ini /ntldr /NTDETECT.COM /grub/core.img sdc1: _________________________________________________________________________ File system: Extended Partition Boot sector type: - Boot sector info: sdc5: _________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Linux Mint Debian Edition Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img =========================== Drive/Partition Info: ============================= Drive: sda ___________________ _____________________________________________________ Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes Partition Boot Start End Size Id System /dev/sda1 * 63 312,576,704 312,576,642 83 Linux Drive: sdb ___________________ _____________________________________________________ Disk /dev/sdb: 40.0 GB, 40017485312 bytes 255 heads, 63 sectors/track, 4865 cylinders, total 78159151 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes Partition Boot Start End Size Id System /dev/sdb1 * 63 78,140,159 78,140,097 7 HPFS/NTFS Drive: sdc ___________________ _____________________________________________________ Disk /dev/sdc: 41.2 GB, 41173057024 bytes 255 heads, 63 sectors/track, 5005 cylinders, total 80416127 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes Partition Boot Start End Size Id System /dev/sdc1 2,048 80,414,719 80,412,672 5 Extended /dev/sdc5 4,096 80,414,719 80,410,624 83 Linux blkid -c /dev/null: ____________________________________________________________ Device UUID TYPE LABEL /dev/loop0 squashfs /dev/sda1 ce48fe5f-dad7-4fb4-af94-904a63f99d54 ext4 /dev/sda: PTTYPE="dos" /dev/sdb1 26C05621C055F78F ntfs /dev/sdb: PTTYPE="dos" /dev/sdc1: PTTYPE="dos" /dev/sdc5 9ba17822-1a3f-455b-b512-503dca4b1a0a ext4 /dev/sdc: PTTYPE="dos" ============================ "mount | grep ^/dev output: =========================== Device Mount_Point Type Options aufs / aufs (rw) /dev/sr0 /live/image iso9660 (ro,noatime) /dev/sdc5 /media/9ba17822-1a3f-455b-b512-503dca4b1a0a ext4 (rw,nosuid,nodev,uhelper=udisks) /dev/sda1 /media/ce48fe5f-dad7-4fb4-af94-904a63f99d54 ext4 (rw,nosuid,nodev,uhelper=udisks) /dev/sdb1 /media/26C05621C055F78F fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions) =========================== sda1/boot/grub/grub.cfg: =========================== # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then 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 load_video { insmod vbe insmod vga insmod video_bochs insmod video_cirrus } insmod part_msdos insmod ext2 set root='(/dev/sda,msdos1)' search --no-floppy --fs-uuid --set ce48fe5f-dad7-4fb4-af94-904a63f99d54 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='(/dev/sda,msdos1)' search --no-floppy --fs-uuid --set ce48fe5f-dad7-4fb4-af94-904a63f99d54 set locale_dir=($root)/boot/grub/locale set lang=en insmod gettext set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/06_mint_theme ### insmod part_msdos insmod ext2 set root='(/dev/sda,msdos1)' search --no-floppy --fs-uuid --set ce48fe5f-dad7-4fb4-af94-904a63f99d54 insmod png if background_image /boot/grub/linuxmint.png ; then set color_normal=white/black set color_highlight=white/light-gray else set menu_color_normal=white/black set menu_color_highlight=white/light-gray fi ### END /etc/grub.d/06_mint_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'LinuxMint GNU/Linux, with Linux 2.6.32-5-686' --class linuxmint --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(/dev/sda,msdos1)' search --no-floppy --fs-uuid --set ce48fe5f-dad7-4fb4-af94-904a63f99d54 echo 'Loading Linux 2.6.32-5-686 ...' linux /boot/vmlinuz-2.6.32-5-686 root=UUID=ce48fe5f-dad7-4fb4-af94-904a63f99d54 ro quiet echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-686 } menuentry 'LinuxMint GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(/dev/sda,msdos1)' search --no-floppy --fs-uuid --set ce48fe5f-dad7-4fb4-af94-904a63f99d54 echo 'Loading Linux 2.6.32-5-686 ...' linux /boot/vmlinuz-2.6.32-5-686 root=UUID=ce48fe5f-dad7-4fb4-af94-904a63f99d54 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-686 } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" { insmod part_msdos insmod ntfs set root='(/dev/sdb,msdos1)' search --no-floppy --fs-uuid --set 26c05621c055f78f drivemap -s (hd0) ${root} chainloader +1 } menuentry "Ubuntu, with Linux 2.6.32-24-generic (on /dev/sde5)" { insmod part_msdos insmod ext2 set root='(/dev/sde,msdos5)' search --no-floppy --fs-uuid --set 848a6b4b-51da-4241-bf0e-ea42c581b819 linux /boot/vmlinuz-2.6.32-24-generic root=UUID=848a6b4b-51da-4241-bf0e-ea42c581b819 ro quiet splash initrd /boot/initrd.img-2.6.32-24-generic } menuentry "Ubuntu, with Linux 2.6.32-24-generic (recovery mode) (on /dev/sde5)" { insmod part_msdos insmod ext2 set root='(/dev/sde,msdos5)' search --no-floppy --fs-uuid --set 848a6b4b-51da-4241-bf0e-ea42c581b819 linux /boot/vmlinuz-2.6.32-24-generic root=UUID=848a6b4b-51da-4241-bf0e-ea42c581b819 ro single initrd /boot/initrd.img-2.6.32-24-generic } menuentry "Ubuntu, with Linux 2.6.32-21-generic (on /dev/sde5)" { insmod part_msdos insmod ext2 set root='(/dev/sde,msdos5)' search --no-floppy --fs-uuid --set 848a6b4b-51da-4241-bf0e-ea42c581b819 linux /boot/vmlinuz-2.6.32-21-generic root=UUID=848a6b4b-51da-4241-bf0e-ea42c581b819 ro quiet splash initrd /boot/initrd.img-2.6.32-21-generic } menuentry "Ubuntu, with Linux 2.6.32-21-generic (recovery mode) (on /dev/sde5)" { insmod part_msdos insmod ext2 set root='(/dev/sde,msdos5)' search --no-floppy --fs-uuid --set 848a6b4b-51da-4241-bf0e-ea42c581b819 linux /boot/vmlinuz-2.6.32-21-generic root=UUID=848a6b4b-51da-4241-bf0e-ea42c581b819 ro single initrd /boot/initrd.img-2.6.32-21-generic } ### 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 ### =============================== sda1/etc/fstab: =============================== # /etc/fstab: static file system information. # # Use 'vol_id --uuid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # / was on /dev/sda1 during installation UUID=39dce7bc-28c6-4d48-a3e1-b2d48712856e / ext3 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=f5355ad1-6de9-497b-a8d4-e2abe7336d4d none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 proc /proc proc nodev,noexec,nosuid 0 0 /dev/sda1 ext4 rw,errors=remount-ro 0 0 /dev/sdc1 / ext4 rw,errors=remount-ro 0 0 =================== sda1: Location of files loaded by Grub: =================== 126.8GB: boot/grub/core.img 19.4GB: boot/grub/grub.cfg .6GB: boot/initrd.img-2.6.32-5-686 126.8GB: boot/vmlinuz-2.6.32-5-686 .6GB: initrd.img 126.8GB: vmlinuz ============================= sdb1/grub/grub.cfg: ============================= # # Base grub.cfg file from grub24dos install - Windows only # After testing add Linux entries # See C:\grub\install\sample.cfg for examples # echo The Windows boot address is $winboot set menu_color_normal=white/blue set menu_color_highlight=black/green set default=0 set timeout=10 menuentry "Windows 7 MBR disk" --class windows { set root=$winboot chainloader +1 } # Grub Invaders - Just for fun..... try it menuentry "Grub Invaders" --class invaders { set root=$winboot multiboot /grub/winsource/invaders.exec } ================================ sdb1/boot.ini: ================================ [boot loader] Timeout=5 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect C:\grub\winloader\xpstage1.img="Grub2 For Dos" =================== sdb1: Location of files loaded by Grub: =================== ??GB: grub/core.img ??GB: grub/grub.cfg =========================== sdc5/boot/grub/grub.cfg: =========================== # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates1. Boot your computer up with Ubuntu CD 2. Open a terminal window or switch to a tty. 3. Type sudo grub. Should get text of which last line is grub> 4. Type "find /boot/grub/stage1". You'll get a response like "(hd1,0)". Use whatever your computer spits out for the following lines. 5. Type "root (hd1,0)", or whatever your hard disk + boot partition numbers are for Ubuntu. 6. Type "setup (hd1)", to install GRUB to MBR 7. Quit grub by typing "quit". 8. Reboot and remove the bootable CD. # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then 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 load_video { insmod vbe insmod vga insmod video_bochs insmod video_cirrus } insmod part_msdos insmod ext2 set root='(/dev/sdc,msdos5)' search --no-floppy --fs-uuid --set 9ba17822-1a3f-455b-b512-503dca4b1a0a 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='(/dev/sdc,msdos5)' search --no-floppy --fs-uuid --set 9ba17822-1a3f-455b-b512-503dca4b1a0a set locale_dir=($root)/boot/grub/locale set lang=en insmod gettext set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/06_mint_theme ### insmod part_msdos insmod ext2 set root='(/dev/sdc,msdos5)' search --no-floppy --fs-uuid --set 9ba17822-1a3f-455b-b512-503dca4b1a0a insmod png if background_image /boot/grub/linuxmint.png ; then set color_normal=white/black set color_highlight=white/light-gray else set menu_color_normal=white/black set menu_color_highlight=white/light-gray fi ### END /etc/grub.d/06_mint_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'LinuxMint GNU/Linux, with Linux 2.6.32-5-686' --class linuxmint --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(/dev/sdc,msdos5)' search --no-floppy --fs-uuid --set 9ba17822-1a3f-455b-b512-503dca4b1a0a echo 'Loading Linux 2.6.32-5-686 ...' linux /boot/vmlinuz-2.6.32-5-686 root=UUID=9ba17822-1a3f-455b-b512-503dca4b1a0a ro quiet echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-686 } menuentry 'LinuxMint GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(/dev/sdc,msdos5)' search --no-floppy --fs-uuid --set 9ba17822-1a3f-455b-b512-503dca4b1a0a echo 'Loading Linux 2.6.32-5-686 ...' linux /boot/vmlinuz-2.6.32-5-686 root=UUID=9ba17822-1a3f-455b-b512-503dca4b1a0a ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-686 } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "LinuxMint GNU/Linux, with Linux 2.6.32-5-686 (on /dev/sda1)" { insmod part_msdos insmod ext2 set root='(/dev/sda,msdos1)' search --no-floppy --fs-uuid --set ce48fe5f-dad7-4fb4-af94-904a63f99d54 linux /boot/vmlinuz-2.6.32-5-686 root=UUID=ce48fe5f-dad7-4fb4-af94-904a63f99d54 ro quiet initrd /boot/initrd.img-2.6.32-5-686 } menuentry "LinuxMint GNU/Linux, with Linux 2.6.32-5-686 (recovery mode) (on /dev/sda1)" { insmod part_msdos insmod ext2 set root='(/dev/sda,msdos1)' search --no-floppy --fs-uuid --set ce48fe5f-dad7-4fb4-af94-904a63f99d54 linux /boot/vmlinuz-2.6.32-5-686 root=UUID=ce48fe5f-dad7-4fb4-af94-904a63f99d54 ro single initrd /boot/initrd.img-2.6.32-5-686 } menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" { insmod part_msdos insmod ntfs set root='(/dev/sdb,msdos1)' search --no-floppy --fs-uuid --set 26c05621c055f78f drivemap -s (hd0) ${root} chainloader +1 } ### 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 ### =============================== sdc5/etc/fstab: =============================== # /etc/fstab: static file system information.1. Boot your computer up with Ubuntu CD 2. Open a terminal window or switch to a tty. 3. Type sudo grub. Should get text of which last line is grub> 4. Type "find /boot/grub/stage1". You'll get a response like "(hd1,0)". Use whatever your computer spits out for the following lines. 5. Type "root (hd1,0)", or whatever your hard disk + boot partition numbers are for Ubuntu. 6. Type "setup (hd1)", to install GRUB to MBR 7. Quit grub by typing "quit". 8. Reboot and remove the bootable CD. # # Use 'vol_id --uuid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # / was on /dev/sda1 during installation UUID=39dce7bc-28c6-4d48-a3e1-b2d48712856e / ext3 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=f5355ad1-6de9-497b-a8d4-e2abe7336d4d none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 proc /proc proc nodev,noexec,nosuid 0 0 /dev/sdc5 / ext4 rw,errors=remount-ro 0 0 =================== sdc5: Location of files loaded by Grub: =================== 17.3GB: boot/grub/core.img 8.8GB: boot/grub/grub.cfg .7GB: boot/initrd.img-2.6.32-5-686 17.3GB: boot/vmlinuz-2.6.32-5-686 .7GB: initrd.img 17.3GB: vmlinuz
    I took one look at this and my eyes glazed over.
    Last edited by MikeTbob; 04-24-2011 at 05:01 PM. Reason: Added Code Tags

  10. #9
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    1. Boot your computer up with Ubuntu CD
    2. Open a terminal window.
    3. Type sudo grub.
    4. Type "find /boot/grub/stage1". You'll get a response like "(hd1,0)".
    Use whatever your computer spits out for the following lines.
    5. Type "root (hd1,0)", or whatever your hard disk + boot partition
    numbers are for Ubuntu.
    6. Type "setup (hd1)", to install GRUB to MBR
    7. Quit grub by typing "quit".
    8. Reboot and remove the bootable CD.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  11. #10
    Just Joined!
    Join Date
    Aug 2010
    Posts
    28
    As my luck would have it, when I enter the sudo grub command I get the following error:

    [INDENTsudo: grub: command not found][/INDENT]

    Did I enter it correctly?

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •