Install Ubuntu 5.10 on external usb hdd driver on HP NX6130

Install Ubuntu 5.10 on external usb hdd driver on HP NX6130

It's a success that I had installed ubuntu 5.10 on my external usb hdd driver.
My external hdd driver is Samsung MP40H, 40G.

Dirver Size Mount Point Note
/dev/sda1 20G FAT32 First primary partition
/dev/sda2 100MB /boot Second primary partition, BOOTABLE
/dev/sda5 5G LVM First LVM PV
/dev/sda6 6G LVM Second LVM PV
/dev/sda7 512MB /swap Swap partition
/dev/sda8 8G / / partition
Details of my laptop:
  1. Modal: HP NX6130
  2. CPU: Pentium M 1.73G
  3. RAM: 256MB DDR2
  4. HDD: seagate 40G
  5. LCD: 14ins

Tips:
  1. HP nx6130's bios setting is easy to use. My boot options are first: cdrom, second: hdd disk driver, third: notebook hdd driver.
  2. Run the following commands after system reboot.
    $chroot /target
    $mount -tproc none /proc
    $mount
    $mount /dev/sda2 /boot # My /boot is on /dev/sda2
    $df # Check if /boot is mounted
    $fdisk -l # List disk partition in the box.
  3. $vi /etc/mkinitramfs/modules
    Add following module word by word.
    ehci-hcd
    uhci-hcd
    usb-storage
    usbcore
    usbbid
    scsi_mod
    sd_mod
  4. $vi /etc/mkinitramfs/initramfs.conf At the very top of this file, add this line which tells UBUNTU to pause for 12 seconds before starting up ...
    WAIT=12 (in all caps here, not sure if necessary though)
  5. Install grub to external hdd's MBR(Main Boot Record)
    	$grub
    grub>root(hd1,1) # My /boot is on /dev/sda2. e.g. If yours is on /dev/sda5 (first extended partition), this should be (hd1,4).
    grub>setup(hd1) # Install grub to MBR of my external hdd.
    grub>quit
    $umount /boot
    $exit #
  6. When the system comes back up it will ask for a partition to mount. Pick the correct mount point for your external drive from the list.
    Mine was mount /dev/discs/disc1/part8 (my / is on /dev/sda8). But yours may be different depending on the number and/or types of drives in your system.
    COMMENT: /dev/discs mount points start with disc0 (with 0 meaning the first drive in a system). So, my mount point of /dev/discs/disc1/part8 was really the second disk [disc1] (the sda drive we are working with) and the / partition [part8] on that disk.
  7. Rebuild the boot image.
    $mkinitramfs /boot/init.img-2.6.12-9-386-usb /lib/modules/2.6.12-9-386
  8. Edit the GRUB bootloader menu file to correct a small error that looks at the wrong drive to boot from.
    $vi /boot/grub/menu.lst
    There is a line in these three Ubuntu menu choices that has root listed on it and probably has (hd1,0) to the right of it.
    We need to change this to (hd0,1) (This is the partition of my /boot paritition /dev/sda2 ) on all three of these menu choices. Why? Because according to GRUB, the external USB drive will be our first drive (hd0,1) and not our second drive (hd1,0) because we loaded GRUB on it's bootsector.
  9. In menu.lst, there is a line "root=/dev/sda8". The root is your / partition.
    And you can add "vga=791" to the line after boot of grub, you can use a monitor resolution at 1024x768 24Bit.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章