LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   switch to minimal mode (https://www.linuxquestions.org/questions/linux-newbie-8/switch-to-minimal-mode-4175411904/)

qrange 06-17-2012 07:21 AM

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

jv2112 06-17-2012 07:34 AM

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).

Satyaveer Arya 06-17-2012 07:58 AM

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.

qrange 06-17-2012 08:19 AM

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.

TobiSGD 06-17-2012 10:56 AM

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.


All times are GMT -5. The time now is 11:49 AM.