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.

link|improve this question

80% accept rate
feedback

1 Answer

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

link|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
feedback

Your Answer

 
or
required, but never shown

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