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.. |
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. |
Quote:
If so, please boot from a live-medium and post the complete output of Code:
fdisk -l |
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.. |
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/
|
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. |
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. |
Removing and cleaning the RAM will not magically restore an overwritten file-system.
|
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.
|
Quote:
|
Quote:
By the way this is the common solution of given error(no boot device found) if you dont believe,just google it. |
Quote:
And please, spell out your words. Quote:
|
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.
|
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. |
@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. |
All times are GMT -5. The time now is 01:13 AM. |