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.

DirverSizeMount PointNote
/dev/sda120GFAT32First primary partition
/dev/sda2100MB/bootSecond primary partition, BOOTABLE
/dev/sda55GLVMFirst LVM PV
/dev/sda66GLVMSecond LVM PV
/dev/sda7512MB/swapSwap partition
/dev/sda88G// 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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值