LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-07-2013, 09:14 AM   #1
yashfire007
Member
 
Registered: Jan 2013
Distribution: CentOS, RHEL 6.4
Posts: 77

Rep: Reputation: Disabled
Angry Boot error: "No bootable device"



When used to run the fdisk -l cmd it is showing as the error
"/dev/sda has no valid partition". And meanwhile trying to edit any file which was created by showing the error: warning the file is read only file. So that i have rebooted the machine. It is not booting to any O.s Because i installed winxp and centO.S.(dual boot)
It is showing in the black screen
"No bootable device -- insert boot disk and press any key..
Please suggest otherwise i have to format the machine..
 
Old 02-07-2013, 10:09 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,147

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Do you have access to any Live CD or USB from which you can boot your system? If you can, you could use the tools on the Live CD to investigate your problem.

The "no valid partition" message is sometimes caused by a GUID partition not working with software (like fdisk) that don't support that partitioning scheme. The newer releases of fdisk will usually warn you, and show something.

The "No bootable device" message is a Windows boot error message, so your "dual boot" system was attempting to boot directly to XP, which won't work unless the XP is on the first partition of the drive. Your problem may be as simple as XP replacing the MBR of the drive with it's own (primitive) boot loader, which can't read non-windows partitions. If that's the case you could reinstall a modern boot loader from the Live boot system - after you get one, of course.
 
Old 02-07-2013, 11:18 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,364
Blog Entries: 2

Rep: Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981
Quote:
Originally Posted by PTrenholme View Post
The "No bootable device" message is a Windows boot error message, so your "dual boot" system was attempting to boot directly to XP, which won't work unless the XP is on the first partition of the drive. Your problem may be as simple as XP replacing the MBR of the drive with it's own (primitive) boot loader, which can't read non-windows partitions. If that's the case you could reinstall a modern boot loader from the Live boot system - after you get one, of course.
Actually, this message is a message directly from the BIOS, issued when it is not able to find a bootloader. So the first thing to test if your disk is shown in the BIOS.
If so, please boot from a live-medium and post the complete output of
Code:
fdisk -l
launched as root. If no valid partition table is found and no bootloader it seems that your MBR (and possibly more of the disk) has been overwritten. Have you done any system critical tasks before the error occured?
 
Old 02-07-2013, 10:22 PM   #4
yashfire007
Member
 
Registered: Jan 2013
Distribution: CentOS, RHEL 6.4
Posts: 77

Original Poster
Rep: Reputation: Disabled
Yes i tried to write zero sector in my usb.
Instead of giving #shred /dev/sdb , wrongly i gave #shred /dev/sda. But within two seconds i cancelled the process..
 
Old 02-07-2013, 10:32 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,225

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Assuming that XP was the first OS on the system and installed on /dev/sda, I believe the cmd would be fixmbr, but I think you'd need a MS rescue disk like this http://sathyasays.com/2008/10/29/how...ows-dual-boot/
 
Old 02-07-2013, 11:30 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,364
Blog Entries: 2

Rep: Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981
I am not quite sure how fast the shred command works, but if it goes up to the disks maximum speed 2 seconds is quite a lot.
Try Testdisk from a live medium to restore the partition table, after that you can restore the bootloader and should at least be able to boot your Linux system, assuming that Windows was installed on the first partition.

It may be possible, although unlikely, that you will be able to recover the OS on the first partition, but I doubt it. But you should be able to recover most of your data using Photorec.
 
1 members found this post helpful.
Old 02-08-2013, 06:01 AM   #7
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 267
Blog Entries: 2

Rep: Reputation: 48
Are you not able to boot any of operating system? Are you using 64 bit centOS? Please comment.
If you can't boot you can't go in recovery mode.
Are you getting same error always or you get following error too
Kernel panic - not syncing: VFS: Unable to mount root fs on unknow-block(0,0)
Try to boot centOS using live dvd and fix the partitions.
or if you do not have live dvd make bootable pendrive using "Universal Netboot Installer"
If you have done evrything and you are going to reinstall the OS please once try following solution.
Remove your RAM (If two, both), clean it with soft cloth and put it again.

