Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So, I deleted some program files and after restarting laptop it can not boot. I believe that only way is to reinstal program? But how can I get my data out of lap if it not booting???
P.S. I use ubuntu 10.04.4
You may just have lost the grub setup; try using a LiveCD (or USB installation) to boot from, then:
Mount the Ubuntu partition: sudo mount /dev/sdaX /mnt
Run grub-install: sudo grub-install –root-directory=/mnt/ /dev/sda
(double hyphen before the word "root")
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444
Rep:
While you are in the live session plug your external hard drive and copy all the files you want to save from the computer to your external. Or if you are in a network transfer the files to another computer until you fix the problem.
You may just have lost the grub setup; try using a LiveCD (or USB installation) to boot from, then:
Mount the Ubuntu partition: sudo mount /dev/sdaX /mnt
Run grub-install: sudo grub-install –root-directory=/mnt/ /dev/sda
(double hyphen before the word "root")
Reboot, then run sudo update-grub
Thank`s: but Terminal shows this: special device /dev/sdaX does not exsist
So what now?
While you are in the live session plug your external hard drive and copy all the files you want to save from the computer to your external. Or if you are in a network transfer the files to another computer until you fix the problem.
good luck to you!
Thank`s for advice. Problem is that I cant move or copy folders and files because they are lock. I have no permission to open them. How can I fix that?
Boot your Linux Live CD or flash drive, open a terminal and type: sudo fdisk -l(lower case Letter L in the command) to see if sda shows up. If it is just a permissions issue, you may need to prefix your cp command with sudo.
If you deleted some "program files" and now the system won't boot, you deleted more than programs. Programs should be removed via your add-remove software applet or apt/synaptic, not by just deleting things. Removing software would not make the system fail to boot like that.
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444
Rep:
Actually your GRUB will be installed in the partition that host the boot files you can identify it because it has the * on it. in the above picture is in /dev/sda1
and to copy out your files I think even if they show a lock on it you still can make copies to an external hard drive. you could also use the command cp and copy them out using the command line like
Code:
sudo cp /home/your_user /dev/sdaX
do see what that X should be you can run the command mount in terminal and it will list all devices attached to your computer then you can tell how the external is identified
A little off-topic:
The above example is not telling the whole story regarding Grub. Grub is not installed in /dev/sda1; it's installed in the MBR of /dev/sda
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.