LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 09-15-2009, 01:56 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908
Blog Entries: 26

Rep: Reputation: 49
how to set swap device


is it possible to add option in kernel line of bootloader so that DSL uses a particular partition as swap.
 
Old 09-15-2009, 06:55 PM   #2
Ciesar
LQ Newbie
 
Registered: Jul 2009
Location: Brisbane, OZ
Distribution: Slackware, Fedora and Debian
Posts: 9

Rep: Reputation: 0
In most Linux distributions you use the /etc/fstab to set swap files, which are loaded at boot.

an example of a swap line
/dev/sda6 swap swap defaults 0 0

you can also use the command 'swapon <swap partition>' to activate the swap partition.

I'm not sure about the kernel but I hope this helps.
 
Old 09-15-2009, 09:22 PM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Actually I am running damn small linux from its iso image so contents are dynamically stored on /ramdisk/ during boot.I have read a few cheat codes for kernel which allow you to set boot configuration.I was wondering is there a way that I can tell DSL to use my specified partition as swap otherwise it detects swap file system on my both hard disk & uses them.

Last edited by sumeet inani; 09-30-2009 at 07:18 AM.
 
Old 09-25-2009, 11:57 PM   #4
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
i discourage using it directally from the iso
 
Old 11-10-2009, 12:34 AM   #5
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
SOLUTION FOR ALL swap problems

SOLUTION FOR ALL
Question)Is it possible to specify swap device in GRUB bootloader?
Answer)No

Question)I forgot to create swap device during installation.What should I do?
Answer)
Create swap file of size 1.5 to 2 times RAM as follows.
Run as ROOT
(1)dd if=/dev/zero of=/swapfile bs=1024 count=1048576
NOTE:1048576=1024x1024KB=1GB so calculate number of KB's for your RAM by remebering 1MB=1024KB,1GB=1024MB.
(2)mkswap /swapfile
(3)swapon /swapfile
(4)add following line to /etc/fstab
/swapfile swap swap defaults 0 0

If this helps you then thank me by pressing thumbs up button.Thank You.

Last edited by sumeet inani; 11-12-2009 at 02:07 AM.
 
  


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
Read-error on swap-device(9:0:8) andyknvs Linux - Newbie 2 02-27-2008 02:29 AM
swap device error l0rddarkf0rce Slackware 4 07-27-2007 08:12 AM
can i set the swap after installation adam_blackice Linux - Newbie 6 11-11-2006 01:35 PM
swap device not getting mounted jacobselvin Linux - Newbie 9 07-20-2005 09:48 AM
label swap device equinox Linux - General 2 02-17-2005 12:41 AM

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

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