LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2005, 03:42 PM   #1
PSIPHON
Member
 
Registered: Jul 2005
Distribution: SuSe 10.0
Posts: 39

Rep: Reputation: 15
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!
 
Old 07-16-2005, 04:05 PM   #2
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Rep: Reputation: 30
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.
 
Old 07-16-2005, 04:33 PM   #3
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
which steps are you having problems with? which steps have you done so far?
 
Old 07-16-2005, 04:35 PM   #4
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
log in as root and mount the partition with the read-write option enabled.
 
Old 07-16-2005, 05:03 PM   #5
AresXP
Member
 
Registered: Jun 2005
Location: New Brunswick, Canada
Distribution: Slackware
Posts: 34

Rep: Reputation: 15
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

Last edited by AresXP; 07-16-2005 at 05:04 PM.
 
Old 07-16-2005, 05:16 PM   #6
PSIPHON
Member
 
Registered: Jul 2005
Distribution: SuSe 10.0
Posts: 39

Original Poster
Rep: Reputation: 15
thankyou!

was able to resolve the issue
 
Old 07-16-2005, 05:18 PM   #7
PSIPHON
Member
 
Registered: Jul 2005
Distribution: SuSe 10.0
Posts: 39

Original Poster
Rep: Reputation: 15
Glad to see you like slack 10.1 becuase im about to upgade to that now.
 
Old 07-16-2005, 05:43 PM   #8
AresXP
Member
 
Registered: Jun 2005
Location: New Brunswick, Canada
Distribution: Slackware
Posts: 34

Rep: Reputation: 15
Quote:
Originally posted by PSIPHON
Glad to see you like slack 10.1 becuase im about to upgade to that now.
Eheh, Slackware owns man!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
edit inittab C_J Linux - Newbie 4 01-24-2005 11:33 AM
Recover/edit of /etc/inittab from GRUB sujith_marar Linux - General 1 09-11-2004 01:19 PM
How to recover/edit /etc/inittab From GRUB sujith_marar Linux - Newbie 3 06-25-2004 10:28 AM
trying to edit inittab, perission denied texasjailer Linux - Newbie 4 06-18-2004 08:33 AM
Permision error when trying to edit 'inittab' /home/kyle Linux - Software 13 03-12-2004 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration