Ajuda ! ? - rc.d/rc.4 [[Resolvido]]

1. Ajuda ! ? - rc.d/rc.4 [[Resolvido]]

RNT
rnt2

(usa Slackware)

Enviado em 07/05/2009 - 12:29h

Tive um problema com meu arquivo rc.d/rc.4, e agora meu slack não inicia.

Se alguem souber onde posso encontrar esse arquivo, tenho acesso a minnha partição ext3 pelo windows, entao é só substituir.

valew, fico no aguardo.




  


2. Re: Ajuda ! ? - rc.d/rc.4 [[Resolvido]]

Cristiano
sempreslack

(usa Slackware)

Enviado em 07/05/2009 - 13:13h

até onde seu boot chega? vc consegue ir até digitar seu usuário e senha?



3. Re: Ajuda ! ? - rc.d/rc.4 [[Resolvido]]

RNT
rnt2

(usa Slackware)

Enviado em 07/05/2009 - 13:16h

Não...

Fala que não consegue executar rc.4 e que vai tentar depois de 5 minutos.

e depois de 5 minutos, a mesma mensagem, mais 5 minutos.

não consigo fazer nada.

Preciso colocar ele na pasta. rc.d/ (PELO WINDOWS)

mas nao acho o arquivo na net.
Posso receber por email também.XD

vlww


ATENÇÃO: Alterei o arquivo Inittab pelo bloco de notas, agora o erro é outro.
Parece que depois que alterei com o Notepad, o slack ñ reconhece mais.
Preciso do inittab também.


4. Re: Ajuda ! ? - rc.d/rc.4 [[Resolvido]]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 07/05/2009 - 16:04h

Tenta ae:

#! /bin/sh
#
# rc.4 This file is executed by init(8) when the system is being
# initialized for run level 4 (XDM)
#
# Version: @(#)/etc/rc.d/rc.4 2.00 02/17/93
#
# Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# At least 47% rewritten by: Patrick J. Volkerding <volkerdi@slackware.com>
#

# Tell the viewers what's going to happen...
echo "Starting up X11 session manager..."

# Try to use GNOME's gdm session manager. This comes first because if
# gdm is on the machine then the user probably installed it and wants
# to use it by default:
if [ -x /usr/bin/gdm ]; then
exec /usr/bin/gdm -nodaemon
fi

# Someone thought that gdm looked prettier in /usr/sbin,
# so look there, too:
if [ -x /usr/sbin/gdm ]; then
exec /usr/sbin/gdm -nodaemon
fi

# Not there? OK, try to use KDE's kdm session manager:
if [ -x /opt/kde/bin/kdm ]; then
exec /opt/kde/bin/kdm -nodaemon
elif [ -x /usr/bin/kdm ]; then
exec /usr/bin/kdm -nodaemon
fi

# If all you have is XDM, I guess it will have to do:
if [ -x /usr/bin/xdm ]; then
exec /usr/bin/xdm -nodaemon
elif [ -x /usr/X11R6/bin/xdm ]; then
exec /usr/X11R6/bin/xdm -nodaemon
fi

# error
echo
echo "Hey, you don't have KDM, GDM, or XDM. Can't use runlevel 4 without"
echo "one of those installed."
sleep 30

# All done.

Pronto!


5. Re: Ajuda ! ? - rc.d/rc.4 [[Resolvido]]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 07/05/2009 - 16:05h

inittab:

#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Version: @(#)inittab 2.04 17/05/93 MvS
# 2.10 02/10/95 PV
# 3.00 02/06/1999 PV
# 4.00 04/10/2002 PV
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified by: Patrick J. Volkerding, <volkerdi@slackware.com>
#

# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot

# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:

# System initialization (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S

# Script to run when going single user (runlevel 1).
su:1S:wait:/etc/rc.d/rc.K

# Script to run when going multi user.
rc:2345:wait:/etc/rc.d/rc.M

# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -r now

# Runlevel 0 halts the system.
l0:0:wait:/etc/rc.d/rc.0

