Linux install ubuntu from hardisk

Status
Not open for further replies.

smsrohit

Inactive
Contributor
hi
is there any way of installing ubuntu from hardisk itself that is without burning those images to a cd, as i got no writer.
 
I doubt it'll install from within windows. BTW, when I installed ubuntu, it wiped out one of my ntfs partitions :( Lost all data.
So be careful if you're installing on hdd with stuff on it.
 
I don't think he wants to run it in a VM!

AS for partitions being deleted, that is bcos u must have chosen default install.

I don't know how to install from hdd, but try the folowing command when it asks you what to do at the boot cd menu:

linux askmethod

That is an FC command, wonder what effect (if any) it has with ubuntu
 
Well, yes to some extent, but getting the VMware tools package to install and work correctly is a royal pain in the you-know-what. The resolution is perennialy screwed up. On one install it works, on the next it does not. Crazy.
 
Yup that IS a problem.

I am getting errors with ubuntu installation in VMWare.It says there is no HDD eventough I allocated ~2GB for the virtual machine.
 
kumar said:
I am getting errors with ubuntu installation in VMWare.It says there is no HDD eventough I allocated ~2GB for the virtual machine.

Maybe that bcoz you must have set the virtual hdd as a sata/raid disk, make it ide.
 
If you have access to a DOS installation you can do it using a tool called loadlin. Get loadlin 1.6c from ftp://elserv.ffm.fgan.de/pub/linux/loadlin-1.6/update-1.6c/loadlin.exe.gz , extract the exe file into a directory and place the files vmlinuz and initrd.img (should be there somewhere within the installer-386 directory) in the same and run

Code:
loadlin vmlinuz root=/dev/ram rw initrd=initrd.img

If all goes well, the installer should start, you may need to configure it to read the source media from your hard disk. However I have never tried this with Ubuntu so I am not sure if it will work.
 
IIRC, there's an 'alternate' ISO download file for all ubuntu releases..
You probably need to download that and use grub4DOS..

More info here :
https://help.ubuntu.com/community/Installation/FromWindows

and go on to the last approach :
The CD image approach

Note: This method only works with the Alternate Ubuntu install CD.

If for some reason you can not (do not want to) write the CD it is possible to use the ISO image to do the installation form hard disk.

*

Create a directory called hd-media in the root directory of the first primary partition of your hard drive (usually drive c:\, which it will be referred to as from now on).
*

Download vmlinuz and initrd.gz from [WWW] Index of /ubuntu/dists/feisty/main/installer-i386/current/images/hd-media and save them to hd-media
*

Download the ALTERNATE ubuntu-installer CD from [WWW] Download Ubuntu | Ubuntu and save the .iso file in the root directory of first partition of your hard drive.
*

Download Grub For Dos from [WWW] http://sarovar.org/download.php/672/grub_for_dos-0.4.1pre22.tar.gz
*

Extract grldr from the archive to c:\grldr. The rest of the files in the archive are unnecessary. (If your default compression/archive program doesn't like *.gz files, try 7-Zip from [WWW] 7-Zip.)
*

Append c:\grldr="Install Ubuntu" to c:\boot.ini.

To view and edit the Boot.ini file on WindowsXP:
1. Right-click on My Computer, and then click Properties.
2. On the Advanced tab, click Settings under Startup and Recovery.
3. Under System Startup, click Edit.

Note: Eventhough c:\boot.ini is not shown by the explorer, this file exists and can be also opened in the notepad. Just write the path c:\Boot.ini at the open dialog.

*

Create a new text file called menu.lst and save it to the first primary partition of your hard drive.
*

Open menu.lst in a text editor and paste the following text in the file:

title Install Ubuntu
kernel (hd0,0)/hd-media/vmlinuz root=/dev/ram0 ramdisk_size=128000
initrd (hd0,0)/hd-media/initrd.gz

*

Save menu.lst, reboot with the Ubuntu installer CD in the drive, and select "Install Ubuntu" twice. You now have a CD image installation of Ubuntu going.
 
Status
Not open for further replies.