Lesson 7

Dates: 3/5/2014
Start-up and Run Levels. Scheduled jobs (at, cron)
Linux for Engineering and IT Applications


Booting into specified Run levels

When you need to boot into non-default Run level, for example 1, specify the run level in the GRUB menu: edit the GRUB menu (type e at the prompt then type e again at the Kernel line) and add "single" or "1" as follows:

grub edit> kernel /boot/vmlinuz-2.6.24-24-generic root=/dev/sdb1 ro single
Then type b to boot into Run level 1.

Booting into the system without password
You can prescribe init at boot time to execute only /bin/bash when a system boots up:

grub edit> kernel /boot/vmlinuz-2.6.24-24-generic root=/dev/sdb1 ro init=/bin/bash
When the system boots up, remount/mount all the file systems for (rw):

mount -n -o remount,rw /
mount /usr
mount /var
mount /home
mount /tmp



Take me to the Course Website