LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Deleted wrong files in Jaunty. Need to repair in terminal (PLEASE HELP) (https://www.linuxquestions.org/questions/linux-newbie-8/deleted-wrong-files-in-jaunty-need-to-repair-in-terminal-please-help-881883/)

kingschild 05-20-2011 08:42 PM

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

frankbell 05-20-2011 08:58 PM

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.

Hevithan 05-20-2011 09:09 PM

Quote:

Originally Posted by kingschild (Post 4362418)
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.

MTK358 05-21-2011 08:46 AM

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).

kingschild 05-22-2011 06:14 PM

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

MTK358 05-22-2011 06:16 PM

@kingschild

Did you miss this post:

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

?

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

MTK358 05-24-2011 03:30 PM

Quote:

Originally Posted by kingschild (Post 4364005)
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?

kingschild 05-25-2011 12:06 AM

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

MTK358 05-25-2011 08:26 AM

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.)

kingschild 05-28-2011 05:54 PM

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).:scratch::banghead:
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.


All times are GMT -5. The time now is 03:00 PM.