Partitioning in LINUX?

If I wish to partition my LINUX machine to accomodate both LINUX and WINNT 4.0,
is is possible? If yes, pls advise on how to carry out the partitioning as I 've never done that before. Cuurently, my PC is only installed with LINUX Red Hat 6.0.
qiang8Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

biardCommented:
You will need to install Windows NT first, as the active boot partition will have to be either FAT 16 or NTFS to support NT.  But, when partitioning for NT, leave enough space unpartitioned for Linux to take later.  Then, after installing NT, run the Linux install.  It should see the free space (depending on the size of the drive) and let you complete the partitioning scheme from there.
0
uposCommented:
if you do it the other way, you could run into some problems with NT and you will have to re-install lilo. Make sure you have a linux boot disk before you do anything like that.
0
mzehnerCommented:
Yes it is possible.
First of all, it is easier if NT is installed first.  The easiest way to do it is with Partition Magic 4.0 or later.  What size hard drive do you have?  This will affect the preferred partition sizes.  Normally I make a partitions as in the example below.
NTFS                 4-6G
ext2 (Linux native)  3G
Linux swap           130M
NTFS (rest of space) Data that Linux and NT can read.
  You could try installing NT on top of Linux, but normally Bill's products, like him, try to take over the world, and may remove your current Linux.  If you have any valuable data there, back it up first.  If you have to start over, use PM to set up your partions for each operating system as shown above.  If you can limit the amount of space NT uses during its install, you will not need PM.  It not, you will need PM to resize the partition to make room for the other partitions.
  I normally make my partitions for windows FAT32, but I don't think NT reads a fat32 partion.  Since Linux can read NTFS, you will want your data partition NTFS.

If NT HD size can be limited in during its install, you could do the following:
1 Boot to Linux
2 Log in as root
3 Type "fdisk /dev/hda"
4 Type p to see a list of partitions
5 If all your disk room is allocated for Linux, you need PM or a tool like it to resize the partitions.
6 If there is empty space, make a new partion, make it NTFS.
7 Type w to write data and exit
8 Exit Linux and try to install NT
9 If NT wipes LILO(it probably will) I don't think this method will work, unless you can somehow use your emergency boot disk and re-install LILO.

If you need to re-install:
1 Install NT
2 Use PM to resize and set up partitions if possible/necessary.
3 If PM unavailable and NT partition size limited, Begin Redhat installation, and use fdisk during Redhat install to set up partitions.  Note: If trouble setting up the last NTFS partition, you can do it later, by using fdisk from Redhat and adding the mount point in your "/etc/fstab" file.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
qiang8Author Commented:
Thanks for ur suggestion. I carry out  a image restore for Win NT and then install LINUX. It turns out to be working fine. Thanks a lot.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.