Note: This is the second iteration of this post. The first version had a small error in it, which interfered with installing a bootloader in the laptop HDD's master boot record.Here is my (admitedly convoluted) procedure for installing LDME on an old laptop. I suspect there's an easier way to do this, but the process below allowed me to install Linux Mint Debian from the LDME 201204 iso onto my tired old laptop's hard drive.
The laptop is a Thinkpad X20 (type 2662-35U). It's based on a 600MHz Pentium III CPU and has 192MB of SDRAM, a 20GB hard drive, and a CD-only optical drive. I've had good luck in the past with Debian on this Thinkpad, so I had high hopes for LDME -- except for the fact that there's no netinstall CD for LDME.
*** Note: The drive references below assume that the laptop's hard drive is recognized by the system as "sda" and the external USB device is recognized as "sdb"; yous may differ. ***
1. Preparations:
* Download the
LDME liveDVD iso and copy the file to a fat32-formatted thumbdrive (no need to burn it to a DVD)
* Download the
Gparted liveCD iso and burn it to a CD
* Download the
Rescatux liveCD iso and burn it to a CD
[i](Note: if you wish, you can use the Rescatux liveCD for the steps below that say to use the Gparted liveCD, by running gparted from a console session.)[i]
2. Boot the Gparted liveCD on the laptop, plug in the thumbdrive with the LMDE liveDVD iso, open up a console session, and use the these commands to turn the laptop's hard drive into an LDME "liveHDD"...
- Code: Select all
sudo mkdir sdb1
sudo mount /dev/sdb1 sdb1
sudo dd if=sdb1/lmde.iso of=/dev/sda bs=1k
3. Now, unplug the thumbdrive and reboot the laptop from the LDME liveDVD image you just installed on its HDD. Assuming that works, plug in a 16GB (or larger) USB thumbdrive and install LDME on it. During the installation process, set up the thumbdrive with a 10,000MB "/" ext4 partition and a 1,000MB swap partition.
4. Now reboot the laptop from the Gparted liveCD and delete all partitions that show up on the laptop's HDD using gparted. Then, open up a console session and clear the contents of the first few MBs of the hard drive using the following command:
- Code: Select all
sudo dd if=/dev/zero of=/dev/sdc bs=512 count=10000
...this was done to eliminate a failure that would occur later, when trying to write an MBR and bootloader to the HDD; the issue relates to having cloned the liveUSB to the laptop's hard drive.
5. Still using the Gparted liveCD, perform these top-level functions:
* create a new partition table on the laptop's HDD
* create a 10,000MB sda1 partition, formatted as ext4
* create a 1,000MB sda2 partition, formatted as linux-swap)
6. Still using the Gparted liveCD, plug in the USB to which you installed the LDME OS in step 3. Then, copy the contents of the USB thumbdrive to the laptop's sda1 partition using these commands in a console session:
- Code: Select all
sudo mkdir sda1
sudo mkdir sdb1
sudo mount /sda1 sda1
sudo mount /sdb1 sdb1
sudo cp -a sdb1/* sda1/
...the last of those steps can take a long time to complete!
7. Still using the Gparted liveCD, edit the grub and fstab config files on sda1 so that they contain the correct drive partition IDs. Open a console session and perform these steps:
- Code: Select all
sudo pico sda1/etc/fstab
...modify the drive IDs to "/dev/sda1" for "/", and "/dev/sda2" for "swap"
- Code: Select all
sudo blkid
...note the UUID value for sda1
- Code: Select all
sudo pico sda1/boot/grub/grub.cfg
...modify the UUID for sda1 to the value reported by blkid in the prior step
8. If you reboot the laptop now, no bootloader will be found. To fix this, boot the Rescatux liveCD, and select "Super GRUB 2" from its top-level menu. Then perform these selections (hit Enter after each):
* select the "Enable GRUB2's PATA support" function
* select the "Detect any GRUB2 cnfiguration file" function
...should find the grub.cfg from sda1
* select the grub.cfg found by the prior step
9. Assuming LDME booted from the prior step, you need to perform one more step. Open up a console session and do:
- Code: Select all
sudo dpkg-reconfigure grub-pc
...the process should report success, although there may be some warning msgs
LMDE should now be able to boot on the old laptop without the assistance of any liveCDs.