Ubuntu :: Disk Formatted In Error - Boot Sector Repair
Nov 20, 2010
I was using the disk utility on Ubuntu 10.04 and wanted to make by 500GB external NTFS formatted USB drive into 1 x 50GB FAT32 and 1 x 450GB NTFS. I clicked the option that said format or create a partition and it basically wiped the whole thing in a split second leaving me with 500GB of seemingly empty space. Obviously the files are still there but I cannot boot the drive to view anything. I have downloaded testdisk, but don't know how to use it, but I am sure there is a relatively simple solution here. I am currently repairing the boot sector of the drive as Test Disk showed the drive as "no type" i.e. not FAT/NTFS/ext4 etc., but shows the correct amount of used space though, but I cannot view anything err go, I cannot use the undelete command as yet.
The boot sector somehow got messed up on a friends computer while updating. I used to know how to do it with the old version, but now that they've updated it and changed everything , how do you repair the boot sector from a live-CD with Grub 2?
2 months ago, I built a dedicated backup server using 4 2TB SATA drives for software RAID5 (6TB total). A few days ago, smartd sent out mail saying it found an unreadable sector on one of the drives. I ran selftest using smartctl and the error persisted. So far, neither software RAID nor ext4fs running on top of the RAID volume have reported errors.
MOST OPTIMISTIC: It is normal to have a few bad sectors among billions. Software RAID takes care of alternatives. Keep using the system until RAID spits a more serious warning in the future.
MOST PESSIMISTIC: It is a really bad sign to lead a disaster. No good disk drive should have bad sectors especially when it is only 2 months old. The error is simply not detected by software RAID and ext4. Replace the drive immediately and return the bad drive to the supplier.
I have three disk in my system. One SATA (250GB) and two SCSI (73GB) disks. The Two SCSI disks were installed originally and RHEL3 is installed on it. The SATA disk is installed a few years later with RHEL5. As you can see below, the boot sector is still on one of the SCSI disks (sdb1).
I recently installed 11.3 on an external drive. After adding some software in yast (searched Kernel and checked every option), I was prompted to reboot but the no boot sector found error came up. Tried reinstalling with the same result. Grub is boot loader
I recently installed meego on an asus eee pc, neat l ittle os. i had originally had grub set up booting into ubuntu netbook remix. win xp and the system restore partition. when i installed meego i was allowed to select what i wanted as far as boot options in the new boot loader (extlinux). windows and meego boot just fine but when i try to get into my already configured and homey install of ubuntu nbr it gives an error of
"boot sector signature not found (unbootable disk/partition)"
when i try to boot the 11.04 64-bit alternate.iso i get the following message, after it says that isolinux blabla is loaded: EDD: Error 8000 reading sector 2855 and when i remove the cd it says: gfx.c32: not a COM32R imageand then there is a grub-shell.
I have a 160GB harddrive which I installed a F12, would like to upgrade to a bigger drive, but I hate to have to re-install everything.
Recommend a good disk copy utility? The utility should be able to not only copy files, but boot sector and everything. So I just need to make a copy, change my BIOS to boot from the new drive and run everything as before.
I am trying to install Ubuntu to an external usb hard drive (WD Elements SE). I am also choosing to install the grub bootloader to this disk (/dev/sdb) because I do not want anything modified on the internal drive. The installation appears to go okay, but when I try to boot to the usb drive, I get the error, "no boot sector on usb device" and it immediately falls back to my interal drive. I have tried this installation with both 10.10 (amd64) and 11.04 (amd64). How can I fix this?
How can i detect if my disk is formatted as gpt or mbr?I suppose in principle this could be done by somehow reading a few bytes (no more than say 10K) from the beginning and possibly the end of the disk? But there surely is a program around that does exactly this, maybe some variation of or argument to fdisk or grub?
I have a small project that I am trying to do for my job to help us out. Basically, I need to make a tool that lets me view all the sectors of a hard drive in hexadecimal format to make sure they are all zero after a low-level format. I need it to be very minimal, and display the data in a way that I can scroll down and skim through the sectors. Doesn't have to be pretty, just functional.I need it to do more things down the road, but this is the first hurdle I need to overcome. I would like to create a GUI interface so it looks nice, but first I am only concerned with the sector viewing function. I am not entirely sure where I should start.
I see there is a tool called dd I could use to read the hard drive and I am wondering if I need to use that, or if I can just open /dev/hda as a file and be able to view all the sectors that way.Also, just to clarify, I am wanting to write this tool for linux,specifically DSL. I need it to be a very small distribution that can be loaded quickly from a usb drive, cd, or over the network with PXE.
In the past I have been able to succesfully install ubuntu on several external usb drives with up to 500gb in size.Now I am trying to install a copy of ubuntu 10.10 on an external usb iomega 1tb eGo drive but I am having major issues.The installer reports the total disk size as only 124 gb, instead of the 998gb that gParted reports for the same disk. Proceeding with "use the full disk" installs ok, but it doesn't boot.Grub2 reports that it cannot find the kernel.After some desperate attempts to repartition and after some googling I think that the issue may be with the sector size, which fdisk -l reports as 4096kb (all my other drivers report 512kb) and I have the impression that linux is not ready for it (or I lack the knowledge, which seems more likely).I have also tried to install fedora 14. This distribution reports the correct disk size, installs properly, but again, it cannot boot (Fedora uses grub, not grub2), with a very similar message to the grub2 installer.Because of the way I work, I need my external usb drive to be able to boot linux. And I find it difficult to believe that linux doesn't handle 4096kb sector disks, so here I am asking for help . Please note I am not a linux expert.
I formatted a 500GB with ext4 format, and placed in a usb box, it showed up, but could not write, copy past etc to it, the same disk was formatted in NTFS, and FAT32 showed up and could do all the above actions, given that ext4/ext4/ext2 are specifically made for Linux, then why on earth they don't get mounted automatically and work normally from usb box and ports?
I've been at this for a few hours now. Searched the forums and while I found many similar topics, none were quite the same. The most obvious difference to me is this line: Jun 12 15:43:05 G1093 kernel: sdc: unknown partition table
I have a (slightly complicated) dual/multi boot system.
I keep getting boot errors (when choosing ubuntu from the grub2 menu)
Code: Serious errors were found while checking the disk drive for /boot
If I switch off and restart, ubuntu will then start without issue.
My setup is like this ....3 disks, one with 10.10 clean install - so Grub2, separate partitions for /, /boot and /home, one with windows 7, one with windows XP and 10.04 wubi (this is my old disk which I will trash once I'm happy with my upgrade to 10.10 & 7 on separate disks.
I installed 7 and 10.10 with ONLY their disks installed. After both were working, I added all disks and rejigged the grub2 menu (using update-grub and StartUp-Manager).
This problem only seems to occur if my previous boot was not 10.10 ( I will investigate this further). It's as if something (grub2 ?, the bios ?) is remembering part of the previous boot and not using the grub2 menu completely.
I have just formatted an external USB disk with a JFS filesystem. The partition shows up in 'Computer', and it mounts, but if I try and copy and files onto it, it will not do it. Clearly, Nautilus is mounting it read-only. How do I get this to behave like my USB Flash drive, where I plug it in, and its automatically mounted read/write?
I have been upgrading Ubuntu as its new distributions are released every six months regularly since quite some time now. Is there a way I can find out which was the original installation version that I first installed after I formatted my disk. I mean as far as I remember I have been using this state of my Ubuntu since 8.04 and have been upgrading since then, but I am not sure.
I accidentally formatted a 2TB drive of mine (big oops), but have recovered 2 of the 3 partitions using testdisk. My third partition is a LUKS encrypted partition. Testdisk managed to recover a piece of it, but it won't mount as most of it is unallocated. The partition originally occupied all space from sector 2,930,272,065 to the end of the disk -- sector 3,907,024,064. That is about 473 GBs. Currently, the partition only uses space from sector 2,930,272,065 to 2,930,288,129, about 7.84 MB.
The rest of the space is unallocated. Now what I need to do, is to expand the partition so that it occupies all the space that it used to. How would I do this? I cannot resize the partition, cause it would try to recreate the filesystem AFAIK and I don't want that, as it will fry my data. My data is not terribly important, but I would rather have it then not. I attached a screenie of kpartitionmanager. The partition in question is /dev/sdb2.
I have the DVD installer of Fedora 10, i want to dual boot with windows vista. well i get up to the partitioning part of installation (in anconda) and it asks me how i want to partition it... i wanted to re size my partition and create the default format, so i keyd in 70GB and Okay. then it came up with an error, saying I had bad sector(s) The error told me to run chkdsk /f /r in windows, then i could run ntfsresize with -b, (in Linux) well i did all those steps, and shrunk /dev/sda1 to 70gb (/dev/sda2 is my recovery partition) i have a 140 gb hard drive, but can't find the unallocated space anywhere!
when i booted windows, it ran a chksdk, like it should, and in my computer it said that it had been shrunk (because the pie graph showed a capacity of around 70GB) When i go into windows disk management it says no unallocated space, just one big partition (and a 8gb recovery partition) this is the same with GParted on puppy linux, GParted on fedora 10 (live cd) says there is no drives I can mount or unmount and same error on partition logic... in EASUS partition manager i get told that there is no unallocated space, in the fedora installer there is only /dev/sda1 and /dev/sda2. Does anybody know.. how to install fedora on this partition, or get rid of the partition and repartition it another way. when i click on the option to remove all linux partitions and create default format, it errors and says it cannot make another primary partition, then says there is no room for /boot. and i can not proceed.
i finally decided to updgrade from Hardy Heron to Lucid Lynx. for this i made a backup of my old install, then i couldnt find my Lucid CD so i used a Karmic one to partition my old ext3 to ext4. There were some errors but after trying a few times it worked. Installed Karmic, rebooted (worked fine), downloaded all updates - (did NOT reboot to let updates take effect) and upgraded to Lucid.
Everything went fine so far. Now when i try to boot into Lucid the system hangs, i've also got a windowsXP partition on there so i tried booting that, first grub tells me Error 29: Disk write error then trying again windows seems to boot but it takes much longer than it should and seems to hang.
Then i tried Karmic and Lucid LiveCD (which i found in the meantime) none of the LiveCDs make it to boot after about 20 minutes. (previously they worked fine)looking at the errors it seems to be something about the harddrive. Why the harddrive would stop the LiveCD booting is a mystery to me but the same messages appear when i select Recovery from the Grub menu so i guess the problem is related.
I accidentally deleted the main default menu panel at top of desktop.Is there a way to recover it.where in the system would I find the various icons that are located in it.A list of the icons in each category?Or do I need to use the installation disk and repair / reinstall?
I'm running 9.10 off of a 4 GiB CF card. I keep running into space issues with updates, so I purchased an 8 GiB replacement card. I've cloned the 4 GiB card to a .IMG file using DD.I've then copied the 4 GiB image back to the 8 GiB card using the Ubuntu startup disk creator program. Once done, I'm able to properly boot off of the new 8 GiB clone.Unfortunately, the clone ends up with 3.67 GiB of unallocated space at the end *see attached). I tried deleting the "extended" partition that the swap is located at after booting from a Live CD and the system was unable to boot after this. I was thinking that I would delete the swap entirely and create a swap file after I merged the existing partitions, but I was unable to do this.
best way to do this (e.g. get one large 8 GiB partition with my old image on it)? I still have the original untouched 4 GiB card and also have an external CF drive if I need to redo the cloning. I've also used Clonezilla before, so perhaps there's a way to do this that allow me to grow the image as it's being cloned.
Is there any hope of getting a WD10EARS 4k-sector disk to work properly as a secondary under Etch? Just wondered if anyone had a fix before I RMA and return it as "Not suitable for purpose" WD say it should be OK with linux. But it ain't. It gives very poor perfromance, with a lot of hesitation. The issue is apparently one of sector boundaries, but the exact details are extremely complex.
I had a a problem booting last night when my laptop battery came loose and caused a crash during boot.It ceased loading a daemon and I turned it off with the power switch, then I received the boot error,then i checked the linuxdrives directory and it was corrupt,I then, out of ignorance, ran wubi from within windows XP and said unistall believing that it would reinstall and fix itself.Thus you can see my green behaviour.I have been searching the threads and have tried many things but have had no success, I will suffer a great loss if I lose that load of Ubuntu as I have allot of work stored there, and in my Thunderbird accounts.
I currently have XP installed on a NetBook (Samsung NC10), and would like to run Fedora on it. I'm currently looking at putting Fedora onto a flash memory card to test it works OK on the hardware, before installing it to the hard disk. The problem I've got is that the boot sector is occupied by WDE software (TrueCrypt). Will this pose a problem for dual-booting XP with Fedora, or will GRUB move the boot loader in the usual way?
upon adding the installed VL on the existing LILO.. (btw i have not installed its LILO on the installation setup) since i know that i will just add it to the "existing" LILO the error above arises upon doing the lilo run command.$adding Vector6.0 etc.FATAL : Boot sector of /dev/hdc13 doesn't have a boot signature.i have tagged the /dev/hdc13 bootable via CFDISK. but same problem arises..
I have a hard drive where one partition is used as part of a logical volume (LV) using LVM. The partition table is corrupted and prevents the partitions from showing as devices in /dev/. The corruption prevents the logical volume from coming on-line b/c LVM cannot find the part on the corrupted disk. I (am pretty sure) I know the block offsets and lengths for each partition on the disk but do not want to write to the disk in case I am wrong.
How do I go about recovering the logical volume in this scenario?