Admin access to primary hard drive OS via Live CD
I'm using a Knoppix Live CD (Debian 4.1.1-19) to access a corrupted file on my Hard Drive.
In order to alt-edit the file, I need root privileges. What is the regime for invoking the root/Admin password prompt for the install on my primary HD? I've tried the usual "kdesu" & "startx" in terminal with the HD partition(s) mounted. But that's either the wrong approach or I'm using the commands incorrectly. My HD is running Deb/GNU 2.6.18-5-686, KDE 3.5.5 rooster |
Hi,
Similar issue, different solve: I use a Fedora Live CD, when booted you're root. Well, you may have to click on, though. I tried an edit, the Live System said something like "tsk-tsk I'll report this to the Root" - but it let be do my thing. No need for a root pass... Never used Knoppix/DSL for that, as I could'nt mount the hard drive. Of course, I did'nt have the most recent versions ;) In your case, i'd try a Fedora Live CD... Good luck with the repairs! Thor Edit: Quote:
|
Quote:
I did my best to make my objective clear. I'm using a live CD to mount my primary Hard Drive that has corrupted files on it that I need to edit in order to boot my primary OS located on that drive. The files on my primary OS are password protected; i.e., I need to invoke root privileges in order to alt-edit them or move them;..anything. So the question is, how does the password prompt for my primary OS get invoked 'remotely' from a live CD? I assume this is do-able; else how could files be redeemed from a faulty HD using a live CD; which regime is a well documented procedure for techy-types when important documents need to be preserved. rooster |
Quote:
Quote:
Hope this helps! I'll be monitoring this to see where we end up! Thor Edit : if you do have the nerve to go "hard core" - I'd suggest tty linux. Boot from the CD, log in with "root" and "password" (as mentioned at boot) and you're greeted with a dry "chop wood, carry water" (still dont understand the meaning of this...) and dive right in: Find out the name(s) of the stuff in the system Quote:
Quote:
navigate to the drive Quote:
Quote:
and...operate Quote:
Lemme know where you end up! ;) |
Thor;
Quote:
Quote:
Code:
knoppix@Knoppix:~$ mount /dev/hda[X] Quote:
In the simplest terms I can muster; if I can't edit a file 'in situ', and I can't copy it to another location (e.g., a text editor) without gaining root access by invoking the Primary OS password prompt, then I'm no further ahead at this point; ...eh? It could just be that I haven't made it clear that I don't know how to get xterm, or a shell or Konqueror to run in my primary OS from the live CD. If I could, then perhaps I could get to the pw prompt. r00ster |
I think there is a misunderstanding here. If you use su in the terminal of the Live-CD to become root, you automatically are root in the installed OS. Please show us the commands you use to copy the files you want, and what error messages you get. This will show us what really goes on and helps us a lot more than a simple "can't copy".
|
Quote:
|
All times are GMT -5. The time now is 02:56 PM. |