LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-02-2012, 01:10 PM   #1
guntaro
LQ Newbie
 
Registered: Sep 2012
Location: Riga
Distribution: ubuntu
Posts: 25

Rep: Reputation: Disabled
Help! I can`t boot my laptop


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

Last edited by guntaro; 09-02-2012 at 01:12 PM.
 
Old 09-02-2012, 01:27 PM   #2
albinard
Member
 
Registered: Jan 2011
Location: New Mexico
Distribution: Xubuntu Core
Posts: 183

Rep: Reputation: 58
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
 
1 members found this post helpful.
Old 09-02-2012, 01:44 PM   #3
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
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!
 
Old 09-03-2012, 06:02 AM   #4
guntaro
LQ Newbie
 
Registered: Sep 2012
Location: Riga
Distribution: ubuntu
Posts: 25

Original Poster
Rep: Reputation: Disabled
Hi!

Quote:
Originally Posted by albinard View Post
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?
 
Old 09-03-2012, 06:06 AM   #5
guntaro
LQ Newbie
 
Registered: Sep 2012
Location: Riga
Distribution: ubuntu
Posts: 25

Original Poster
Rep: Reputation: Disabled
Hi, thank`s

Quote:
Originally Posted by TroN-0074 View Post
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?
 
Old 09-03-2012, 09:50 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
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.
 
1 members found this post helpful.
Old 09-03-2012, 11:37 AM   #7
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: Mint
Posts: 410

Rep: Reputation: 82
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.
 
Old 09-03-2012, 12:50 PM   #8
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Thank`s: but Terminal shows this: special device /dev/sdaX does not exsist
So what now?
You were supposed to replace the X by a number; it depends on your partitioning where it is. Follow yancek's advice; your result will be like below

Code:
wim@i3-2120:~$ sudo fdisk -l
[sudo] password for wim: 

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xd2efff31

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   511999999   255896576    7  HPFS/NTFS/exFAT
/dev/sda3       512000000   528001023     8000512   82  Linux swap / Solaris
/dev/sda4       528003070  1953523711   712760321    5  Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5       528003072   820969471   146483200   83  Linux
/dev/sda6       820971520  1953523711   566276096   83  Linux
In this case it's a dual boot system, but you're looking for the lines that end with Linux.
 
Old 09-03-2012, 01:45 PM   #9
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
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

Good luck to you
 
1 members found this post helpful.
Old 09-03-2012, 09:19 PM   #10
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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
 
Old 09-03-2012, 09:36 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
So, I deleted some program files and after restarting laptop it can not boot.
I am very surprised that NO ONE has asked
" Just WHAT did you delete !!!! "

What is " some program files" ?????
Please DEFINE THAT!

if you removed the operating system then it will NEVER boot

with out knowing JUST WHAT YOU DID we can NOT help .
 
Old 09-04-2012, 06:20 AM   #12
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
I am very surprised that NO ONE has asked
" Just WHAT did you delete !!!! "
Because the question in the opening post was about retrieving the data Not about restoring the system.
 
Old 09-04-2012, 07:01 AM   #13
guntaro
LQ Newbie
 
Registered: Sep 2012
Location: Riga
Distribution: ubuntu
Posts: 25

Original Poster
Rep: Reputation: Disabled
Hi! :)

Quote:
Originally Posted by Wim Sturkenboom View Post
Because the question in the opening post was about retrieving the data Not about restoring the system.
Thank`s to everybody for help and good advices! So, I sucesfully boot engine and get all documents by Ubuntu Live CD!
So, thank`k once more

 
Old 09-04-2012, 10:06 AM   #14
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Great!
Please mark your thread as solved using the thread tools just above the first post on this page.
 
  


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
to install linux to Laptop which has rom boot ,cdrom and usb boot vinnie_vinodh Linux - Laptop and Netbook 12 06-26-2009 01:27 PM
No CD boot - how to boot from another networked laptop? Charles Petrie Linux - Laptop and Netbook 1 08-05-2008 12:13 AM
Installing goblinX in triple boot laptop... no boot in the other linux OS amalgam Linux - Newbie 2 02-14-2008 02:08 PM
Boot from USB external drive, from laptop without USB boot support. darirod Linux - Newbie 2 12-19-2006 11:00 AM
laptop dual boot davidsrsb Slackware 6 04-19-2004 09:51 AM


All times are GMT -5. The time now is 06:40 AM.

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