LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-12-2003, 02:59 PM   #1
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
slackware and swap on /dev/hda1


Following along in the Slackware Linux Essentials book that came with my storebought Slackware 9.0, the partitioning section has me creating the very first partition as the swap partition on /dev/hda1.

Is there any advantage or disadvantage to having the swap as /dev/hda1?

Would it be better as /dev/hda5, or some other mount point?

thanks...
 
Old 05-12-2003, 03:07 PM   #2
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
it doesn't really matter, just as long as its on the same hard drive as linux will be.

If you want to be technical its prob best if you can get it on a separate platter than the rest of the system but this is way too much effort.

Alex
 
Old 05-12-2003, 03:08 PM   #3
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
the first partition gives a faster seek time. but if you put it in the middle the average access time is about same, so it should be uniform, i guess
 
Old 05-12-2003, 03:15 PM   #4
chemzar
LQ Newbie
 
Registered: May 2003
Location: Storrs, CT
Distribution: Slackware 9.0
Posts: 13

Rep: Reputation: 0
Generally when I setup my computer I put my / partition on hda1, then my /home on hda2, followed by /usr on hda3, and my swap as hda4. If you are running windows also, then it generally likes to be hda1 and it erases the master boot record (MBR).

Does it matter where you put your swap? I am gonna say no as long as in your Lilo configuration you do the following:

boot = /dev/hda

This makes LILO look in the master boot record for your boot information. Then you can place Linux in your LILO like this

image = /boot/vmlinuz
root = /dev/hda1
label = Slackware

Change /dev/hda1 to whatever you set your root (/) partition to.
 
Old 05-12-2003, 03:37 PM   #5
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
Hey, thanks for the quick responses. Looks like hda1 will be ok then. I have 360MB of memory on that machine, so I'll follow 'tradition' and make the swap 720MB. That should be allright up front on the 30 GB disk.

There won't be any Windows on this machine, but I do plan to create an /LFS partition out on the end for Linux From Scratch. And, I think they can 'share' the swap space, so hda1 is as good a place as any.

Thanks again for the responses.
 
Old 05-12-2003, 03:43 PM   #6
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
nah don't bother with 720MB swap.

Just have 128-256 odd. Unless you're gonna be doing visciously large amounts of code recompilation or video/graphics editing then you won't need that much.

Just a waste of space.

Alex

P.S. there are heated debates about this all over this board and all over the internet so don't start another one in this thread.

Last edited by webtoe; 05-13-2003 at 04:48 AM.
 
Old 05-13-2003, 12:22 AM   #7
Rick422
Member
 
Registered: Apr 2003
Location: Arizona
Distribution: Red Hat Linux 9
Posts: 158

Rep: Reputation: 30
For each operating system, that I use, I prefer to use only one primary partion and several logical partitons. With IDE harddrives there can not be more than 4 primary partitons per harddrive. Of course if one of the primary partitons is replaced with an extended partiton, then many logical partitions can be created within it. Most operating systems can only be booted from a primary partition, not a logical partition. I assume that is probably also true of Linux.

If you use up all of your primary partitions just for that one copy of Linux, I assume it would not be possible to boot any other OS from the harddisk. I use hda1 for DOS, hda2 for Windows and hda3 for booting my 1st copy of LInux. I on my 2d harddrive I can choose between 3 copies of Linux booted from either hdb1, hdb2 or hdb3. I have not decided which Linux distro I like best so I would like to have several installed and compare them. I may also install FreeBSD. I also plan to put Linux from Scratch on either this computer or my old one.

I prefer to put swap and /usr in logical partitons. In the primary partiton I put /boot. If I do not creat a /boot partiton, then I boot from "/" in a primary partiton instead. Of course there is more than one way to do partitioning and these are only my preferences.
 
Old 05-13-2003, 12:26 AM   #8
Rick422
Member
 
Registered: Apr 2003
Location: Arizona
Distribution: Red Hat Linux 9
Posts: 158

Rep: Reputation: 30
I forgot to metion that all the copies of Linux can share the same swap space. At least I have got away with doing that on both of my computers.
 
  


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
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 04:54 AM
/dev/hda1 write permission....? chunlee Linux - Newbie 13 07-08-2004 10:37 PM
\dev\hda1 ?! maoinchina Linux - General 6 10-06-2003 07:23 AM
/dev/hda1 plisken Linux - General 2 03-14-2003 06:34 PM
/dev/hda1 does not exist G011um Linux - General 2 04-16-2002 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:04 PM.

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