Quote:
Originally Posted by colorpurple21859
why didn't you plug both usbs in at the same time and
Code:
dd if=/dev/sd? of=/dev/sd?
where the ? will be what usb-a and usb-b are respectivly?
assumimg the usb you won't to fix is sdb
Code:
sudo umount /dev/sdb1
sudo mount /dev/sdb1 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sdb
This also assumes there is a /boot/grub/grub.cfg already exist on the usb.
the umount is in case the usb was automounted when plugged in.
You may have a bad usb. They do go bad eventually depending on how old they are.
|
Thanks again for the efforts. I did copy directly using your suggestion, but that did not make any difference. That was my attempt. They are not different.
I checked the /boot/grub/grub.cfg file exists.
I tried your second suggesion, I get the following error. This is not installing the grub, for the last command the reported error is as follows:
arasu@lihome:~$ sudo grub-install --boot-directory=/mnt/boot /dev/sdb
Unrecognized option `--boot-directory=/mnt/boot'
Usage: grub-install [OPTION] install_device
Install GRUB on your drive.
-h, --help print this message and exit
-v, --version print the version information and exit
--root-directory=DIR install GRUB images under the directory DIR
instead of the root directory
--grub-shell=FILE use FILE as the grub shell
--no-floppy do not probe any floppy drive
--force-lba force GRUB to use LBA mode even for a buggy
BIOS
--recheck probe a device map even if it already exists
INSTALL_DEVICE can be a GRUB device name or a system device filename.
grub-install copies GRUB images into the DIR/boot directory specfied by
--root-directory, and uses the grub shell to install grub into the boot
sector.
Report bugs to <bug-grub@gnu.org>.
arasu@lihome:~$