Originally Posted by sandyarod
My HDD on my laptop has not been partitioned. How can I without losing data install linux...
Welcome to LQ!
Your laptop hdd has been partitioned initially by a M$ or second source program to setup the 'M$ Vista'. I would use the 'M$ Vista' disk management tools to first defragment your hdd then use the disk management tools to shrink your install size. Most vendors do provide a recovery partition so you should be aware of that.
Once you have space available to do a GNU/Linux install then just use the Distribution Install CD/DVD. You can then use 'cfdisk
' or 'fdisk
' to prepare partitions for the install. Once you setup the partitions, I like to re-boot to make sure the kernel partition table is updated. I would then create a filesystem(s) on the partition(s) before a install by using;
~#mkswap -c /dev/your_device_partition #sda1,2,3,4 or hda1,2,3,4
~#mke2fs -c -L Linux -j /dev/your_device_partition #create filesystem
The first command will make a swap partition on the designated device which could be on '/dev/hda2' or whatever your device is.
The second command will create a ext3 (-j) filesystem with the label (-L) 'Linux' on the device first checking bad blocks (-c) on your_device_partition which could be 'dev/hda3'.
My reasoning is to insure that the hdd space is not corrupt therefore the install space will be acceptable.
Most modern distributions will setup the system for you.
BTW, the commands are linked to linuxmanpages.com
a good online 'man'.
This link and others are available from 'Slackware-Links
'. More than just SlackwareŽ links!