Inizio  >  Docs  >  Linux  >  How to  >  install from hd  
install from hdinstall from hd

Index

ubuntu solution

create a fat16 partition (hd0,1) /dev/hda1
mkfs.vfat -F16 /dev/hda1
mkdir /media/fat16
mount /dev/hda1 /media/fat16
mkdir /cdrom
mount -o loop ubuntu.iso /cdrom
cp -av /cdrom/* /media/fat16
cp -av /cdrom/.disk /media/fat16

modify /boot/grub/menu.lst adding:

################################################
title setup ubuntu
root (hd0,1) #second partition
kernel (hd0,1)/casper/vmlinuz file=/preseed/ubuntu.seed boot=casper
initrd (hd0,1)/casper/initrd.gz
######################################

(taken from /cdrom/isolinux/isolinux.cfg :
DEFAULT /casper/vmlinuz
GFXBOOT bootlogo
GFXBOOT-BACKGROUND 0xFFFFFF
APPEND  file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.gz quiet splash vga=785 --
LABEL live
  menu label ^Start or install gOS
  kernel /casper/vmlinuz
  append  file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.gz quiet splash vga=785 --
LABEL xforcevesa
  menu label Start gOS in safe ^graphics mode
  kernel /casper/vmlinuz
  append  file=/cdrom/preseed/ubuntu.seed boot=casper xforcevesa initrd=/casper/initrd.gz quiet splash vga=785 --
#LABEL driverupdates
#  menu label Install with driver ^update CD
#  kernel /casper/vmlinuz
#  append  file=/cdrom/preseed/ubuntu.seed boot=casper debian-installer/driver-update=true initrd=/casper/initrd.gz quiet splash --
LABEL oem
  menu label ^OEM install (for manufacturers)
  kernel /casper/vmlinuz
  append  file=/cdrom/preseed/ubuntu.seed boot=casper oem-config/enable=true initrd=/casper/initrd.gz quiet splash vga=785 --
LABEL check
  menu label ^Check CD for defects
  kernel /casper/vmlinuz
  append  boot=casper integrity-check initrd=/casper/initrd.gz quiet splash vga=785 --
LABEL memtest
  menu label ^Memory test
  kernel /install/mt86plus
  append -
LABEL hd
  menu label ^Boot from first hard disk
  localboot 0x80
  append -
DISPLAY isolinux.txt
TIMEOUT 300
PROMPT 1
F1 f1.txt
F2 f2.txt
F3 f3.txt
F4 f4.txt
F5 f5.txt
F6 f6.txt
F7 f7.txt
F8 f8.txt
F9 f9.txt
F0 f10.txt
)
umount /cdrom
umount /media/fat16

reboot

at boot select "setup ubuntu"

Torna sł

2 way!!

fdisk /dev/sdb
mkfs.vfat -F16 /dev/sdb1
mkswap /dev/sdb2
mkfs.ext3 /dev/sdb3
mount -o loop ubuntu-8.10-desktop-i386.iso /mnt/
mount /dev/sdb1 /media/disk
cp -av /mnt/* /media/disk
cp -av /mnt/.disk /media/disk
umount /media/disk

dd if=/dev/null of=/dev/sdb bs=446 count=1
syslinux /dev/sdb1

check here for UUID problems