Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 25
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,026

    You could try it this way:
    Code:
    sudo grub-install /dev/sda
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  2. #12
    Same problem still unfortunately Jay

    ubuntu@ubuntu:~$ sudo grub-install /dev/sda
    /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?)

  3. #13
    how did you install ubuntu????
    Did you Install it inside Windows or Normally Installed???????

  4. $spacer_open
    $spacer_close
  5. #14
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    To get some detailed information on your system and boot files, go to the site below read the instructions, download the bootinfoscript using your Ubuntu CD and run it as explained at the site (instructions in the link in Description box): Post the results.txt output here:

    Boot Info Script | Free System Administration software downloads at SourceForge.net

    Are you using the latest (12.04) version of Ubuntu?

  6. #15
    vich00ss, yancek,

    Firstly thanks for your help.

    I'm not sure where I originally booted it, although I have a feeling that it might have been to the wrong place! I tried to install it normally from the CD. I've since even tried deleting the partition creating a new one to reinstall Ubuntu but none of what I have tried has seemed to help.

    Yes I am using the latest version (12.04).

    I will take your advice yancek once the wireless receiver that I have ordered arrives (current one doesnt seem to work). I'll then post the output here once I have taken the advice in the link that you have provided.

  7. #16
    Hi All,

    I now have Ubuntu online access so have ran the boot info script. Here is my output. Can anybody advise on what to do next to set up a dual boot with Ubuntu and Windows? Thank you.



    Code:
                      Boot Info Script 0.61      [1 April 2012]
    
    
    ============================= Boot Info Summary: ===============================
    
     => Windows is installed in the MBR of /dev/sda.
    
    sda1: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7: NTFS
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files:        /grldr /bootmgr /Boot/BCD /grldr
    
    sda2: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7: NTFS
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files:        /Windows/System32/winload.exe
    
    sda3: __________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info: 
    
    sda5: __________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info: 
    
    sda6: __________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info: 
        Operating System:  Ubuntu 12.04 LTS
        Boot files:        /boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab
    
    ============================ Drive/Partition Info: =============================
    
    Drive: sda _____________________________________________________________________
    
    Disk /dev/sda: 750.2 GB, 750156374016 bytes
    255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
    
    /dev/sda1    *          2,048       206,847       204,800   7 NTFS / exFAT / HPFS
    /dev/sda2             206,848   976,779,060   976,572,213   7 NTFS / exFAT / HPFS
    /dev/sda3         976,779,262 1,465,147,391   488,368,130   5 Extended
    /dev/sda5       1,445,617,664 1,465,147,391    19,529,728  82 Linux swap / Solaris
    /dev/sda6         976,779,264 1,445,617,663   468,838,400  83 Linux
    
    
    "blkid" output: ________________________________________________________________
    
    Device           UUID                                   TYPE       LABEL
    
    /dev/loop0                                              squashfs   
    /dev/sda1        9898DDFF98DDDC36                       ntfs       System Reserved
    /dev/sda2        3080E06880E0364E                       ntfs       
    /dev/sda5        16c60ffe-518b-4ffa-8143-19afda661ae8   swap       
    /dev/sda6        3f5402d2-f4c4-4c26-9f80-e3a21274cc7d   ext4       
    /dev/sr0                                                iso9660    Ubuntu 12.04 LTS amd64
    
    ================================ Mount points: =================================
    
    Device           Mount_Point              Type       Options
    
    /dev/loop0       /rofs                    squashfs   (ro,noatime)
    /dev/sda2        /media/3080E06880E0364E  fuseblk    (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
    /dev/sda6        /media/3f5402d2-f4c4-4c26-9f80-e3a21274cc7d ext4       (rw,nosuid,nodev,uhelper=udisks)
    /dev/sr0         /cdrom                   iso9660    (ro,noatime)
    
    
    =========================== sda6/boot/grub/menu.lst: ===========================
    
    --------------------------------------------------------------------------------
    title First Ubuntu Jaunty Server OS (chainloader)
    rootnoverify      (hd0,5)
    chainloader       +1
    
    --------------------------------------------------------------------------------
    
    =========================== sda6/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
      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 efi_gop
      insmod efi_uga
      insmod video_bochs
      insmod video_cirrus
    }
    
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set=root 3f5402d2-f4c4-4c26-9f80-e3a21274cc7d
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
      insmod part_msdos
      insmod ext2
      set root='(hd0,msdos6)'
      search --no-floppy --fs-uuid --set=root 3f5402d2-f4c4-4c26-9f80-e3a21274cc7d
      set locale_dir=($root)/boot/grub/locale
      set lang=en_US
      insmod gettext
    fi
    terminal_output gfxterm
    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
    if background_color 44,0,30; then
      clear
    fi
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    function gfxmode {
    	set gfxpayload="$1"
    	if [ "$1" = "keep" ]; then
    		set vt_handoff=vt.handoff=7
    	else
    		set vt_handoff=
    	fi
    }
    if [ ${recordfail} != 1 ]; then
      if [ -e ${prefix}/gfxblacklist.txt ]; then
        if hwmatch ${prefix}/gfxblacklist.txt 3; then
          if [ ${match} = 0 ]; then
            set linux_gfx_mode=keep
          else
            set linux_gfx_mode=text
          fi
        else
          set linux_gfx_mode=text
        fi
      else
        set linux_gfx_mode=keep
      fi
    else
      set linux_gfx_mode=text
    fi
    export linux_gfx_mode
    if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
    menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	gfxmode $linux_gfx_mode
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos6)'
    	search --no-floppy --fs-uuid --set=root 3f5402d2-f4c4-4c26-9f80-e3a21274cc7d
    	linux	/boot/vmlinuz-3.2.0-23-generic root=UUID=3f5402d2-f4c4-4c26-9f80-e3a21274cc7d ro   quiet splash $vt_handoff
    	initrd	/boot/initrd.img-3.2.0-23-generic
    }
    menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos6)'
    	search --no-floppy --fs-uuid --set=root 3f5402d2-f4c4-4c26-9f80-e3a21274cc7d
    	echo	'Loading Linux 3.2.0-23-generic ...'
    	linux	/boot/vmlinuz-3.2.0-23-generic root=UUID=3f5402d2-f4c4-4c26-9f80-e3a21274cc7d ro recovery nomodeset 
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-3.2.0-23-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,msdos6)'
    	search --no-floppy --fs-uuid --set=root 3f5402d2-f4c4-4c26-9f80-e3a21274cc7d
    	linux16	/boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos6)'
    	search --no-floppy --fs-uuid --set=root 3f5402d2-f4c4-4c26-9f80-e3a21274cc7d
    	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
    	insmod part_msdos
    	insmod ntfs
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root 9898DDFF98DDDC36
    	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 ###
    --------------------------------------------------------------------------------
    
    =============================== sda6/etc/fstab: ================================
    
    --------------------------------------------------------------------------------
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' 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    nodev,noexec,nosuid 0       0
    # / was on /dev/sda6 during installation
    UUID=3f5402d2-f4c4-4c26-9f80-e3a21274cc7d /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=16c60ffe-518b-4ffa-8143-19afda661ae8 none            swap    sw              0       0
    --------------------------------------------------------------------------------
    
    =================== sda6: Location of files loaded by Grub: ====================
    
               GiB - GB             File                                 Fragment(s)
    
                   =                boot/grub/grub.cfg                             1
                   =                boot/grub/menu.lst                             1
                   =                boot/initrd.img-3.2.0-23-generic               2
                   =                boot/vmlinuz-3.2.0-23-generic                  1
                   =                initrd.img                                     2
                   =                vmlinuz                                        1
    
    =============================== StdErr Messages: ===============================
    
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in

  8. #17
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    Everything looks good and should boot except for the first line in the bootinfoscript: YOU STILL HAVE WINDOWS IN THE MR! Is that what you want? If so, nothing you do with Grub is going to change anything. You need to either configure EasyBCD to boot Ubuntu and that didn't work so well last time, or install Grub to the master boot record of your hard drive. Are you still at the original problem of not being able to boot Ubuntu? Your Ubuntu partition is sda6 so the separate commands listed below should work from a terminal in the Live CD:

    sudo mount /dev/sda6 /mnt
    sudo grub-install --root-directory=/mnt /dev/sda
    If you get an error about the filesystem change the first command to: sudo mount -t ext4 /dev/sda6 /mnt

  9. #18
    Well, I would ideally like for when I turn on the computer to have grub give me the choice of loading windows or Ubuntu and after 10 seconds or so automatically loading Ubuntu. My present situation is that Windows autoloads, unless the Ubuntu liveCD is in. I cannot get Ubuntu to load at all without the CD. I will try the commands that you have given above now.

  10. #19
    Wow, it appears to have worked.
    [CODEubuntu@ubuntu:~$ sudo mount /dev/sda6 /mnt
    ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt /dev/sda
    Installation finished. No error reported.
    ][/CODE]

    I'm going to restart to find out.

  11. #20
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    That was quick! Have you been sitting at your computer for the last five days? Must be tired. Post back if it works. Also, save the command with note as to what it does in a text file somewhere, just in case.

Posting Permissions

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