LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-16-2004, 02:32 PM   #1
jjorloff1
Member
 
Registered: Nov 2003
Distribution: Gentoo (I've tried everything twice+)
Posts: 48

Rep: Reputation: 15
I messed up my runlevels


I was editing my runlevels so that my comp would boot faster, and i accidentally disable my keyboard or something i guess, cuz it wont work now, and well i just want my runlevels back to normal. . . and since i cant get into linux i need a way to do this out of linux i think. Does anyone know a way to fix my problem, or help? Thanks

Selebus947
 
Old 08-16-2004, 02:38 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Which file(s) were you editing?
 
Old 08-17-2004, 07:53 AM   #3
gunter
Member
 
Registered: Jan 2003
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
Using a linux livecd will get you access to your files.

Knoppix is popular: http://www.knoppix.net/

I use LNX more than Knoppix: http://www.lnx-bbc.org/

Been there, done that.
 
Old 08-17-2004, 08:39 AM   #4
jjorloff1
Member
 
Registered: Nov 2003
Distribution: Gentoo (I've tried everything twice+)
Posts: 48

Original Poster
Rep: Reputation: 15
OH! DUH! lol, i was so stupid, i didnt even think of that, the funny thing is i downloaded knoppix for my friend and the iso's still on my hard drive. Alright, ill give it a shot, thanks.
 
Old 08-17-2004, 09:13 AM   #5
jjorloff1
Member
 
Registered: Nov 2003
Distribution: Gentoo (I've tried everything twice+)
Posts: 48

Original Poster
Rep: Reputation: 15
Another Question. . . . .

Does anyone know what file i will be looking for to edit, because i'm pretty sure illhave to manually go into the file, correct? I just need the runlevel program file, not sure what its called, so if anyone could help it would be appreciated. thanks
 
Old 08-17-2004, 09:16 AM   #6
gunter
Member
 
Registered: Jan 2003
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
/etc/inittab is generally used to control runlevels. Don't know if thats what you want.
 
Old 08-17-2004, 09:45 AM   #7
jjorloff1
Member
 
Registered: Nov 2003
Distribution: Gentoo (I've tried everything twice+)
Posts: 48

Original Poster
Rep: Reputation: 15
Ok, well i found what i was looking for. . . in suse you have to link a buncha scripts in the /etc/init.d folder to their respective runlevel folders also in /etc/init.d, but there is a problem i have now encountered. . . i do not have permission to write or change things on my hard drive. I know what file i need to change, but i am not allowed to. Is there any way i can get root permissions on my hard disk through knoppix, or even just the ability to write to my hard drive?
 
Old 08-17-2004, 09:53 AM   #8
gunter
Member
 
Registered: Jan 2003
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
I think knoppix automagically mounts partitions (as readonly) for you. You need to unmount your partition and remount it for rw permissions. I don't have knoppix in front of me, but it would be something like 'umount /mnt/hda1' mount -t ext2 (or reiserfs or ext3) /dev/hda1 /mnt/hda1'. Without looking at your box, I can't be any more specific, sorry.
 
Old 08-17-2004, 09:57 AM   #9
jjorloff1
Member
 
Registered: Nov 2003
Distribution: Gentoo (I've tried everything twice+)
Posts: 48

Original Poster
Rep: Reputation: 15
its not letting me unmount it says teh device is busy. . .how do i manually kill a device if you have aim. . . .could you im me make this easier? my sn is Selebus947. . .
 
Old 08-17-2004, 10:08 AM   #10
jjorloff1
Member
 
Registered: Nov 2003
Distribution: Gentoo (I've tried everything twice+)
Posts: 48

Original Poster
Rep: Reputation: 15
nvm i was stupid. . .again. . .lol i got it unmounted
 
Old 08-17-2004, 10:09 AM   #11
gunter
Member
 
Registered: Jan 2003
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
I can't seem to remember my AIM password. The reason you can't unmount is because you have a file open on the mounted partition or your PWD (preset working directory) is inside the partition. Ensure that you have nothing open type 'cd ~;' and then 'lsof grep yourmount'.
 
Old 08-17-2004, 10:16 AM   #12
jjorloff1
Member
 
Registered: Nov 2003
Distribution: Gentoo (I've tried everything twice+)
Posts: 48

Original Poster
Rep: Reputation: 15
thanks for the help. . it seems i have my problem worked out i will see when i reboot, but right now im working on something else. . . do you by any chance know what filesystem type (instead of subfs) a floppy drive can be set as, cuz in SuSE i compiled kernel 2.6.8.1 and it for some reason subfs does not work, so i changed my cdrom to iso9660 but i dont knwo what to change my floppy to
 
Old 08-17-2004, 10:27 AM   #13
gunter
Member
 
Registered: Jan 2003
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
I don't think I have ever heard of subfs. My floppy is set to 'auto'.
 
Old 08-17-2004, 12:01 PM   #14
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
Yeah just leave your floppy to auto and all should be well
 
Old 08-17-2004, 04:35 PM   #15
jjorloff1
Member
 
Registered: Nov 2003
Distribution: Gentoo (I've tried everything twice+)
Posts: 48

Original Poster
Rep: Reputation: 15
Yeah, i tried auto, and it didnt work. . . it was originally on subfs (which may be a suse thing, but i dont think so, my cdrom was also subfs). im gonna try vfat and ext2 then autofs (i dont know what it is really, but it may work)
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Runlevels setup Riddick Slackware 10 11-02-2005 09:38 AM
Runlevels nin881 Slackware 8 05-21-2005 02:50 AM
RunLevels bcom Mandriva 3 05-31-2004 07:07 PM
runlevels? Computergirl24 Linux - Software 4 12-26-2003 04:45 PM
runlevels kriver Linux - General 1 03-13-2002 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:55 PM.

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