LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-20-2011, 09:42 PM   #1
kingschild
LQ Newbie
 
Registered: May 2010
Posts: 7

Rep: Reputation: 0
Smile Deleted wrong files in Jaunty. Need to repair in terminal (PLEASE HELP)


Hi ALL!
I am a newbie to Jaunty, so please forgive my descrip. terminology.
I need help please.
I am experiencing a great amount of grief with my Jaunty install.
I can no longer get a login screen in Jaunty. When I try to boot normally for this install I get an unclean shutdown screen & it goes into the "checking drive" mode. I uninstalled some applications such as has to do with touchpad, remote desktop, xorg-driver-fglrx etc. I reinstalled xorg-driver-fglrx, which I later found out that I do not need. I have an AMD64 HP system with ATI graphics onboard.

I need to find out how to load graphic user interface in Jaunty. Some of the necessary files have been completely removed by me & I need to reload the repositories and update my current install.

The partition is encrypted but I have been able to login with the username & password for THIS encrypted install using the "repair broken system" part of the GRUB screen.

How do I go into the terminal and load repositories, and maybe the kernel so I can do an update/upgrade? I do not know if upgrade is part of what I need to do........
I wanna keep my Jaunty install so I can access 50G of data that is on this install. I have made no backup of this data!!!

I am able to login to my install using my username & password after I get to the
"#" prompt, (option "fix broken system" in GRUB) so I know login can be done under username of install. I just need to know what to TYPE into the terminal to restore the necessary files in the right place to make it run. (Is it called terminal at that point?)

Can someone please help me?
Thank you,
kingschild
 
Old 05-20-2011, 09:58 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,343
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
You could try "sudo apt-get [packagename] for the missing packages.

First, I would suggest booting to a Live CD, such as Knoppix, and taking a look at the file /etc/apt/sources.list to make sure that it is present and populated. Without a valid sources.list, apt will not work. You could also look around at other configuration files and stuff. You would have to unlock the encryption first--that's something I have no experience with from a Live CD.

There's more on apt here. It would probably be a good idea to read the entire article before you try using it, given how damaged your system seems to be.

You might also be able to back up crucial data files using Knoppix. If so, it might be better just the back them up, say to a thumb drive or two or three, and install anew.
 
Old 05-20-2011, 10:09 PM   #3
Hevithan
Member
 
Registered: Apr 2011
Location: Washington State
Distribution: Zorin5-(Ubuntu 11.04) // Backtrack 5-(Ubuntu 10.04) // Dreamlinux 3.5-(Debian)
Posts: 275
Blog Entries: 5

Rep: Reputation: 40
Quote:
Originally Posted by kingschild View Post
Hi ALL!
I am a newbie to Jaunty, so please forgive my descrip. terminology.
I need help please.
I am experiencing a great amount of grief with my Jaunty install.
I can no longer get a login screen in Jaunty. When I try to boot normally for this install I get an unclean shutdown screen & it goes into the "checking drive" mode. I uninstalled some applications such as has to do with touchpad, remote desktop, xorg-driver-fglrx etc. I reinstalled xorg-driver-fglrx, which I later found out that I do not need. I have an AMD64 HP system with ATI graphics onboard.

I need to find out how to load graphic user interface in Jaunty. Some of the necessary files have been completely removed by me & I need to reload the repositories and update my current install.

The partition is encrypted but I have been able to login with the username & password for THIS encrypted install using the "repair broken system" part of the GRUB screen.

How do I go into the terminal and load repositories, and maybe the kernel so I can do an update/upgrade? I do not know if upgrade is part of what I need to do........
I wanna keep my Jaunty install so I can access 50G of data that is on this install. I have made no backup of this data!!!

I am able to login to my install using my username & password after I get to the
"#" prompt, (option "fix broken system" in GRUB) so I know login can be done under username of install. I just need to know what to TYPE into the terminal to restore the necessary files in the right place to make it run. (Is it called terminal at that point?)

Can someone please help me?
Thank you,
kingschild

