Ubuntu – How to reinstall ubuntu 14.04 without cd drive or usb

14.04reinstall

I want to reinstall ubuntu 14.04, but the cd drive of my laptop isnt working and my laptop is old so it cant boot from usb sticks. What can i do?

Best Answer

Since you already have grub installed, you could boot directly from the iso file you downloaded.

First run: sudo apt-get install grml-rescueboot

Then move your iso file to the /boot/grml folder with: sudo mv ~/Downloads/filename.iso /boot/grml/. Change the filename and its path accordingly.

Then update grub with: sudo update-grub. If this doesn't work, you could create a manual entry in grub.

Open the /etc/grub.d/40_custom file with sudo gedit /etc/grub.d/40_custom and add the following lines:

 menuentry "Ubuntu 12.04 ISO" {
     set isofile="/home/<username>/Downloads/ubuntu-12.04-desktop-i386.iso"
     # or set isofile="/<username>/Downloads/ubuntu-12.04-desktop-i386.iso"
     # if you use a single partition for your $HOME
     loopback loop (hd0,5)$isofile
     linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
     initrd (loop)/casper/initrd.lz
 }

Modify accordingly.

Reboot your computer and you should find a new menu entry in Grub associated with your ISO file. Choose this open and install as usual.

Source: https://help.ubuntu.com/community/Grub2/ISOBoot

Related Question