Question:
How do I partition my harddrive when i dont have an os?
Jay
2008-12-02 20:18:15 UTC
Im trying to install linux on an old laptop that doesnt have an os. Im on it right now running linux from a cd. But when i try to install it to my harddrive it says it can because of the partition or something like that. any help???
Five answers:
2008-12-02 20:20:51 UTC
Linux can do it.

http://www.ehow.com/how_1000631_hard-drive-linux.html



" At the command prompt, type “fdisk /dev/hdb” replacing the "hdb" with the letters for your drive. Upon opening, fdisk may give you a couple of warnings, all of which can be ignored. It then gives you a prompt that looks like this: Command (m for help):



Enter “p” to see the partition table of the drive. The first line of output from the “p” command will also tell you size of the drive. This is a good way to double check that you are working with the correct drive.



If there are any partitions already on the drive they will be listed as the last lines of the “p” command. On our example, this looks like “/dev/hdb1” followed by some information about the partition's size and file system.



To delete any existing partitions, press “d” then enter. It will ask you which partition number you wish to delete. The number of the partition is the number that follows hdb, so on our example system we enter 1. If there are multiple partitions repeat the “d” command for each one. You can always view the partition table again with the “p” command.



Once you have deleted all existing partitions on the drive you are ready to make a new one. Type “n” and hit enter. Then press “p” to create a primary partition. It asks you for a partition number, enter “1." Now you are asked which cylinder the partition should start at, the beginning of the drive is the default, so just hit Enter. Then you are asked for the last cylinder, the end of the drive is default so you can just press Enter again.



Now you are back at fdisk's command prompt. Use the “p” command to check the partition table. You should now see your new partition at the bottom of the output. In the example it lists “/dev/hdb1.”



You now need to set the filesystem type for your new partition with the “t” command. You are asked for the Hex code of the filesystem you wish to use. We wll use the standard Linux ext2 filesystem which is “83." If you are doing something special and know of a particular filesystem that you need to use, you can press “L” to see all the codes, which are one or two characters made up of the numbers 0-9 and the letters a-f.



Now just issue the “w” command to write your new partition table and exit fdisk.

Creating the New File System with mkfs



Now you need to create the filesystem on the drive. This is done with the “mkfs” command.



At the command prompt, enter “mkfs -t ext2 /dev/hdb1” while remembering to change the hdb1 to whatever the letters are for the partition you just created.



If you are using a different filesystem than ext2, you will have to specify that where "ext2" is in the above command.

Finalizing the Format with fsck



All that is left is to run a check on the drive and enter it into your fstab so that the drive mounts each time you start your computer. This can be done with a single fsck command.



At the command prompt, type “fsck -f -y /dev/hdb1” again replacing hdb1 with the letters and number for your partition.



After fsck runs, your new drive is formatted. Restart your system before using it.



If you reformatted your system drive, you will now need to boot off an installation disk to install an Operating system. "
2008-12-02 20:22:04 UTC
You can partition your hard drive using something called GParted Live CD.



Do a google search for the program, download the .iso, burn it to a blank CD-R, put it in your computer, and restart your computer. You need to boot from the disk and then follow the instuctions on the screen. It is based off the linux kernel so you should be fine.



Good luck.
Jack T
2008-12-02 20:22:18 UTC
Run a Live CD of any major Linux distro. For example, run Ubuntu live CD. Download the ISO, burn to a CD, and boot from CD.
mekala s
2008-12-02 20:50:50 UTC
it very easy to install red hat linux, if u got the os cd. through that u can partitions can be done.
catabay
2016-09-10 04:28:36 UTC
If your utilizing XP, probabilities are that you're utilizing a FAT32 dossier process. Vista makes use of NTFS, so down load a software that converts it to NTFS so Vista can run to your difficult force. Then, ensure you've the Vista PC specifications. Pop within the disc, set up it, and your whole records will probably be transferred routinely. That's it!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...