Author Topic: RH 8/Knoppix question  (Read 875 times)

Ice-9

  • Member
  • **
  • Posts: 322
  • Kudos: 0
    • http://users.pandora.be/Ice9
RH 8/Knoppix question
« on: 30 December 2002, 03:07 »
A friend of mine completely messed up his RH 8 while installing the latest nvidia drivers.
All he gets is a black screen, no login prompt, nothing.
He can type stuff, su root and all, but when he tries to edit his XF86config file he can't save it because it's read-only.

I burned him the latest Knoppix iso to try and use it as a rescue disc, same issue, he can't chmod the file because it's read-only.
(He unticked the "read-only" option on the partition and used the root shell, still nothing)

Would anybody know how to fix this problem, either from within RH or by using Knoppix?
He was sitting on a rock. He was barefoot. His feet were frosty with ice-nine .....

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
RH 8/Knoppix question
« Reply #1 on: 30 December 2002, 03:33 »
Teehee...

In pico: pico -w <file>
In Vim, when you are done: :wq! (yes, include the "!").

Ice-9

  • Member
  • **
  • Posts: 322
  • Kudos: 0
    • http://users.pandora.be/Ice9
RH 8/Knoppix question
« Reply #2 on: 30 December 2002, 03:49 »
Doesn't work, he can edit the file, but he can't save it.
Even when he su to root, apparently he doesn't own the file and can't save it.
(tried su and su -)
When trying to chmod it, all he gets is "permission denied" - "read-only file"
He was sitting on a rock. He was barefoot. His feet were frosty with ice-nine .....

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
RH 8/Knoppix question
« Reply #3 on: 30 December 2002, 04:18 »
:wq! or :w! always worked from me in Vim. Odd.

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
RH 8/Knoppix question
« Reply #4 on: 30 December 2002, 04:23 »
how is this partition being mounted? did you already say it was being mounted rw? or is it ro?
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

RudeCat7

  • Member
  • **
  • Posts: 431
  • Kudos: 109
RH 8/Knoppix question
« Reply #5 on: 30 December 2002, 05:00 »
Since it is a video problem in Redhat, you should be able to use 'linux single' at the lilo prompt to get you in. It's saved my ass before.
*meow!* I didn't say Linux was easier, I said it was better, Dumbass!

flap

  • Member
  • **
  • Posts: 1,268
  • Kudos: 137
RH 8/Knoppix question
« Reply #6 on: 30 December 2002, 05:05 »
quote:
Originally posted by Ice9:
Doesn't work, he can edit the file, but he can't save it.
Even when he su to root, apparently he doesn't own the file and can't save it.
(tried su and su -)
When trying to chmod it, all he gets is "permission denied" - "read-only file"



Who does own it?
"While envisaging the destruction of imperialism, it is necessary to identify its head, which is none other than the United States of America." - Ernesto Che Guevara

http://counterpunch.org
http://globalresearch.ca


Ice-9

  • Member
  • **
  • Posts: 322
  • Kudos: 0
    • http://users.pandora.be/Ice9
RH 8/Knoppix question
« Reply #7 on: 30 December 2002, 12:53 »
quote:
Originally posted by Calum

how is this partition being mounted? did you already say it was being mounted rw? or is it ro?


When you start Knoppix it's ro but he changed that to rw.

 
quote:
Originally posted by flap

Who does own it?


XF86config is owned by RH's root but when you boot with Knoppix you are user Knoppix.
The odd thing here is that even when he boots into RH and su to root he doesn't seem to own the file and can't save to it   :confused:
He was sitting on a rock. He was barefoot. His feet were frosty with ice-nine .....

Ice-9

  • Member
  • **
  • Posts: 322
  • Kudos: 0
    • http://users.pandora.be/Ice9
RH 8/Knoppix question
« Reply #8 on: 30 December 2002, 15:39 »
Nm, he's got it fixed, he shut down his computer quite abruptly out of pure anger    ;)   and when he rebooted he had a prompt asking him to do a filesystem check, he logged in, edited his config file and everything is fine now.

Quite unconventional way to fix things if you ask me but hey, it's the result that counts isn't it?
I'm still going to investigate the Knoppix/root user issue should I ever need to use it as a rescue disc.
Creedon, I know you're quite positive about Knoppix, if you know a workaround for this I'd be happy to hear about it    :D  

Thanks everyone for the suggestions.

[ December 30, 2002: Message edited by: Ice9 ]

He was sitting on a rock. He was barefoot. His feet were frosty with ice-nine .....

choasforages

  • VIP
  • Member
  • ***
  • Posts: 1,729
  • Kudos: 7
    • http://it died
RH 8/Knoppix question
« Reply #9 on: 30 December 2002, 23:22 »
umm, su doesn't work with knoppix
instead try
sudo bash

and that will give you a root shell under knoppix
x86: a hack on a hack of a hackway
alpha, hewlett packed it A-way
ppc: the fruity way
mips: the graphical way
sparc: the sunny way
4:20.....forget the DMCA for a while!!!

membrax

  • Newbie
  • *
  • Posts: 11
  • Kudos: 0
    • http://www.geocities.com/siliconvalley/vista/8657
RH 8/Knoppix question
« Reply #10 on: 31 December 2002, 00:13 »
quote:
Originally posted by TheQuirk:
Teehee...

In pico: pico -w <file>
In Vim, when you are done: :wq! (yes, include the "!").



Hummm hummmm ... nearly right buddy.
But whith a black screen, pico is quite difficult to use you know.
And, on top of that, when the concerned file is -rw-r--r-- attributed you can put as many "!" as you want, without being root you won't have the write access to it !


By the way, coz I'm the victim Ice9 is speaking over, as I recompiled the latest nVidia drivers 4.1.9.1 I just got the same trouble one hour ago.
Screen totally black.

... and then ?

Worked as a blind :
- many <esc> keys, followed by some <Enter>
- then "login" <Enter>
- then "root"
- then "**********" nah you won't know my password  
--->> I became root
- then the famous cmd line blindly :
"cp etc/X11/XF86Config-original etc/X11/XF86Config" yeah, I had a clean copy ... just in case.
- "y" (still blindly, remember ?)
- "halt"
- System shutdown & reboot.

Let there be light !


By the way Ice9, thx again for getting support for me, as you surely recall I really needed that !!!

;o)
MeMbR@X, Penguin Defender.
Now that you're free, go and free the others.

One OS to help them all,
One OS to find them,
One OS to help them all,
And from the Darkness, unbind them !