I don't know about you ... But while mine is booting if I hold ALT and press F12 it brings a terminal where I can enter commands ... Maybe give that a shot? if you know the paths of everything and the commands you need you should be able to get in there and fix it.

Xorg is related to these:
Code:
lib32gcc1 (>= 1:4.0.2) [amd64]
GCC support library (32 bit Version)
libc6 (>= 2.3.4-1)
GNU C Library: Shared libraries and Timezone data	
also a virtual package provided by libc6-udeb
libc6-i386 (>= 2.3.4-1) [amd64]
GNU C Library: 32bit Shared libraries for amd64
libexpat1 (>= 1.95.8) [i386]
XML parsing C library - runtime library	
also a virtual package provided by libexpat1-udeb
libfontconfig1 (>= 2.3.0) [i386]
generic font configuration library (shared library)	
also a virtual package provided by fontconfig-udeb
libfreetype6 (>= 2.1.10-1) [i386]
FreeType 2 font engine, shared library files	
also a virtual package provided by libfreetype6-udeb
libgcc1 (>= 1:4.0.2)
GCC support library
libgl1-mesa
A free implementation of the OpenGL API -- GLX runtime
or libgl1
virtual package provided by libgl1-mesa, libgl1-mesa-glide3, libgl1-mesa-swrast
libice6 [i386]
X11 Inter-Client Exchange library
libsm6 [i386]
X11 Session Management library
libstdc++5 (>= 1:3.3.4-1)
The GNU Standard C++ Library v3
libx11-6
X11 client-side library
libxcursor1 (>> 1.1.2) [i386]
X cursor management library
libxext6
X11 miscellaneous extension library
libxft2 (>> 2.1.1) [i386]
FreeType-based font drawing library for X
libxinerama1 [i386]
X11 Xinerama extension library
libxmu6 [i386]
X11 miscellaneous utility library
libxrandr2
X11 RandR extension library
libxrender1
X Rendering Extension client library
libxt6 [i386]
X11 toolkit intrinsics library
libxxf86vm1 [i386]
X11 XFree86 video mode extension library
xserver-xorg-core (>= 1:0.99.0-1)
X.Org X server -- core server
Seems kinda important maybe it should have stayed ...

I'm not sure what commands you want to enter in the terminal ... But you may just want to dig through everything you can find and see if you can find anything out of place ... Of course that's a bit like looking for the soap in a tub the size of texas ... It may take a minute ... Hopefully someone with more experiance can come help you out.

Sounds like a really s***ty situation, and I sincerely wish you the best of luck in getting it sorted out ... In the future you may consider a bi-weekly backup or something.
 
Old 05-21-2011, 09:46 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Jaunty is not supported any more, you shouldn't use it.

Get a newer version of Ubuntu (or even a different distro, if you like).
 
1 members found this post helpful.
Old 05-22-2011, 07:14 PM   #5
kingschild
LQ Newbie
 
Registered: May 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Hi again!
I have tried to run the sudo apt-get install for gdm, sources.list, update & upgrade to no avail.
I have burned a Knoppix disk & was able to get the corrupted sda5 mounted.

When I boot from the GRUB, it goes through a disk check and gives me a prompt.

I am also running a dual-boot with WindowsXP.....forgot to say that in prev. post.

I have tried to install another instance of Jaunty, but when I tried to resize the sda5 (Jaunty) partition,
the install informed me that there are disk errors that need to be fixed. It would go no further.

I have tried to get the encryption passphrase (which I did not write down) by using
"sudo ecryptfs-unwrap-passphrase /home/username/.ecryptfs/wrapped-passphrase" command from the prompt after login with my username & password.

As I said, I was able to mount & see the directories in the encrypted "home" directory......but not the files.

I might be using a version of Knoppix that is not quite suitable for this operation. Any suggest for Knop Version?

At this point, I would like to be able to just get the data from the home directory & reformat the partition, then do an install of the latest distro of ubuntu.

I have also gotten a lot of multiply-claimed blocks. I was given a choice of cloning the blocks & I said yes to each time it asked. After an hour or so, I just hit the power strip & rebooted.

How can I copy all 50 GIG of files to a place where I can put them on another drive.
I really wanna fix the disk errors too.
Can I do this using Knoppix and a USB external hard-drive?

Thank you all,
kingschild
 
Old 05-22-2011, 07:16 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
@kingschild

Did you miss this post:

http://www.linuxquestions.org/questi...3/#post4362849

?

EDIT: sorry, I didn't read your last post thoroughly enough.

Last edited by MTK358; 05-24-2011 at 04:31 PM.
 
Old 05-24-2011, 04:30 PM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by kingschild View Post
I would like to be able to just get the data from the home directory & reformat the partition, then do an install of the latest distro of ubuntu.
Does the command line interface work in your Jaunty installation? If so, it can be used to move your files to another storage device.

Also, where are you files stored, and what do kind of device do you plan to copy them to?

Last edited by MTK358; 05-24-2011 at 04:32 PM.
 
Old 05-25-2011, 01:06 AM   #8
kingschild
LQ Newbie
 
Registered: May 2010
Posts: 7

Original Poster
Rep: Reputation: 0
I have already installed Maverick Meerkat 10.10 on another drive that I got by making another partition in sda5.....(the drive that all of my data resides on). I have not put any files on the sad5 drive & am not doing stuff that will write over the files....I hope.
I will try to install Jaunty on that (/home) partition again....maybe just install base system. I don't know if I will write over the files or not. I would miss those file that I might potentially lose. I will hold off for now.
Thanks for pondering my problem.

Peace,
kingschild
 
Old 05-25-2011, 09:26 AM   #9
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Basically, what I wanted to say is that if you can get to the command line in Jaunty, you can do something like this (these commands assume that you are logged in to the accuont who's home directory you want to back up, not root):

Code:
sudo mount /dev/<your backup drive's partition> /mnt
sudo cp -R ~/* ~/.* /mnt
sudo umount /mnt
(I separately added .* to get the hidden files (usually used for config), since just "*" ignores them.)
 
Old 05-28-2011, 06:54 PM   #10
kingschild
LQ Newbie
 
Registered: May 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Smile Can I undelete moved files from external USB mounted harddrive?

Hello,
thank you all for the input.
Not sure if I need to create a new thread for this. I cannot seem to find the button for creating a new thread...(DUH).
I have given up & installed Lucid on the drive originally the subject of this thread.
I have installed another distro of ubuntu on my HD.
I had moved all of my documents and other important stuff to
my 500GB hard-drive. The home directory was encrypted. I used photorec to try & recover all, but I ran out of HD space. When I examined the files it recovered, they were just unusable files....so I installed LUCID on that 500GB drive. I said "screw it! (screw me?)"

Can I recover the files MOVED from my orig. 200GB drive (from 200GB drive?).
I have it connected to my PC using a USB cable adapter. I can see the DIR "heartcry" that files were formerly in.
Is this possible to recover files moved from this 200GB drive? How do I do this? I am thinking of burning UBU rescue remix in 10.04 to get (maybe) the latest recovery & disc tools.

I have not lost hope, but I am not wanting to do anything permanently destructive.
Any Ideas?
Thank you for help already offered.

kingschild
Any ideas how I can discriminate & just get it to recover the file-types I want, as I do not think I have many ".txt" files that I need.
There were alot of text file that got recover from the encrypted dirive, but not a one that I wanted.
 
  


Reply


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
[SOLVED] RAID, deleted LUN: Repair File System problem on RHEL 5.1 AchyuthaRao Red Hat 4 07-10-2010 05:57 PM
how to upgrade from hardy to jaunty using terminal commands raphtor Linux - Newbie 6 06-07-2009 11:03 AM
Deleted the wrong folders Thanotos Linux - Newbie 8 11-07-2005 08:30 AM
Deleted the wrong folders Thanotos Slackware 3 11-02-2005 10:48 AM
Up %$## creek, deleted wrong files. Passive Linux - Software 2 07-21-2004 03:54 PM


All times are GMT -5. The time now is 09:30 PM.

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