Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Grub Loading. Error: No such disk

  1. #11
    Join Date
    Nov 2009
    Location
    North Vancouver
    Beans
    Hidden!
    Distro
    Edubuntu 14.04 Trusty Tahr

    Re: Grub Loading. Error: No such disk

    I haven't done it myself but I believe this is how:
    Code:
    sudo mount /dev/sdc5 /mnt
    sudo grub-install --root-directory=/mnt/ /dev/sda
    1st command mounts your ubuntu system
    2nd installs grub2 to mbr on sda

  2. #12
    Join Date
    Oct 2009
    Beans
    79

    Re: Grub Loading. Error: No such disk

    Ok, it feels like we're getting a little bit closer.

    Here's what I got after the first command (which I assume worked fine):

    Code:
    ubuntu@ubuntu:~$ sudo mount /dev/sdc5 /mnt ext4
    Usage: mount -V                 : print version
           mount -h                 : print this help
           mount                    : list mounted filesystems
           mount -l                 : idem, including volume labels
    So far the informational part. Next the mounting.
    The command is `mount [-t fstype] something somewhere'.
    Details found in /etc/fstab may be omitted.
           mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
           mount device             : mount device at the known place
           mount directory          : mount known device here
           mount -t type dev dir    : ordinary mount command
    Note that one does not really mount a device, one mounts
    a filesystem (of the given type) found on the device.
    One can also mount an already visible directory tree elsewhere:
           mount --bind olddir newdir
    or move a subtree:
           mount --move olddir newdir
    One can change the type of mount containing the directory dir:
           mount --make-shared dir
           mount --make-slave dir
           mount --make-private dir
           mount --make-unbindable dir
    One can change the type of all the mounts in a mount subtree
    containing the directory dir:
           mount --make-rshared dir
           mount --make-rslave dir
           mount --make-rprivate dir
           mount --make-runbindable dir
    A device can be given by name, say /dev/hda1 or /dev/cdrom,
    or by label, using  -L label  or by uuid, using  -U uuid .
    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
    For many more details, say  man 8 mount .
    Here's what it said after the second command, which is where I believe the problems lie:

    Code:
    ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt/ /dev/sda
    grub-probe: error: cannot find a device for /mnt//boot/grub.
    
    No path or device is specified.
    Try ``grub-probe --help'' for more information.
    Auto-detection of a filesystem module failed.
    Please specify the module with the option `--modules' explicitly.
    ubuntu@ubuntu:~$

  3. #13
    Join Date
    Nov 2009
    Location
    North Vancouver
    Beans
    Hidden!
    Distro
    Edubuntu 14.04 Trusty Tahr

    Re: Grub Loading. Error: No such disk

    Quote Originally Posted by djm227 View Post
    Ok, it feels like we're getting a little bit closer.

    Here's what I got after the first command (which I assume worked fine):

    Code:
    ubuntu@ubuntu:~$ sudo mount /dev/sdc5 /mnt ext4
    Try both commands again, but leave off the "ext4" on the end of the 1st.

  4. #14
    Join Date
    Oct 2009
    Beans
    79

    Re: Grub Loading. Error: No such disk

    Prior to running the two commands, if I left the filesystem (ext4) off of the first string, I would get:
    mount: you must specify the filesystem type
    Now if I do it without the ext4 I get:
    Code:
    mount: /dev/sdc already mounted or /mnt busy
    Then I get the same thing I did before after running the second command:
    Code:
    ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt/ /dev/sda
    grub-probe: error: cannot find a device for /mnt//boot/grub.
    
    No path or device is specified.
    Try ``grub-probe --help'' for more information.
    Auto-detection of a filesystem module failed.
    Please specify the module with the option `--modules' explicitly.
    ubuntu@ubuntu:~$ grub-probe --help
    Usage: grub-probe [OPTION]... [PATH|DEVICE]
    
    Probe device information for a given path (or device, if the -d option is given).
    
      -d, --device              given argument is a system device, not a path
      -m, --device-map=FILE     use FILE as the device map [default=/boot/grub/device.map]
      -t, --target=(fs|fs_uuid|drive|device|partmap|abstraction)
                                print filesystem module, GRUB drive, system device, partition map module or abstraction module [default=fs]
      -h, --help                display this message and exit
      -V, --version             print version information and exit
      -v, --verbose             print verbose messages
    
    Report bugs to <bug-grub@gnu.org>.
    ubuntu@ubuntu:~$

  5. #15
    Join Date
    Nov 2009
    Location
    North Vancouver
    Beans
    Hidden!
    Distro
    Edubuntu 14.04 Trusty Tahr

    Re: Grub Loading. Error: No such disk

    Just unmount it first and try again. The reason it failed the first time is you didn't specify the partition: you typed "sudo mount /dev/sda /mnt".

  6. #16
    Join Date
    Oct 2009
    Beans
    79

    Re: Grub Loading. Error: No such disk

    you, sir, are a genius.

  7. #17
    Join Date
    Feb 2008
    Location
    Texas City, Texas
    Beans
    830
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Grub Loading. Error: No such disk

    The mount command keeps telling you that you must specify the partition type like this:
    Code:
    ubuntu@ubuntu:~$ sudo mount -t ext4 /dev/sdc5 /mnt
    Break it, fix it, learn something.
    People who never make mistakes seldom make anything!

  8. #18
    Join Date
    Nov 2009
    Location
    North Vancouver
    Beans
    Hidden!
    Distro
    Edubuntu 14.04 Trusty Tahr

    Re: Grub Loading. Error: No such disk

    Glad it all worked out

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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