Ubuntu – How to install Ubuntu without CD and USB

system-installationwindowswubi

I want to install Ubuntu on my laptop that doesn't have a CD-ROM drive and I have no spare USB disk. I've tried Wubi, but that doesn't seem to work (since it prompts me to have the CD in the drive, which I don't have).

How can I install Ubuntu, easily and in a fast way?

P.s: I want to dual boot it with Windows 7 (which was preinstalled).

Edit:

  1. When extracting the ISO to a folder and running Wubi it does install, but when I reboot the computer, it doesn't show GRUB, nor can I choose if I want to boot Ubuntu or Windows 7.

  2. After trying for the third time today, wubi gives me an error: Permission denied

I'm the administrator on the PC.

Best Answer

For BIOS devices:

To install Ubuntu without CD/DVD or USB pendrive, follow these steps:

  1. Download Unetbootin from here.

  2. Run Unetbootin.

  3. Now, from the drop-down menu under Type: select Hard Disk.

    Hard Disk

  4. Next select the Diskimage. Browse to the directory where you downloaded the iso file of Ubuntu.

    ISO

  5. Press OK.

  6. Next when you reboot, you will get a menu like this:

    Unetbootin

  7. Select Unetbootin and you will get the "Try" or "Install" option there.

  8. Finally, you can install your version of Ubuntu alongside Windows.


For UEFI devices:

  • First, download rEFInd.

  • Then, extract it.

  • Now, follow the below steps to install rEFInd[source], so that, you have a boot menu to boot to Ubuntu Live environment. Summary of the installation process given in the source is as belows:

    1. Open cmd with Administrator privileges.

    2. Then,

      mountvol S: /S
      
      • (you may change S: to any available drive letter)
    3. Type cd in cmd and then drag and drop the extracted folder to the already open cmd window. E.g.,

      cd "C:\Program Files"
      
    4. Copy refind

      xcopy /E refind S:\EFI\refind\
      
      • In this step S: will be the drive letter that you used above.
    5. Change directory to rEFInd

      cd S:\EFI\refind
      
    6. Rename config file

      rename refind.conf-sample refind.conf
      
    7. Note that {bootmgr} is entered as such; that's not a notation for a variable. Also, change refind_x64.efi to refind_ia32.efi on systems with 32-bit EFIs. Such computers are rare, and most of them are tablets. Check your Windows bit depth to determine which binary you should use.

      bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi
      
    8. Download EaseUS Partition Master Free and run it.

    9. Select your last partition.

      5

    10. Right-click on it and from the context menu select Resize/Move partition.

      6

    11. From the size shown beside Partition Size minus 4096 MB (to mimic a 4GB pendrive).

      7

    12. Press tab and the rest will be auto-completed.

      8

    13. Select the newly created partition and right-click on it. Select Create Partition from context menu.

      9

    14. In this window, select FAT32 as the File System. Click on OK. Finally, click on Apply (present at the top-left of the window).

      10

    15. Next, extract Ubuntu iso to this partition and finally reboot.

    16. You will be presented with a rEFInd menu. From here select the Ubuntu partition. It will boot into a Live environment. Continue with the installation. After the installation finishes boot to Windows.

    17. Run EaseUS Partition Master Free again.

    18. Right-click on the 4 GB partition and from the context menu select Delete Partition.

      11

    19. Right-click on the partition above the Unallocated partition and select Resize/Move Partition from the context menu.

      12

    20. Extend the bar to the extreme right by dragging the button.

      13

    21. Click on OK. Finally, click on Apply (present at the top-left of the window).

      14

    22. Open cmd with Administrator privileges.

    23. Then,

      mountvol S: /S
      
      • (you may change S: to any available drive letter)
    24. Remove rEFInd

      rmdir "S:\EFI\refind" /S /Q
      
      • In this step S: will be the drive letter that you used above.
    25. Reinstall grub as your primary boot manager

      bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi