LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2006, 10:44 PM   #1
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
Format Windows partition inside linux. How?


Hey,
I've recently installed FC4, and managed to get everything working just as i like so want to (almost!!) do away with my windows partition. This is basically because my harddrive is only 20Gig so too small to run 2OS's efficiently. Basically what i want to so is:
1. Format my Windows NTFS partition (mounted at /dev/hda1)
2. Partition it so i can have about 2gig to run Counterstrike on in windows, the rest in ext3 (9g).
3. Merge the new ext3 partition (about 9g) with the 8gb i use to run FC4 in.
4. Install windows on a virtual machine in VMWareto run some progs out of .
Is this a viable and logical plan? because i'm running out of space on my linux partition and need more. If so what programmes do i need to impliment it? I don't really want to reinstall linux because it was a pain in the ass to get everything working so is it ok if the mount point is halfway up my hard-drive? Also what is the advantage of a swap partition in linux and how do i make one.
Any response to any of these questions is greatly appreciated.
Kind regards,
Graham
 
Old 03-14-2006, 10:54 PM   #2
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Rep: Reputation: 30
hmm that is going to be a lot more work than you want. It would probably require reinstalling both windows and linux. What i would recommend is just getting a second harddrive because they are cheap and would save you alot of time.
 
Old 03-15-2006, 06:37 AM   #3
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Original Poster
Rep: Reputation: 30
Yer i know it will be a lot ot work thats fine, and reinstalling windows is obviously going to happen, but not a problem as i can do it in 40mins or so. Linux would take me days so not really an option. Neither is getting a new harddrive as i'm running a laptop.
Basically i want to know the command to format my /dev/hda1 NTFS partition (where windows is) to EXT3 and merge it with my /dev/hda2 EXT3 partition where linux is. Any ideas?
 
Old 03-15-2006, 06:58 AM   #4
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
I take it that, what you wanna do is rid windows and rearrange/resize then partitions to give more space to linux and install vmware to run Counter-strike. Have you made sure you can run Counter-strike using vmware or you planning on using Cedega to run Counter-strike ? May be, this would make you change your mind into retaining windows installtion or may be not ! In case you wanna go ahead and wipe windows to make home for linux, coma back and tell us so and some/one of us can help you with your plans though it's a lot of work like tamoneya said.



Swap space is kinda RAM, difference being swap is just a partition on the disk which is used as RAM. Though it's not as fast as RAM yet, it'd speed up the processes boosting performance. If you have huge amounts of RAM like 1 GB or more, you possible wouldn't need a swap space although it's not a bad idea to have one. I have 256MB RAM and a 400 MB of swap which linux only uses when I run multimedia apps or too many apps.

Last edited by kevkim55; 03-15-2006 at 07:01 AM.
 
Old 03-15-2006, 07:17 AM   #5
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Original Poster
Rep: Reputation: 30
Rite,

This is a little complicated, basically because i didn't know how well i'd take to linux i kept my existing windows partition. However i realise now that i don't want windows to be installed on such a large partition so i want to:
1. Wipe my windows partition (11gb).
2. Re-partition it to be 500mb of swap and the rest EXT3

Now it gets complicated.

3. Move my linux filesystem "down" the harddrive so its mounted at the beginning (or after the swap).
4. Format the remaining 8gb where linux originally was.
5. Create a 2gb NTFS partition to install windows on.
6. Merge the remaing 6gb EXT3 onto the first harddrive

Bascially at the moment my harddrive looks like this:
WINDOWS (ntfs 11gig)---LINUX (ext3 8gig)

I want it to look like this:
SWAP (0.5gig)---LINUX (ext3 16.5gig)---WINDOWS (NTFS 2gig)

Is this possible or just, like that annoying MS screensaver, a pipe dream. Regards,
Graham
 
Old 03-15-2006, 06:48 PM   #6
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Rep: Reputation: 30
i see what you are trying to do but i would recommend doing this
I want it to look like this:
/dev/hda SWAP (.5GB)---LINUX (ext3 10.5GB)---LINUX(ext3 8GB)
/dev/hdb WINDOWS(NTFS something bigger)
that doesnt require merging the partitions and runnign windows on just 2GB does not sound like a very good idea. I think it might get very angry at you.
you can mount the second linux partition onto some part of the original one giving you just one linux OS
ex: mount /dev/hda2 /var or some other part of the filesystem
 
Old 03-17-2006, 07:09 AM   #7
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Original Poster
Rep: Reputation: 30
Hey,
I decided that i couldn't be bothered moving everything around on my harddrive, looked like too much hassle and nobody really had any ideas of how to do it, so i formatted and started again. Kind of rueing that decision now though, as i seem to have lost my windows cd!! Oh well.
Cheers for your help
Graham
 
Old 03-17-2006, 11:38 AM   #8
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Rep: Reputation: 15
Ntfs

Is is possible to format a brand new disk in NTFS from linux?

I have created the partition, but I'm not sure how to format it...

Would mkfs /dev/sdc make the thing? Basically what I want to do is to have an empty NTFS disk (external USB)that I could put JPEG file on it (from my linux box) and then move around to my other friends computers(they are on windows...)


Thanks

Claude
 
Old 03-17-2006, 11:45 AM   #9
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Why not make the external Drive Fat32 ?
Easily mounted from Windows or Linux..
less compatability issues than with NTFS..
 
Old 03-17-2006, 03:23 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,725

Rep: Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751
You can format a NTFS filesystem using the ntfsprogs tool mkntfs. I've never used this tool so no idea how well it works. NTFS write support is supposed to be pretty good in the 2.6.15 kernel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows partition asks for FORMAT!!!! FLX Linux - Software 5 04-08-2005 01:40 PM
Can yu run linux inside windows? tlewis Linux - Newbie 3 03-01-2004 11:25 PM
use vi to convert linux format to windows format intolinux Linux - Software 2 12-10-2003 10:20 PM
Can i see linux partition inside W2K ? Santorres Linux - General 2 12-09-2003 01:05 PM
partition format with windows compatiblity jpc82 Linux - General 4 10-11-2003 08:29 PM


All times are GMT -5. The time now is 08:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration