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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-17-2012, 08:21 AM
|
#1
|
Senior Member
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,067
Rep:
|
switch to minimal mode
(using Debian_testing_amd64, lxde) I need to free as much RAM as possible. I've tried:
'sudo init 1'
but mountpoints are then lost.
I also tried adding 'text' to 'ro quiet' in grub2, but that does nothing.
is there some simple way to boot to text only?
thanks
|
|
|
06-17-2012, 08:34 AM
|
#2
|
Member
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719
Rep:
|
http://packages.debian.org/search?keywords=sysv-rc-conf
Use the tool in the link above ( command line tool) then edit /etc/initab file to set your default run level (or just edit the default to how you like).
|
|
1 members found this post helpful.
|
06-17-2012, 08:58 AM
|
#3
|
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
|
If you want to free some memory space then what's the point of going into runlevel 1?
You should stop some of the unnecessary services which are of no use running at runlevel 5. That would help in free up some space.
And using "free -m" command you can check the free memory size.
|
|
|
06-17-2012, 09:19 AM
|
#4
|
Senior Member
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,067
Original Poster
Rep:
|
thanks, but 'init 1' seems to be perfect as it shuts down all but essential stuff. I've managed to restart mount points in it. the only other problem is that tty2 and others do not work.
Last edited by qrange; 06-17-2012 at 09:50 AM.
|
|
|
06-17-2012, 11:56 AM
|
#5
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Ok, at first to all posters here suggesting to change the runlevel. Debian uses only the runlevels 1 and 2, runlevels 3-5 are the same as 2. But basically jv2112's idea is the right one. Use sysv-rc-conf to create a custom runlevel 3 with all the services you need and disbling all services you don't want to run. Then you can just change to runlevel 3 if you need, no need to go to single user and then re-mount everything.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 03:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|