You are not logged in.

#1 2007-06-26 22:03:47

user50
Member
Registered: 2007-06-26
Posts: 4

Help!! Problem with rc.local

Hi, I modified the file rc.local (i put "shutdown -h +30" because i need the pc for only 30 min every day) and now the system can't boot... How can i modify the file rc.local? Thanks...

Offline

#2 2007-06-26 22:35:49

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: Help!! Problem with rc.local

use a live cd

Offline

#3 2007-06-27 06:52:11

user50
Member
Registered: 2007-06-26
Posts: 4

Re: Help!! Problem with rc.local

I tried but i've not the right to modify the file...

Offline

#4 2007-06-27 06:54:23

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: Help!! Problem with rc.local

if i understand correctly you don't have correct permissions? please elaborate

Offline

#5 2007-06-27 06:59:30

user50
Member
Registered: 2007-06-26
Posts: 4

Re: Help!! Problem with rc.local

Yes!! Sorry for my english... I don't have correct permissions to modify the file rc.local...

Offline

#6 2007-06-27 09:02:03

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Help!! Problem with rc.local

user50 wrote:

Yes!! Sorry for my english... I don't have correct permissions to modify the file rc.local...

From the live cd? Make sure the filesystem is mounted rw then and use root if necessary.

Offline

#7 2007-06-27 10:48:24

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Help!! Problem with rc.local

If you use grub tap e to edit the kernel line, and append " 1"

e.g.

kernel /boot/vmlinuz26 root=/dev/hda1 ro vga=791

to

kernel /boot/vmlinuz26 root=/dev/hda1 ro vga=791 1

tap b to boot, then give the root password and just mv /etc/local somewhere else (or edit it with vi, nano, mcedit) and continue

mv /etc/rc.local /etc/rc.localKEEP
init 5

Last edited by vacant (2007-06-27 10:52:02)

Offline

#8 2007-06-28 06:58:28

user50
Member
Registered: 2007-06-26
Posts: 4

Re: Help!! Problem with rc.local

Thank you!!! With the grub solution now it's all OK... smile:):)

Offline

Board footer

Powered by FluxBB