Last edited by fortran; 02-08-2013 at 11:00 PM.
 
Old 02-08-2013, 06:03 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,364
Blog Entries: 2

Rep: Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981
Removing and cleaning the RAM will not magically restore an overwritten file-system.
 
1 members found this post helpful.
Old 02-08-2013, 07:04 AM   #9
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,453

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Please use a descriptive title for your thread excluding words like 'urgent' or 'help'. Using a proper title makes it easier for members to help you. This thread has been reported for title modification. Please do not add replies that address the thread title.
 
Old 02-08-2013, 09:13 AM   #10
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,134

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by TobiSGD View Post
Removing and cleaning the RAM will not magically restore an overwritten file-system.
Agreed...that's kind of like saying "If your car won't start, try cleaning the windshield"....
 
Old 02-08-2013, 09:31 AM   #11
bloodstreetboy
Member
 
Registered: May 2012
Posts: 186
Blog Entries: 3

Rep: Reputation: 37
Quote:
Originally Posted by TB0ne View Post
Agreed...that's kind of like saying "If your car won't start, try cleaning the windshield"....
That is d difference between car & software, you can never know which technique can it fix?
By the way this is the common solution of given error(no boot device found) if you dont believe,just google it.
 
Old 02-08-2013, 04:29 PM   #12
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,134

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by bloodstreetboy View Post
That is d difference between car & software, you can never know which technique can it fix?
You may not know EXACTLY what will fix software, especially when you don't understand it, but there are lots of things that you DO know won't work (or won't make a difference at all). Cleaning the RAM pins is one of them. How, exactly, would removing a piece of lint on a RAM chip fix a corrupted MBR? Or make a hard drive work? The only thing it MAY affect is a memory error...and that usually points to BAD memory, rather than a dirty pin.
And please, spell out your words.
Quote:
By the way this is the common solution of given error(no boot device found) if you dont believe,just google it.
I don't believe it, and I did Google it...and not surprisingly, it didn't turn up anything. Why don't you post a few links that have some good information about it???
 
Old 02-09-2013, 07:41 AM   #13
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,364
Blog Entries: 2

Rep: Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981
The OP has accidentally overwritten parts of his harddisk. Cleaning, removing or even exchanging the RAM will not restore those overwritten parts, simple as that. No Google needed for that.
 
1 members found this post helpful.
Old 02-09-2013, 02:09 PM   #14
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,147

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Yes, the OP explained how the MBR and partition table was overwritten.

If the system can be booted from some live media, then the rescue option of the parted command might be able to help. It depends on how much of the hard drive was shredded before the error was noticed.

Since the command used (shred /dev/sda) defaulted to three over-write passes of random data, and it was aborted after two seconds, it's likely that most of the data on the drive is still intact but, clearly, not all.

Perhaps the more robust recovery would be to follow the advice of the moderator in post #6, above.
 
1 members found this post helpful.
Old 02-10-2013, 02:14 AM   #15
bloodstreetboy
Member
 
Registered: May 2012
Posts: 186
Blog Entries: 3

Rep: Reputation: 37
@TB0ne
Some one is sharing these types of solutions here and other is proving correct it. It is ok for you, These posts don't bother you. you don't say anything here.
http://www.linuxquestions.org/questi...-a-4175449295/
but if some one gives a solution to remove its hardware & put it again, it is very dangerous solution for you.
 
  


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
Ubunutu 11.10 grub2 can boot but error hd0 no disk from bootable usb config help craig6398 Linux - Newbie 1 02-06-2012 05:10 AM
Bootable USB Thumb Drive fails with "ERROR: Failed to mount real root device" bsquared Linux - General 7 08-08-2011 11:16 AM
Acer Aspire One does not boot. Says "No bootable device" gogoskiracer Linux - Laptop and Netbook 14 10-30-2009 07:19 PM
boot pc from a bootable-iso without a cd or usb-device psytroll Linux - General 1 02-23-2006 01:27 PM
bootable cd won't boot - bios error? scouser_steve Linux - General 4 06-27-2005 08:37 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration