LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-12-2004, 07:30 PM   #1
tiger99
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Rep: Reputation: 0
Can't create swap partition


Hi
I am trying to install debian in my computer. I am in the process of partitioning my hard drive. Currently, I have windows xp installed. The following is my current partition structure
1. bootable, primary, NTFS 20G
2. , logical , NTFS 20G
3. free 40G

From my understanding after reading the manual, I am suppose to create small partitions for each hierarchy and a swap partition. So I have done the following

1. bootable, primary, NTFS 20G
2. , logical , NTFS 20G
3. ,primary, Linux 120M -- root
4. ,logical, Linux 600M -- usr
5. , logical, Linux 200M --home
6. , logical, Linux 4G --var
7. , logical, Linux 50M --tmp

Then I wrote my table structure into partition 3 and exit the partition process. But I keep getting the message that the swap partition does not exist.

So my question is how am I suppose to create my partiton???

Thanks in advance
 
Old 03-12-2004, 07:33 PM   #2
sirpimpsalot
Member
 
Registered: Feb 2004
Posts: 141

Rep: Reputation: 15
if you want to curcumvent the problem, just create two partitions..... one / partition and a swap....

sounds like ALL your partitions are in a single extended partition... someone fill in here... doesnt that lead to problems?
 
Old 03-12-2004, 07:57 PM   #3
tiger99
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
how can I create a / partition and a swap partition? I can only specify the size and the type of partition. I don't think I can crreate a name for a partition.

Also, am I suppose to create more than one extended partitions? how can I do it??

Thanks for all the help
 
Old 03-12-2004, 08:09 PM   #4
dslboy
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware -current
Posts: 157

Rep: Reputation: 30
run cfdisk just type cfdisk from the console, and enter on the partition you want to be as /

then enter the partition you want as /swap
then on the swap partition, go to type on the menu, toggle with left/right and enter, then put in the value number that is listed as swap, then go to write, note the name of the partition hda2, hda3, or whatever for swap, and type swapon and whatever name you have for swap. swap space should be equal or double the size of your ram.
 
Old 03-12-2004, 08:14 PM   #5
dslboy
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware -current
Posts: 157

Rep: Reputation: 30
BTW; What do you mean by name of the partition, this is done automaticly..

You cant have more then four logical partitions on a primary, so my suggestion is:
1. bootable, primary, NTFS 20G
2. ,primary, Linux 120M -- root
3. ,logical, Linux 600M -- usr
4. , logical, Linux 200M --home
5. , logical, Linux 4G --var
6. , primary , NTFS 20G
7. , logical, Linux 50M --tmp
8. , swap , if 512 ram, put something like 200 or so.

Swap partition should be on the last primary...
In my opinio, you dont need that many partitions;

one for boot,one for root and one for home should do.
Having one for usr will just take up your free space, cuz you dont really know what you're gonna install anyways...
And of chource the rest of your winnt...

Last edited by dslboy; 03-12-2004 at 08:16 PM.
 
Old 03-12-2004, 08:37 PM   #6
tiger99
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
I have installed my windows xp in my bootable partition and I have a lot of files in my other NTFS partition. if I do a "Write" table structure and create all the other partitions, will it erase all my existing files?

Thanks
 
Old 03-12-2004, 08:49 PM   #7
dslboy
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware -current
Posts: 157

Rep: Reputation: 30
It won't erase those partitions you did not touch, only newly created partitions.
 
Old 03-12-2004, 08:52 PM   #8
ryeman
Member
 
Registered: Jan 2004
Location: Gainesville, GA
Distribution: Ubuntu
Posts: 118

Rep: Reputation: 15
It sounds like your using XP's Fdisk..

Since you have the free space allocated, exit out of fdisk and try running Debian and do your partitioning during the install process.
 
Old 03-12-2004, 08:59 PM   #9
dslboy
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware -current
Posts: 157

Rep: Reputation: 30
Dont know how your installer works, it might have a nice gui frontend, if not, go for cfdisk, much easier than fdisk, but as i said, none of the partition proggies will erase things you haven't touched...
 
Old 03-12-2004, 09:01 PM   #10
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
tiger99 - based on your comments you have an 80G drive. Currently you've got 2 partitions for Windows, one primary and one logical, each 20G, for a total of 40G, with the remaining 40G being free space. Let's also assume that you want to create a swap, /, /home, /usr, /var, and /tmp partitions.

You can only define up to 4 primary partitions on a hard drive, and if you need more than that, you can define up to 3 primaries and 1 logical. All the additional partitions would be created within the logical partition. As dslboy states, the cfdisk tool is great for this task, and if you've got 40G to work with, I'd suggest considering the following:

1. Create a new primary partition for swap of either 256Mg or 512Mg. In cfdisk, swap is type 82.
2. Create a new logical partition for the remainder of the disk. The file type is Linux Native, type 83.
3. Within this new logical partition, create:
/ = 12G
/usr = 10G
/var = 2G
/tmp = 2G
/home = 14G (whatever's left)

Your /home directory is where all your data lives, so you want it to be big. The 200Mg you listed originally would be way, way too small. Note that all these partition sizes are just what I'd use - you should feel free to use whatever sizes you think are appropriate. Note also that if you ask 50 people how you should partition your disk, you should expect to get 50 different answers.

Good luck with it -- J.W.
 
Old 03-12-2004, 09:02 PM   #11
tiger99
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
I boot my installation program from floopy disks
I have created 3 disks - rescue.bin, root.bin and linux.bin
I am using cfdisk
 
Old 03-12-2004, 09:44 PM   #12
tiger99
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
I was trying to do what JW said
So, after my 2 existing partitions
1. bootable, primary, NTFS
2. ,logical, NTFS

I tried to create a primary linux partition first then a logical partition
But after I created the primary partition, it woundn't let me create logical partition. It only let me create another primary partition. And it showed that the rest of my space is unstable.

however, if I created a logical partition first, it would let me create a primary/logical after that. but I dont think I should do that

I am so confused....
Also, how can I divide the logical partition into smaller partitions??

Thanks
 
Old 03-12-2004, 09:57 PM   #13
dslboy
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware -current
Posts: 157

Rep: Reputation: 30
Hmm, just make another primary, then logical, it doesn't really matter, as long as you dont get confused..
If you need to divide a partition that you can't erase, you need a more powerful tool, like partition magic or something. If not, simply enter the amount of disk space you want on thoose partitions.
 
Old 03-12-2004, 10:14 PM   #14
tiger99
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
I can't create primary then logical. I can only create logical then primary. Aren't they the same?
 
Old 03-12-2004, 10:49 PM   #15
dslboy
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware -current
Posts: 157

Rep: Reputation: 30
Ok. to get one thing straight now

You can't make ntfs partition bootable!
If you have a 80gig disk, I would consider this:
1: Whatever space you need for ntfs.
2: root (/) partition; at least 5 gig
3: swap (/swap) partition; at least or twice the amount of your ram.
3: home (/home) partition; the rest!

This is ideal because:
1. You don't know how much space you will need for /usr, so it's best to leave it at the root (/)
2. Don't mix linux with nt or fat! You don't actually need a boot partition, cuz it's only gonna be small text-based files running on it anyway so it's safe to also leave this at the root (/)

Ntfs is ntfs, so leave it.
make root partition primary, home partition logical, and swap swap

Try this, and if something happens, just give us a wink.

Best of luck!
 
  


Reply



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
Need to create a swap partition dotancohen Linux - General 4 07-30-2005 12:39 PM
I installed linux and forgot to create a swap space partition Starch Linux - Newbie 5 06-22-2005 08:29 AM
Create swap partition AFTER installing slackware? dx0r515t Slackware 4 05-21-2005 11:29 PM
Create swap partition? mikeshn Linux - General 6 11-28-2002 02:42 AM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:48 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
Open Source Consulting | Domain Registration