Installing Debian, Ubuntu or LMDE (Linux Mint Debian Edition) from HDD

Tuesday, 18 January 2011

First of all, you may ask yourself why would you want to do this. I did it because I did not want to waste a blank CD.

This Mint installation was performed using a Live Linux booted with PXE( I used plop linux , which is a lightweight Linux distribution.

I prefer Linux Mint because of its clean themes, and I hate it a bit because it brads Firefox to use a Mint customized google search. In my opinion, Mint is faster and closer to Debian than Ubuntu.

I used Plop Linux to download the Linux Mint Debian edition 32bit. 
I tried to boot the iso with grub4dos, which did not work because initramfs did not find the ramdisk created and booted in grub with:

map --mem (hd0,2)/linuxmint.iso (hd32)
map --hook
chainloader (hd32)


As a note to self, choosing other HDD number than 32 does not properly map the ISO into a ramdisk. Also, mapping the ISO image without --mem did not work, because grub complained that the ISO file is not contiguous.

Some linux distros can boot off an ISO image,this did not.

So I had to:

 Extract the iso, mounting it first with Plop linux: 

mkdir /mnt/iso
mkdir /mnt/hdinstall
mount /dev/sda3 /mnt/hdinstall
mount /mnt/hdinstall/linuxmint.iso /mnt/iso -o loop
cp -rfv /mnt/iso/* /mnt/hdinstall 

At this time the partition used as our install source contains the /casper and /isolunux directories

I had installed grub before all this (I use grub4dos mentioned earlier): /dev/sda

,  so I could reboot, enter grub-pc command prompt by pressing  c and issue

root (hd0,2)
kernel /casper/vmlinuz boot=live live-media-path=/casper debug
initrd /casper/initrd.lz

Note that grub is counting the partitions starting from 0 (zero), while linux counts them starting from 1. Booting the kernel without the boot=live and live-media-path did not work, because initramfs will not find your  source media folder

This boots Linux Mint live, offering you a desktop icon to make the install permanent on HDD.

 Of course, I took inspiration from various sources, including the ones below:

and Ubuntu forums, which to my sadness begins to look as Digital Point with all those half-page signatures.

Give us some social love (it really works now)!

Reddit!! StumbleUpon! Yahoo! Swik!

Be first to comment this article
RSS comments

Write Comment
  • Please keep the topic of messages relevant to the subject of the article.
  • Please don't use comments to plug your web site. Links are rel='nofollow'-ed
  • Please refresh the page if you're having trouble with the security image code

:) :grin ;) 8) :p
:roll :eek :upset :zzz :sigh
:? :cry :( :x
Code:* Code

Last Updated ( Friday, 21 January 2011 )
Post and Bid on Joomla/PHP projects! Join for free!

Europe freelancer directory


Subscribe to TeachMeJoomla's newsletter

Auto tags

lmde vs ubuntu

lmde vs debian

linux mint pxe install

mint debian vs mint ubuntu

ubuntu vs lmde

linux mint pxe

install lmde

linux mint pxe boot

lmde pxe

mint debian vs ubuntu

grub4dos debian

debian vs lmde

grub4dos linux mint

lmde linux

linux mint debian grub

install linux mint over pxe gnu grub cmd

lmde pxe boot

how to install lmde

LMDE initramfs

mint vs debian

mint debian vs debian

mint vs lmde