General :: Repair Corrupt Partition On LVM?

May 7, 2010

A drive in a RAID array failed and as a result one of the partitions held on the LVM has corrupted. The result of LVS is below.

Code:
[root@brassxen3 ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
MGT VG_XenStorage-511bee02-d169-b418-6a9e-a88b7e3ce939 -wi--- 4.00M


[Code]....

This partition belongs to a virtual machine, the partition is not visible when booting this VM using a live CD or attaching it to another VM. When booting anything with this partition attached it takes hours to boot.

View 3 Replies


ADVERTISEMENT

Ubuntu :: How To Repair Corrupt Partition Table

May 21, 2011

A few months ago I tried to shrink an NTFS partition using gparted and use the free space to install Haiku. However, gparted crashed in the middle of the resize, leading to a corrupt partition table. I tried to solve the problem myself, using testdisk to detect the partitions. However, the fix is not perfect, and it left me with a partition table that goes "outside" of the disk (i.e. the partition table has allocated more sectors than there actually are on the disk to the last partition).

Recently I need to reinstall Ubuntu Natty, but because the partition table is corrupt, the installer on the Ubuntu Natty Live CD (as well as gparted) see the disk as entirely unpartitioned. What is weird is that the Disk Utility (aka palimpsest), fdisk on my current Natty distro (upgraded from Maverick, which I want to replace with a fresh install), and GRUB 2 see the partitions fine (with some errors, such as listing a few trillion TBs of available space, a result of the corrupt partition table).

I am using an Asus U30Jc laptop with a single 500GB HDD. My current setup is supposed to be like this:
/dev/sda1: A hidden FAT32 recovery partition generated by Windows 7, listed as containing Windows Vista by GRUB 2
/dev/sda2: NTFS partition containing Windows 7 (labeled "OS")
/dev/sda3: Extended partition containing "DATA", Ubuntu, swap, and the erroneous trillions of TBs of space
/dev/sda5: NTFS partition containing user data (labeled "DATA")
/dev/sda6: Ext4 partition containing Ubuntu
/dev/sda7: swap partition
(*Though I'm not supposed to have it, and it isn't listed in /dev while running the Live CD, /dev/sda4 exists as a zero-length partition in the output from sfdisk; not sure why)

Currently I've tried the following:
- testdisk, using "deeper search" and writing the partition table back to disk; produced a (usable) partition table that was bad.
- [URL], fsck didn't do much at all, except raise various errors on all partitions except the one containing Natty.
- [URL], tried to substitute the numbers caljohnsmith gave to thegreat with the corresponding values from my run of fdisk -lu, but because caljohnsmith didn't explain where the values came from and what they meant (no offense to him), I was lost; after the last step (setting the end sector on the extended partition to the last cylinder boundary (which I didn't really understand; tell me if you need details on what I did)), gparted went from showing the trillions of TBs of free space as outside all partitions to showing them as inside the extended partition; this also somehow caused the partitions to overlap.(The error parted raises changed from "Error: Can't have a partition outside the disk!" to "Error: Can't have overlapping partitions.

Running fdisk from the Natty Live CD gives
Code:
ubuntu@ubuntu:~$ sudo fdisk -lu
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x74ef0aca

Device Boot Start End Blocks Id System
/dev/sda1 2048 34812854 17405403+ 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 34812855 279000854 122094000 7 HPFS/NTFS
/dev/sda3 279000855 976768064 348883605 f W95 Ext'd (LBA)
/dev/sda5 279000918 875204030 298101556+ 7 HPFS/NTFS
/dev/sda6 875204608 972859391 48827392 83 Linux
/dev/sda7 972861440 976771055 1954808 82 Linux swap / Solaris
Running sfdisk -l from the Natty Live CD gives

Code:
ubuntu@ubuntu:~$ sudo sfdisk -l /dev/sda
Disk /dev/sda: 60801 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 0+ 2166 2167- 17405403+ 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 2167 17366 15200 122094000 7 HPFS/NTFS
/dev/sda3 17367 60800 43434 348883605 f W95 Ext'd (LBA)
/dev/sda4 0 - 0 0 0 Empty
/dev/sda5 17367+ 54478- 37112- 298101556+ 7 HPFS/NTFS
/dev/sda6 54478+ 60557- 6079- 48827392 83 Linux
/dev/sda7 60557+ 60801- 244- 1954808 82 Linux swap / Solaris

Running parted from the Natty Live CD gives
Code:
ubuntu@ubuntu:~$ sudo parted /dev/sda print
Error: Can't have overlapping partitions.

View 4 Replies View Related

OpenSUSE Install :: EXT4 Corrupt, Repair Fails Too?

Feb 23, 2010

both root and home partition have suddenly become corrupt, and the repair tool from the installation disk just loops (Do you want to repair? Yes! Do you want to repair? Yes! Do you...).

Code:
[ 54.209685] ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0
[ 54.209758] ata1.00: irq_stat 0x40000008

[code]....

View 9 Replies View Related

OpenSUSE Install :: Invalid Partition Table / Error Message Corrupt Partition?

May 20, 2010

I was installing opensuse 11.2 in parallel with windows xp.but during installation suddenly power has gone and after that opensuse is giving me the error message corrupt partition.i am also not able to login in xp. so I decide to reinstall windows, I got the error saying "invalid partition table" after the first restart of windows xp installation.

I tried to use windows system recovery console and committing fixmbr and fixboot commands, but didn't work.
i have 2 window partition(1 for windows and 1 for data).i do,nt want to format 2,nd partition.

How can I installed windows?My plan was first to install windows xp, then opensuse again.

View 2 Replies View Related

General :: USB NTFS Disk Suddenly Won't Mount - Partition Gone / Repair It And MBR Without Losing Data?

Sep 12, 2009

Just ran into an uncomfortable problem. I usually never save any documents on my machine, and keep all my stuff on an external USB hard disk. (an 80GB TrekStor DS microdisk q.u)
Well yesterday this disk just would not mount.
Read through related posts but nothing seemed to work. Even tried it on a Windows machine.

Tried TestDisk utility. Found nothing wrong with the drive, but still could not repair the MBR.log code...

Palimpsest Utility recognized the drive, but just will not let me do anything with it except format it.

How can i repair the partitions and MBR without losing all my data?

View 2 Replies View Related

General :: How To Repair Filesystem - Appearing As Free Space - Recover The NTFS Data Partition ?

Feb 16, 2010

Original disk:
XP NTFS primary
Linux / ext4 logical
Linux /home ext4 logical
Win 7 NTFS logical
NTFS data logical
swap space
NTFS recovery partition

I tried to install linux, as there was a problem with XP overwriting grub, I chose write grub to /dev/sda8 (which is where the linux install was appearing earlier).

I guess this borked the filesystem somehow. Now the NTFS data partition and the swap space are appearing as one free space.
Well actually before that some linux live CDs (including gparted were seeing the entire drive as unpartitioned). I had to go into XP and delete the /ext4 partitions.

Is there any way for me to recover the NTFS data partition ?

View 4 Replies View Related

OpenSUSE Install :: Repairing A Corrupt EXT4 Partition?

Mar 24, 2010

After installing the recent kernel update and rebooting my machine I have found a horrible fact, my computer won't boot anymore. It seems my root partition was corrupted, and running fsck on it just sends me through a endless loop of "Ignore Errors {y}:" and "Force overwrite {y}:". I have already tried the use the repair system on the installation DVD but that doesn't do anything, the pop up asking if I want to repair the file system keeps coming up when I click repair.

View 1 Replies View Related

Ubuntu :: Can't Unmount Partition For Repair?

Jan 4, 2011

After reboot I saw this communication:Quote:Target filesystem doesn't have requested /sbin/init.No init found. Try passing init= bootarg.and I can't shutdown the system normally because it stops (live cd too).Then I can't repair this partition because it is always busy.

View 2 Replies View Related

Hardware :: Can't Unmount Partition For Repair

Jan 4, 2011

After reboot I saw this communication:

Quote:

Target filesystem doesn't have requested /sbin/init. No init found. Try passing init= bootarg. and I can't shutdown the system normally because it stops (live cd too). Then I can't repair this partition because it is always busy. I have on this partition important files.

View 14 Replies View Related

Ubuntu Security :: Recovering Data From Corrupt Encrypted Partition

Feb 25, 2010

I have recently recovered from an HDD failure on my Drobo. One of the disks died and corrupted the entire array (which is not supposed to happen). I have since managed to copy the data off onto smaller disks and after replacing the failed drive, have copied everything back.

Now that im up and running again, i was wondering how this situation would play out on encrypted disks, or in the case of a drobo a large encrypted partition (as you cannot encrypt the entire array).

Would i still be able to recover the data if i were to encrypt it? It is a 4.2TB array, and i assume that I would need to copy the data in its entirety to recover it, so using multiple smaller disks would be out of the question right?

View 5 Replies View Related

Fedora :: Repair Read-only Partition - 8GB USB With SanDisk U3

Jan 7, 2010

the U3 system mounts on dev/sr1 while the rest oi the 8 GB USB drive is usually /dev/sdb or sometimes /dev/sdc.

fdisk will not write to this /dev/sr1 partition

Code:

[root@localhost ~]# fdisk /dev/sr1
You will not be able to write the partition table.
Note: sector size is 2048 (not 512)

[code].....

View 11 Replies View Related

Fedora :: Repair / Restore Partition Table?

Aug 6, 2010

I ve got a dual boot, XP and FC 12 on a single harddrive. After defragmentation of NTFS partition (With XP installation) cant'boot linux So, rub statrts with boot menu after selecting linux it tries to load linux but prints out some messages again and again (I do not remember contetn of messages) And these messages are circulating

View 14 Replies View Related

Ubuntu :: Can See Partition But Can't Mount - Boot Or Repair It

Jul 29, 2010

I just now re-installed 10.04 on my box, but now I can't get back into Windows. I'm getting the BOOTMGR not found error, that I'm familiar with, but the circumstances surrounding it are completely new to me. In the past I've encountered errors from hard-shutdowns where I couldn't mount the partition, until I checked it with windows first, but I can't boot into windows at all any more. I'm pretty sure my grub is pointing to the right location:

[Code]...

View 6 Replies View Related

Server :: LVM Repair Of Working Disk With Corrupted But Known Partition Structure?

Sep 8, 2010

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?

View 1 Replies View Related

Software :: Repair Missing Partition Table And Recover Data From Xfs?

Jun 15, 2009

I used to have a 1TB external drive with lots of stuff on it. But after a reported drive failure during a F11 install the partition table seems to have been lost. (I think F11 toasted it)

Disk /dev/sdc: 1000.2 GB, 1000215724032 bytes
255 heads, 63 sectors/track, 121602 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[code]....

The drive used to have xfs and a partition. Is there any way to rebuild the partition? Or is my 1TB of data gone forever? The drives seem to be fine now... I just want to get it up enough to either pull any data or just to get a file list. Most of the stuff on the drive was from somewhere else.(ie 300GB of NRN data for all of North America.

View 3 Replies View Related

Fedora :: Changed Partition Size - Repair Filesystem Error On Booting

Sep 19, 2009

I am using Fedora core 10. I have changed my partition size of Linux from windows. After I finished resizing the partition, I rebooted my system to the Linux platform. While booting it gave me an
error: repair filesytem #1:
I don't know what to do?

View 5 Replies View Related

Ubuntu / Apple :: MBR Partition - REFIt And Gptsync Are Unable To Repair The MBR Error

Sep 23, 2010

I've used rEFIt and to create a dual boot system on a new MacBook Pro 7. 1 following the directions in the community forum. I can book ubuntu and mac os x fine. However, the MBR boot table shows an error in the partition map.

[Code]...

How can I fix this, rEFIt and gptsync are unable to repair the MBR error... Will this cause problems (since MBR shows the ubuntu boot partition overlapping the OSX partition)?

View 2 Replies View Related

Ubuntu Servers :: Raid5 Repair Partition Table - Recognized Too Late

Feb 27, 2011

I opened GParted to create a new partition on a new drive. He wanted me to create a partition table first which I did, and it was created directly without any prompt like im used to see when creating partition. So I recognized too late, that i actually created a MBR on one of my 6 1TB raid5 drives. Not beeing sure if the ne MBR was really written, I have opened ubuntu disk utility and clicked on the check raid button. It directly made a resync. After the resync, mdadm --detail /dev/md0 told me everything is ok and synced. Then I wanted to mount it with:

mount /dev/md0 /mnt Then I get the following error: "mount: wrong fs type, bad option, bad superblock on /dev/md0, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so" I think I just killed my raid5 ;(

I shouldnt work on my server when im tired and when I actually have no time ;( My last hope is the fact, that "Disk Utility" shows that there is a .0 TB ext4 volume on my raid (see screen below) [URL]

View 5 Replies View Related

Fedora :: Find Documents Or Repair - Add In A Repair Line?

Nov 10, 2010

i know i asked earlier but i got my usb to be mounted on a different fedora distro. how do i now find my documents or repair it? also how do i add in a repair line if possible?

View 2 Replies View Related

General :: Corrupt File System Most Spectecular Way

Feb 6, 2011

I want to cause damage to a file system and then try to restore it. I want to use a VM first and when I've learned a little try it on an old HDD. Any ways to damage a filesystem non physically is welcome!

View 2 Replies View Related

General :: Random Drives Corrupt GTP Table?

Jan 30, 2011

I have several drives in an LVM VG/LV and for some reason on reboot, a drive will get a corrupt GTP table. I have killed the entire VG and re-created it without the drive that was showing the problem, then then it just happens to another drive. It does not appear to be the same drive each time either. I've confirmed this by using smartctl to check the SN of the drive reporting a corrupted table. It's not always the same drive.

I have swapped around cables to the two controllers to see if I could pin-point which cable or port showed the problem and long story short, there was little consistency in it. This simply does not appear to be caused by any single cable, port, controller, or drive.

Code:

parted /dev/sdb print
Error: The primary GPT table is corrupt, but the backup appears OK, so that will be used.
OK/Cancel?

When I see that and select Ok, it just shows it again. I can do an mklabel and mkpart, then the LVM LV shows up under /dev as it should, without another vgscan. If I then mount that LV, I can see the data is there and it seems Ok despite the warning of mklabel saying it will destroy the data. Logs show no cause during boot. So, what is causing this? Will doing the mklabel kill the data on it? I just don't understand why Ubuntu is randomly corrupting GTP tables.

Code:

Ubuntu 10.10 x64
Mobo: ASUS A8N-SLI - On board NVIDIA nforce4-SLI controller has 4 ports connected to 3 drives in this LVM LV.
HighPoint Technologies, Inc. RocketRAID 230x 4 Port SATA-II Controller - Has 4 ports, 3 of which are used in the LVM LV. (Had 4, one is out with an RMA).

[code].....

View 17 Replies View Related

General :: Invalid Or Corrupt Kernel Image

May 5, 2011

I installed unetbootin, and picked linux mint because i heard mint is for beginners.I use HP mini, and connected USB drive.after installation is completed, restart machine, and changed boot order,this was on screen;"Invalid or corrupt kernel image"boot:press tab key for options.

View 1 Replies View Related

General :: Retrieving Data From Corrupt File System?

Oct 26, 2009

basically the situation I'm in is someone mistakenly expanded an NAS without unmounting the drive on the server. This corrupted the superblock and its apparent that all the backups are no good. The drive in question was expanded from about 800gigs to 1.8TBs, its done via an NAS.

At this point I'm most concerned about getting the files off the drive, I can deal with resetting the file system but I really need those files. This happened within a week of me joining this group so I'm kind of doing damage control here, backups were not taken of this particular drive.

View 1 Replies View Related

General :: USB Fedora File Disappearances - (corrupt - Deleted)?

Jul 6, 2010

I created a pendrive USB Fedora OS, worked fine. Installed a few bits and pieces, but when I used it again most of the files have disappeared (corrupt, deleted?). This happened before, just after I put a load of updates on. I am certain it cannot be rescued, but how can I prevent this (apart from backing up)?

View 2 Replies View Related

General :: How To Repair Grub

Mar 11, 2010

i have installed first xp after that liux . but now i want to format xp. but xp is not formatting

View 4 Replies View Related

General :: How To Repair Filesystem In Red Hat

Apr 19, 2010

How to repair filesystem in Red Hat Linux version 5.0

View 1 Replies View Related

General :: Script To Crc32 Check If Multiple Files Are Corrupt Or Not?

Dec 2, 2010

write a script that scans a folder to see which files are corrupt and if they are move them to another folder.All files have in it's filename CRC32 hash that I want to check if it's correct.Something like this:

Code:
Filename: . . . . .filename S01.E01 [CRC32Sum].mkv
Should have CRC: . CRC32Sum
[code]...

View 2 Replies View Related

General :: How To Repair Ubuntu Boot

Jun 15, 2011

I have hard disk contain Windows 7 and Ubuntu 11 so I cloned it to new one but when I replaced it no OS working just dell mark appearing then restart by itself. In the past started up by Ubuntu menu to select Windows or Ubuntu so now how can I fix Ubuntu boot to avoid reinstall everything.

View 2 Replies View Related

General :: Ubuntu 8.01 Reinstall Or Repair

Jan 19, 2010

I am having some weird problems on my Ubuntu Hardy. Single partition. I wonder if there's a chance i can avoid the reinstall afresh and try some sort of repair from the ISO cd...?! Is it?

View 1 Replies View Related

General :: Find Out Exact Kernel Parameters When Corrupt Boot Loader?

Feb 8, 2010

How do i find out the exact kernel parameters (from the grub config file) when the boot loader is corrupt. Seems like a catch 22 that I need the exact boot parameters when I cant get to a prompt to read the grub.conf file to being with.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved