Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.