GregoryMA
April 18th, 2011, 03:11 AM
So I have this 7 year old laptop. It is obviously slow but it works pretty well, xcept that the CD drive and the USB ports have gone to meet their makers. I am currently running Ubuntu 10.04 but I want to install a lightweight non-ubuntu distro. Something slim and trim so this aging guy can keep up. I found this how-to (https://help.ubuntu.com/community/Installation/FromLinux) which explains how to put the installation file on a second partition and then get grub (or rather grub2 in this situation) to load from the second partition. Well, I have the second partition set-up with the installation iso in it. The only trouble is that I can't figure out how to make grub2 boot from the second partition. If there is anyone out there who is better at tinkering with this stuff than me please help me out. /dev/sda5 is the partition which has the installation iso on it and where I want grub2 to boot from. Here is some info.
sudo fdisk -l
gregory@box:~$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006e4fe
Device Boot Start End Blocks Id System
/dev/sda1 * 1 19267 154754048 83 Linux
/dev/sda2 19267 19458 1533953 5 Extended
/dev/sda5 19267 19458 1532928 83 Linux
/etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=a2def1ea-a8b9-47d2-9ae1-27c11dd5bdb1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=89ec501b-4a00-4cfb-b2a5-e41b3113f034 none swap sw 0 0
UUID=52a0f55c-4ce9-4400-9b6f-a1907f3ac1ec /media/house ext4 nodev,nosuid 0 2
/etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "installer" {
insmod ext2
set root=(hd0,5)
linux /casper/vmlinuz boot=casper root=/dev/ram1 ramdisk_size=1048576 rw
initrd /casper/initrd.lz
}
sudo fdisk -l
gregory@box:~$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006e4fe
Device Boot Start End Blocks Id System
/dev/sda1 * 1 19267 154754048 83 Linux
/dev/sda2 19267 19458 1533953 5 Extended
/dev/sda5 19267 19458 1532928 83 Linux
/etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=a2def1ea-a8b9-47d2-9ae1-27c11dd5bdb1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=89ec501b-4a00-4cfb-b2a5-e41b3113f034 none swap sw 0 0
UUID=52a0f55c-4ce9-4400-9b6f-a1907f3ac1ec /media/house ext4 nodev,nosuid 0 2
/etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "installer" {
insmod ext2
set root=(hd0,5)
linux /casper/vmlinuz boot=casper root=/dev/ram1 ramdisk_size=1048576 rw
initrd /casper/initrd.lz
}