[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 428
  • Last Modified:

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.
1 Solution
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.
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.
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.
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.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now