Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-16-2007, 12:03 PM   #1
Registered: Feb 2002
Location: Massachusetts
Distribution: Debian (Lenny)
Posts: 286

Rep: Reputation: 30
Question Using Live CD to repair a file

I edited "/etc/environment" and now I can't boot into Kubuntu or Console properly.

I've booted off the Live CD but how do I mount my hard drive so I can restore the file to the way it was (I know what needs to come out of the file).
Old 01-16-2007, 12:06 PM   #2
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
as root:
mkdir /mnt/temp
mount /dev/<harddisk_partition> /mnt/temp
vi /mnt/temp/etc/environment
where <harddisk_partition> is sda1,sda2,... (scsi and sata disk) or hda1,hda2,... (ide disk).
Old 01-16-2007, 12:32 PM   #3
Registered: Feb 2002
Location: Massachusetts
Distribution: Debian (Lenny)
Posts: 286

Original Poster
Rep: Reputation: 30
Thank you.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Repair File System Gujju Red Hat 6 08-01-2011 10:23 PM
How do I repair the File System Error ch.keller Linux - Software 5 07-04-2006 03:10 AM
file systrem repair aboulafia Linux - Newbie 3 07-04-2006 03:07 AM
Repair file system zillah Fedora - Installation 4 08-24-2005 02:00 PM
How can I repair a /etc/group file apeacez Linux - Software 0 09-16-2003 06:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration