Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I edited a config file in Ubuntu and made it unbootable. In order to fix it, I booted the install CD and meant to revert the changes.

The problem is, it wont let me save the changes to the file. The file is owned by root -- I've no idea how to edit it while I'm booted from the CD.

share|improve this question
up vote 1 down vote accepted

Try running from the command line

"sudo gedit /pathtoyourfile"

That should open gedit, a text editor with GUI, with sudo privileges

share|improve this answer
    
how do I access something on the hard drive from terminal once I've booted to cd? – Erik Jun 28 '10 at 16:05
    
Okay - have it now. I just typed "sudo gedit" (no file) once I booted from CD and then navigated within the GUI program to the file on the hard drive. Thank you. – Erik Jun 28 '10 at 16:13
    
You welcome. I love it when me answer works. Yeah! – D'Arvit Jun 28 '10 at 16:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .