LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   neet to edit inittab, pls help (https://www.linuxquestions.org/questions/linux-newbie-8/neet-to-edit-inittab-pls-help-343810/)

PSIPHON 07-16-2005 03:42 PM

neet to edit inittab, pls help
 
I botched my GDM by using a theme taht i guess it doesnt want to play nice with and now it says the greeter is corrupt. Im on a live CD and i was wondering how i can grant myself permissions so that i can edit my /etc/inittab on /dev/hda1 save it and reboot back to normal til i can fix the GDM

Thanks in Advance!

inescapeableus 07-16-2005 04:05 PM

When I have in the past made mistakes whether it has to do with the Kernel or the initab I have always found Knopppix to be the cure for my issue. What you want to do is mount the Hard Drive so you can view the contents if not already mounted for you. You would then open a terminal and change your user to have root access, then open the file you want to edit with your favourite editor and save it. You should have no other probelms if you followed those steps.

Genesee 07-16-2005 04:33 PM

which steps are you having problems with? which steps have you done so far?

KimVette 07-16-2005 04:35 PM

log in as root and mount the partition with the read-write option enabled.

AresXP 07-16-2005 05:03 PM

Assuming your Linux partition is /dev/hda1 you can do the following in Knoppix (or any liveCD):
Quote:

mkdir /mnt/hda1
mount /dev/hda1 /mnt/hda1 -t ext3 #replace ext3 by whatever FS you use
gedit /mnt/hda1/etc/inittab #use whatever text editor you like
Don't forget to replace hda1 by the right partiton :)

PSIPHON 07-16-2005 05:16 PM

thankyou!

was able to resolve the issue

PSIPHON 07-16-2005 05:18 PM

Glad to see you like slack 10.1 becuase im about to upgade to that now. :D

AresXP 07-16-2005 05:43 PM

Quote:

Originally posted by PSIPHON
Glad to see you like slack 10.1 becuase im about to upgade to that now. :D
Eheh, Slackware owns man! :p :cool:


All times are GMT -5. The time now is 05:34 PM.