LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 09-27-2004, 01:41 AM   #1
lionelx
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Rep: Reputation: 0
Basic questions on LinuX


Hiya guys,

having problems trying to understand what is meant by swapping and mount point?trust me , i know nuts about Linux.....slow me =(

I know that swapping means moving bits and data required by the CPU to and fro from the Virtual memory and Mount points are points which programs mount onto each other?

Damn confused now about this isuue...can anyone of you please kindly explain a bit of this to me. It would be greatly appreciated. +) thanks !

As well as a techincal questions. My Company PCs are windows-based(it sucks !) and i am trying to get a Linux server. The problem is , I have a standalone PC which i want to use as a Linux server to support 120 users. I have 2 40GB HDD and what type of partitioning scheme should i use? as in mount point or swap?? or both?? (CONFUSED again...)





I understand that Linux has many partitions(compared to Windows FAT32) and how much should i set the size for which partition?
/bin
/etc
/lib
/tmp
/usr/bin
/usr/man
/usr/local
/home

These are directory but does it means that they are seperate partitions too>?


I know this is very basic quesitons to you guys out there.. And i sincerely(touch my heart) need some help and explanation here..Will appreciate it very much(truly) if i can get some answers from your experts...Thank You

Yours Sincerely and Truly
Lionel (a Window User trying so hard to understand and change to Linux)
lionelx83@hotmail.com
 
Old 09-27-2004, 04:02 AM   #2
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Rep: Reputation: 30
since your database corresponds to many users,it is advisable to keep their homes in a seperate partition and mount it to say /users(this is the one i think is better than home in case of large nos,)

Quote:
These are directory but does it means that they are seperate partitions too>?
no,they neednt necessarily be seperate partitions.
 
Old 09-27-2004, 04:21 AM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
From http://www.redhat.com/docs/manuals/e...swapspace.html
"Swap space in Linux is used when the amount of physical memory (RAM) is full. If the system needs more memory resources and the physical memory is full, inactive pages in memory are moved to the swap space. While swap space can help machines with a small amount of RAM, it should not be considered a replacement for more RAM. Swap space is located on hard drives, which have a slower access time than physical memory."

-----

A mount point is where you mount a partiition on a directory structure. So, if you have a physical hard drive partition hda4 you could mount the home directory on it. When you list the files on the home directory, you are seeing what is physically on the hda4 partition.

The file system is a hierarchal one starting at root which is a single /. It doesn't care what partition the directory is on. If a directory is mounted, it is one filesystem, no matter if it is on one or more partitions on one drive, or if it is on another drive on the same box or another box.

Hope I explained this clearly.
 
Old 09-27-2004, 05:26 AM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
http://www.linux.org

has some good beginner tutorials (i know i read up on linux as much as i could before getting a separate laptop to try it out on, this site was pretty good as explaining the basics)

anyways, swap space is located as a separate partition on the hard drive, its not mounted on the visible file system tho (the one that start with / ), its used by the kernel as explained by darthtux ...

i hear people usually say that the partition for swap space should be near the center of the hard drive (probably so it can access the partition faster), and that the swap space should be 2X more then the actual RAM


a swap partition is create as so (just in case you don't know), the partition will be on the hda drive (master drive on the primary ide slot), and contain 256mb of space (you'll most diffidently use more)

/sbin/fdisk /dev/hda
n[enter]
p[enter]
1 (enter in any number you want .. for this i chose 1 just so its simpler )
[enter]
+256mb[enter]

--now that should have created a primary partition with 256 mb of space, tho you could have created the swap in a logical partition, now to set the partition type to that of linux swap partition's --

t[enter]
82[enter]

-- all done here, now to save and exit --

w[enter]

now to create the linux swap's file system

/sbin/mkswap /dev/hda1

all done
 
Old 09-27-2004, 10:53 AM   #5
lionelx
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Sorry

Good Day Folks !

Sorry about the repeatition as i am fairly new to Forums and Linux(my god, where was i in the last 5 years? staying in the musuem playing with the morse code machine?!?!?)

Anyway thanks for all your replies ...Had understand quite a bit from all your replies and it had deepen my knowledge about Linux....deeply appreciated it*touch my heart*

Its people like you guys that make the internet such a great place to be in ...thanks a lot again so much....


Sincerely From Singapore,
Lionel Wong
 
Old 09-27-2004, 11:24 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

FUP here: http://www.linuxquestions.org/questi...hreadid=235643
 
  


Closed Thread



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New to linux, Basic questions sider69 Linux - Newbie 6 09-26-2005 02:06 AM
Some basic Questions in Linux sdudi76 Linux - General 3 08-09-2005 12:49 PM
A Few Basic Linux Questions... cabrone Linux - Newbie 7 09-15-2003 06:19 AM
Basic Linux Questions karlan Linux - Newbie 13 08-09-2003 05:05 PM
Basic linux questions karlan Linux From Scratch 0 08-08-2003 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:21 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