# Runlevel 6 reboots the system.
l6:6:wait:/etc/rc.d/rc.6

# What to do when power fails.
pf::powerfail:/sbin/genpowerfail start

# If power is back, cancel the running shutdown.
pg::powerokwait:/sbin/genpowerfail stop

# These are the standard console login getties in multiuser mode:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

# Local serial lines:
#s1:12345:respawn:/sbin/agetty -L ttyS0 9600 vt100
#s2:12345:respawn:/sbin/agetty -L ttyS1 9600 vt100

# Dialup lines:
#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100

# Runlevel 4 used to be for an X window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
x1:4:respawn:/etc/rc.d/rc.4

# End of /etc/inittab


6. Re: Ajuda ! ? - rc.d/rc.4 [[Resolvido]]

RNT
rnt2

(usa Slackware)

Enviado em 07/05/2009 - 16:08h

Renato, o problema é que se eu editar esse ou qualquer outro arquivo pelo windows, na hora do boot o slackware ñ reconhece.

Exemplo: alterei o inittab (para ele ñ iniciar o x e assim ñ rodar o rc.4) com o NotePad agora ele para bem no começo do boot.

Se eu tivesse esses 2 arquivos ja prontos eu simplismente colocava eles lá, e tudo certo.
Mas ñ acho o arquivo para Download na Net.

Ou vou ter que formatar.

Vlew.


7. Re: Ajuda ! ? - rc.d/rc.4 [[Resolvido]]

Pedro Henrique Rissato
pedrorissato

(usa Fedora)

Enviado em 07/05/2009 - 16:27h

ai é tranquilo.

Salva o arquivo no notepad.

Pega qualquer porcaria de live cd e inicia... Se não kiser faz um USB com o instalador de qualquer versão do slackware... ele vai reiniciar pelo pendrive, como se voce fosse instalar o slackware denovo. (DICA: se nao tiver live cd, ou cd de instalação de qualquer distro e achar mto dificil fazer um usb com o instalador do slack,.. puxa o slax.org uma distribuição live de 190MB que roda do pendrive tb... inicia por ela...)

Monta a partição raiz: "/" sua.

Monta a partição do Windows onde ta o arquivo salvo no notepad.

Edita. Salva. joga no rc.d xD

Reinicia, entra na net e manda um abraço pra nos aki no VOL xD


8. Re: Ajuda ! ? - rc.d/rc.4 [[Resolvido]]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 07/05/2009 - 16:43h

Valew, serialpipoca! Era isso q eu ia responder pra ele!


9. Re: Ajuda ! ? - rc.d/rc.4 [[Resolvido]]

RNT
rnt2

(usa Slackware)

Enviado em 07/05/2009 - 17:31h

Ok, consigo montar, copiar, mas não editar.

Consgigo até abrir com o "VI" mas...não consigo salvar.

Supondo que eu consiga salvar, oque eu tenho que editar?
Apenas abro e salvo?


10. Re: Ajuda ! ? - rc.d/rc.4 [[Resolvido]]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 07/05/2009 - 17:37h

Copie as linhas no tópico ae aberto. Dae vc abre o vi:

# vi inittab

Aperte "i" no seu teclado (sem aspas) e depois aperte Ctrl+Insert. Aperte "esc", depois ":" e "x". Aperte "Enter".

Pronto, tá salvo. O outro vc faz da msm forma.


11. Re: Ajuda ! ? - rc.d/rc.4 [[Resolvido]]

RNT
rnt2

(usa Slackware)

Enviado em 07/05/2009 - 20:23h

Para quem tiver o mesmo problema:

Quando você precisar criar um arquivo p/ o linux com o NotePad do windows para resolver algum problema, como criar um arquivo rc.X deletado, após salvar o arquivo e colocar na pasta do seu linux, edite o arquivo com o 'VI' apartit de um Cd de instalação, para tirar caracteres que tornam o arquivo ilegivel p/ o LINUX.

Exemplo. No meu caso no final de cada linha tinha esse caractér: '^M'

Deletei todos e salvei, tudo certo agora.








Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts