I haven't done it myself but I believe this is how:
1st command mounts your ubuntu systemCode:sudo mount /dev/sdc5 /mnt sudo grub-install --root-directory=/mnt/ /dev/sda
2nd installs grub2 to mbr on sda
I haven't done it myself but I believe this is how:
1st command mounts your ubuntu systemCode:sudo mount /dev/sdc5 /mnt sudo grub-install --root-directory=/mnt/ /dev/sda
2nd installs grub2 to mbr on sda
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):
Here's what it said after the second command, which is where I believe the problems lie: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 .
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:~$
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:
Then I get the same thing I did before after running the second command:Code:mount: /dev/sdc already mounted or /mnt busy
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:~$
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".
you, sir, are a genius.
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!
Glad it all worked out
Bookmarks