Trying to put linux on a windows box, but having problems.
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Trying to put linux on a windows box, but having problems.
Ok, I think I really messed something up.
I installed linux today, after reformating my hard drive. After using Linux for a while I thought I would like to have windos on the same box. I used my recovery disks that came with my system and they said that the partition data must be deleted, but when I try to fdisk it, it tell me I can't while logical drives exist, but it wo't let me delete any logical drives. I was wonering if I re-installed linux, would therebe something I could do to fix it?
Help! I don't understand your problem(Well this is the real problem?!)
First let me put to you what have I understood from your post?
You had Windows and you repartitioned your harddisk,and installed linux.Now you can't boot into windows!
Is it that you formatted everything and then installed linux.Now you want to install windows,and since linux is in primary partition it won't let you install windows in the logical partition and tells you to delete the partition
Is it something else?
I reformatted everything and installed linux, then I decided to reinstall windows. I deleted linux and reformated my hard drive. Now it has a partition that won't go away.
Since I posted the first message, I got windows reintalled, but that partition is still there and I am not sure how to get rid of it. But, I guess this has turned into a windows problem now.
Which version of Windows are you talking about? I know that most Windows after 98 will give you an interface that will allow you to delete those partitions, if FDISK won't do it. I think you can also delete them using the redhat installer and then exit the installer before you actually install the system files.
After that, why not have a dual boot machine? If you install Windows first and leave a few gig free on the HD for Linux, then install Linux using Grub, it's very easy to work with.
1. Buy Partition Magic, and waste some money
2. Use a Linux rescue disk. Boot up, run either cfdisk, parted or fdisk (in order of decreasing userfriendlyness) and delete all partitions.
Obviously, you cant delete partitions that are in use by Linux, thats why you should use a rescue disk. You can get one from ftp://ftp.gnu.org/gnu/parted/partboot.img (or something url like that, ftp access is blocked from where im working) which has parted.
Once you have your rescue disk image, put it on a floppy using (gunzip first if it has a .gz extention)
Make sure your floppy is not mounted !! (beware of automounters)
Next, reboot from the floppy, start parted, remove all partitions, write result do disk. To learn what commands you can use, type help in parted.
Now you are ready to make new partitions. Remember:
1. Windows needs the first fat or ntfs partition. You can tell NT/2000/XP/2003 to use another, but that complicates things.
2. Linux needs atleast two partitions: one for Linux and one fro swap (workaround: mount swap over loopback. slowwww)
3. If you want to make your system more robust, its worth placing a small rootfs in one partition, and place /usr, /var, /home and /tmp in seperate partitions.
Install Windoze. Clean, complete, very happy billy-boy install.
Get a tool (Partition Magic etc.) and resize the Win partition to half of what the HDD is. Leave the newly created space empty.
Boot from the Linux CD, and let the install process use the available free space (the new empty area) and also let it install GRUB as the boot loader, but in the first partition, not the boot sector (makes life easier when things go pear shaped and you want to start again! Been there... done that!)
That's all there is to it! Let us know if there are any further problems - this is one thing I have done WAY too many times.
You can also use this debug script to clear the partition sector of the hard drive. I've used he before, works like a charm. Here it is:
- f 200 L200 0
- a 100
xxxx:0100 mov ax,301 (ignore segment : offset values at left)
xxxx:0103 mov bx,200
xxxx:0106 mov cx,1
xxxx:0109 mov dx,0080
xxxx:010C int 13
xxxx:010E int 3
xxxx:010F (Press ENTER an extra time here)
- d 100 LF
xxxx:0100 B8 01 03 BB 00 02 B9 01-00 BA 80 00 CD 13 CC
(make sure that hex values match above line before proceeding)
(if values do not match, type Q and start over)
(ignore register display)
- q (quits back to DOS)
this happened to me once, i had linux installed on a disk (root,swap,home), then i needed to take that disk and make it a fat32 (long story) but the winblows fdisk thinggy was choking on it... i didn't really have time to do a lot of research and stuff so i just took a mandrake 9.x install cd and ran it up to the point where you format the disk(s)... i made mandy format the whole thing fat32, then i cancelled the install... then i tried the winblows fdisk again and it didn't choke... i was able to delete the linux-created fat32 partition and then re-create the pure winblows partition(s) of choice, and then format them... i know, not a very geeky solution but hey i am a newbie and well, it worked. good luck.
Yeah, I've had similar problems once or twice.....What I would be inclined to do is zap the drive with a quick low-level formatting utility such as that included in Seagate's DiscWizard (don't have a link, but a Google search will bring it up) - gives you a nice clean slate to work with.
Fdisk will simply bring up a message about "no partitions defined" or something similar, and you can start from scratch.