LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-27-2003, 03:42 AM   #1
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Rep: Reputation: 15
Difference between Swap Virtrual memory and Swap Parition


Okay, last couple of questions for the night...I'm sorry I'm asking such newbie questions, but I have to learn somehow. I did search threads for this info, but not answered to my liking.

1) what is the difference between the different swaps i.e. virtural swap where there is a certain sized file, and a partition swap.

2) how do I implement the partition swap (having 128 MB Ram), with a FAT-32 partition

3) my regular user (not root), doesn't have a .bashrc file in the home directory...it was never created. Is this something I have to make in order to implement certain login features (ex. alias's or mod'd scripts), for that user

4) What file or script makes the annoying quote of the day come up everytime I login. How do I make this go away

Once again thank you so much for your help, and I appreciate your time. I have come to really like the Linux OS, exspecially Slackware and am trying to cram my brain of knowledge from it.
 
Old 11-27-2003, 09:32 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
1) swap file is easier to make, resize, remove - I dunno. They're rarely used. Partition has faster access thana file for some arcane reason, I think, but mainly helps with fragmentation. It's the usual.

2) Depends on what the fat is used for and what you want it to be like when you're done. Could just delete it, recreate a smaller fat, and a swap with the remainder. fdisk, mkswap, swapon are the main tools - some at least.

3) ~/.bash_profile and the like are sourced for login shells. ~/.bashrc is sourced when it's not a login shell. You get redundant path info but I usually just symlink them. If you have special knowledgeable use for them, they make a difference, though. But you do need *a* config file to use aliases and such like, or you just get stuck with the default /etc/profile setup.

4) Several ways but the easiest is to 'chmod 600 /etc/profile.d/bsd-games-login-fortune.sh' though that's global. (I like 'em myself - mostly.)

Man pages and just poking about the file system looking for cool stuff is good for brain-cramming.
 
Old 11-27-2003, 05:16 PM   #3
minio
Member
 
Registered: Sep 2003
Location: Czech Republic - Prague
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
Quote:
Originally posted by digiot
1) swap file is easier to make, resize, remove - I dunno. They're rarely used. Partition has faster access thana file for some arcane reason, I think, but mainly helps with fragmentation. It's the usual.
I see no slowdown using swapfile instead of swap partition, but i've got 384 MB of memory and swap is used rarely. Fragmentation isn't problem unless you change swapfile size.
 
Old 11-27-2003, 08:28 PM   #4
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
you cant make fortune go away and if you did the computer would blow up, The world would stop turning, and everyone would fly off in different directions.

But if your willing to risk that ... then in /etc/profile.d just rename the bsd-games-login-fortune.sh and bsd-games-login.csh to bsd-games-login-fortune.sh-i-will-come-to-my-senses-and-rename-this-back-so-i-get-fortunes
and the same for bsd-games-login-fortune.csh ... this comes in the bsd console game package so the next time your installing just deselect that package if you *REALLY* dont want fortune messages.
 
Old 11-27-2003, 08:58 PM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Quote:
Originally posted by skog
you cant make fortune go away and if you did the computer would blow up, The world would stop turning, and everyone would fly off in different directions.

But if your willing to risk that ... then in /etc/profile.d just rename the bsd-games-login-fortune.sh and bsd-games-login.csh to bsd-games-login-fortune.sh-i-will-come-to-my-senses-and-rename-this-back-so-i-get-fortunes
and the same for bsd-games-login-fortune.csh ... this comes in the bsd console game package so the next time your installing just deselect that package if you *REALLY* dont want fortune messages.
Exactly - somebody should tell Patrick to move that into /a so people don't get confused.
 
  


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
Swap memory zero ??? lewkh Red Hat 2 07-23-2005 02:11 PM
Swap Memory xbill311x Linux - Newbie 2 04-11-2005 02:58 PM
Swap being used before memory gone bmiley_ncaa Linux - Hardware 2 09-29-2004 04:53 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM
Swap Memory in use or not? Qebex Linux - Hardware 5 09-21-2002 08:59 AM


All times are GMT -5. The time now is 01:40 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration