2

I have installed Linux (Debian) onto my computer (which is not partitioned). Want I want to do is to create an NTFS partition so that I can install Windows 7 onto my computer, so I can dual-boot into Linux/Windows 7.

So is it possible to create an NTFS partition in Linux, without losing any Linux files?

  • 1
    If your drive isn't partitioned, where would you create that filesystem? You don't need to create a filesystem in advance to install Windows, it's quite capable of doing that itself. You do need an available partition though. – Mat Aug 9 '14 at 11:42
  • @Mat: Well, technically he's right: His computer is not partitioned. His hard disk almost certainly is, though, even if it contains just one partition. What I guess he really wants is to make space for the NTFS partition (that is, to shrink his Linux partition, probably ext3 or ext4). To which the solution would be to run a partitioning program (like GNU parted) from a live system (so that he can manipulate the partition Linux is installed on). Anyway, the best way to be sure not to lose any Linux files is to make a backup first. – celtschk Aug 9 '14 at 17:55
  • Yes (assuming that your disk is actually partitioned — while you can install Linux on an unpartitioned disk, it is extremely rarely done). Post the output of the commands (as root) cat /proc/mounts, fdisk -l /dev/sda and gdisk -l /dev/sda. – Gilles Aug 9 '14 at 22:03
0

Your question "which is not partitioned" i think, you have installed all on single partition by default installation profile, with separate swap partition. please run some linux live from CD or USB and run gparted program. Next shrink main /dev/sda1 or /dev/hda1 partition, and if exist, move swap partition to the left. on free space create new partition and change its type to NTFS without creating any file system. Reboot your computer, and test linux is still working. Finally save your MBR record to any file dd if=/dev/sda of=/anywhere/MBR.backup bs=512 count=1 . It should be done because windows installer will overwrite it. If all is working, you can run DVD with windows7. After it start you should see 3 partitions, 2 unrecognized it is your linux partitions, and one at the end available for windows. select it partition and install as usual. after this process computer will start only windows. do any available updates for it, and activate dual boot based on windows or linux, it is your choice. Please read additional recipes about linux/windows dual boot. Without this cecture you will have a problem with selecting system you want boot.

Live is easier if both systems are placed on separate hard drives. You will boot any of that system by selecting boot device by bios boot menu.

Did you consider create additional system as virtual using VirtualPC/VmWarePlayer or similar virtualization software? Of course it is depended on your needs. For example, placing Windows inside virtualizator is bad idea if you are playing games, because you need direct access to graphics card for maximum performance, then windows should your main system. But in security view, better is linux as main system and windows as virtual. Wirtual in any way is nice, because you can use both systems at the same time. Some resolution is VMVare Desktop, it has some facilities for increase 3D acceleration performance, but you must pay for it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.