I purchased an Acer Aspire M5-481PT-6688 which came preloaded with Windows 8. I wiped that, reinstalled my own bloatware-free copy, and tried to dual boot Ubuntu 13.04 on it. It has a hybrid drive, so when I installed it running alongside Windows, Ubuntu was installed to the SSD and Windows is on the HHD. I later removed Ubuntu via formatting the SSD and now I'm stuck at the grub rescue>
prompt. The error says: no such device
. No matter what key combo I press (F2, F8, F10, F12, Esc, Del) I cannot access my BIOS nor can I boot from the CD/DVD drive or USB.
Ubuntu – Grub rescue no such device, also cannot access BIOS
bootgrub2
Best Answer
Using the awesome guide of drs350 in ubuntuforums.org (kudos to him) you can boot up your live CD and even install Ubuntu from the
grub rescue>
prompt. Here the exact steps:Preconditions
This procedure will work for:
In order for this procedure to work, you must:
The procedure will not work for:
Boot Procedure
Download the ISO.
Locate the Ubuntu partition and the folder containing the Grub modules.
The Grub folder containing the modules must be located so the correct modules can be loaded. This folder would have been created during the initial installation of Ubuntu and should be located in the Ubuntu partition. This folder would normally be located at either
(hdX,Y)/boot/grub
or(hdX,Y)/usr/lib/grub/i386-pc
Find your existing Ubuntu partition and the module folder.
ls
- should return all known drives(hdX)
and partitions(hdX,Y)
ls (hdX,Y)/
- should show the contents of the root directory of the partition.lost+found/
,home/
,boot/
andvmlinuz
andinitrd.img
. Use this address as the first part of the next command.ls (hdX,Y)/boot/grub
- should display several dozen *.mod files. This is the folder you are looking for.Load the modules.
This command must correctly point to the folder containing the Grub modules. The address should be the one in the previous section which displayed the modules. Examples:
Load modules:
A "file not found" error means that the path in the prefix is incorrect or the specific module does not exist. The prefix setting may be reviewed with the set command. Rerun the
"set prefix="
command with the proper path.Locate the Ubuntu ISO file.
Using the same combinations of ls commands, locate the Ubuntu ISO image.
Create the loopback device.
Example:
Load the Linux kernel and initrd image.
If the path to the ISO or filename is not correct, the boot will halt at the BusyBox screen and produce a message stating "can't open /dev/sr0: No medium found".
Note: If the ISO file is not in the
/
folder, include the path in theiso-scan/filename=
entry. See second example.Examples:
Boot.
That should be it. If the commands ran without any messages/errors, the commands were accepted as entered. It's now time to boot:
Install Ubuntu - From Live CD ISO
Note on Oneiric Daily ISO Installs: The current daily build of Oneiric Ocelot requires login to get to the Desktop. Choosing the default user will not allow use of
sudo
as no password exists for the user. Select 'Other', then username 'Ubuntu' and leave the password field blank. This will allow the use ofsudo
to unmount the/isodevice
during the installation process.Installation onto your hard drive is possible from a booted ISO file. A CD is not required. An Internet connection is recommended but not required. Without a connection packages installed from the ISO will not be updated and additional packages will not be downloaded.
Boot to the Live CD Desktop using the above ISO boot procedure.
Note: If you have a large amount of RAM you may be able to use the toram option. This will allow the system to boot into memory and permit automatic unmounting of the isodevice1 during the installation. /isodevice must be unmounted for a successful installation. If /isodevice cannot be unmounted by the installer, the installation will fail unless the user forces its unmounting. This forced unmounting is included in the procedure detailed later in this section.
If you would like to try the toram option, replace the linux line in the above and use this one instead:
/isodevice
can be unmounted by the installer at the prompt, the installation will continue./isodevice
, the install will fail and the system may freeze. Reboot and complete all the steps in the "Boot Procedure" section. Do not repeat this subsection and continue below.Open a terminal: Applications, Accessories, Terminal
Unmount
/isodevice
Start the installation procedure by double-clicking the "Install Ubuntu" icon.
The installation will proceed as would any installation of the same release, similar to the Alternate CD.
The guide continues to a network install procedures, which may not be useful for this specific case, also I can't vouch for it effectiveness, so I'm leaving that part outside my answer.
If the guide needs improvement, feel free to comment. I checked until I could (since I won't break my grub just to test out).
Source:
http://ubuntuforums.org/showthread.php?t=1599293&p=9987717#post9987717