Install Ubuntu 10.10 server from USB (with GRUB4DOS)

10,452

I just installed ubuntu 12.04 server with Vaxquis' trick in USB with grub4dos. Apparently the server version dose not support cdrom-detect and iso-scan in installer. So we can ignore that part. Here is my config:

title install Ubuntu server 12.04
find --set-root /ubuntu-12.04-server-i386.iso
map /ubuntu-12.04-server-i386.iso (0xff) || map --mem /ubuntu-12.04-server-i386.iso (0xff)
map --hook
rootnoverify (0xff)
kernel /install/vmlinuz file=/cdrom/preseed/ubuntu-server.seed boot=install splash --
initrd /install/initrd.gz
boot

WHen you get CD-ROM detection errors, just "Continue" twice back to Installer Main Menu. press ALT-F2 to console. Type in:

mkdir /mnt/tmp
mount /dev/sdb1 /mnt/tmp
mount -o loop -t iso9660 /mnt/tmp/ubuntu-12.04-server-i386.iso /cdrom

press ALT-F1 back to Installer. Continue on "Load installer components from CD"

note: you can use file=/cdrom/preseed/ubuntu-server-minimal.seed to install a smaller server or remove the whole "file=..." part to select components manually. If you don't have enough memory to load entire iso to memory, remove "|| map --mem /ubuntu-12.04-server-i386.iso (0xff)" from config. To avoid "error 60", better format USB with "mkfs.vfat"(e.g. mkfs.vfat /dev/sdc1) and then copy the iso file to it as the first file. Then copy bootlace.com, grldr[.mbr] and menu.lst to USB and run

./bootlace.com /dev/<your_usb_device> (e.g. /dev/sdc)
Share:
10,452
BrNathan
Author by

BrNathan

Updated on September 18, 2022

Comments

  • BrNathan
    BrNathan over 1 year

    I have had no problem installing Ubuntu desktop when I boot off a live USB, but the server version has given me some trouble. I think it has to do with the way GRUB handles drivers. When the server install tries to look from the CD it can't find it.

    I use the following to load it:

    find --set-root /ISO/ubuntu-10.10-server-i386.iso
    map /ISO/ubuntu-10.10-server-i386.iso (0xff)
    map --hook
    root (0xff)
    kernel /install/vmlinuz file=/cdrom/preseed/ubuntu-server.seed boot=install iso-scan/filename=/ISO/ubuntu-10.10-server-i386.iso splash
    initrd /install/initrd.gz
    

    Is there any way to pass the location of the ISO to Ubuntu?

    EDIT: GRUB4DOS is run from the USB, not the HD.

    • Admin
      Admin over 13 years
      I've had the same problem. I just attached an USB dvd-drive (empty), and then my USB drive worked.
    • Admin
      Admin over 13 years
      Right now the USB is multi-boot. It has a lot of administration & security tools on it. It can also install several Operating Systems, but I can't get this to work. As an FYI, the same problem is present for people who want to install windows 7 off a USB. You have to actually copy the files to the USB & boot off those. Once GRUB boots the ISO, its CDROM drivers are lost.
    • Admin
      Admin over 13 years
      This is probably a debian issue. Debian can't install from a usb drive, and the ubuntu server edition probably uses debian install stuff.
    • Admin
      Admin over 13 years
      The real issue is that the grub drivers are being replaced when any other OS boots. I need to be able to tell ubuntu to use the ISO as the cdrom.
  • BrNathan
    BrNathan over 13 years
    That is actually what I am doing: booting off GRUB off the USB and then having it boot the ISO. I updated my question so it was clearer.
  • Admin
    Admin over 13 years
    Exactly. The 10.10 live edition seems to know that it uses the ISO, but the server edition doesn't.
  • Admin
    Admin over 12 years
    This is great. Is there a way to do this automatically? ie. so it runs when you boot.