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


ADVERTISEMENT

Ubuntu :: Partition Outside The Disk - Corrupted Partition Table?

Oct 5, 2010

What I believe has happened is that I've corrupted the partition table. Essentially one of my partitions' ending point exceeds the maximum number of cylinders/sectors on my drive.

Essentially I have the same problem as on the thread @ [url] but do not know how to fix this and am afraid to reformat/partition based on sectors without really knowing what I'm doing here.

[code]...

When I try to look at SDA in GParted everything shows up as unallocated (though it's obviously not) and it says

[code]...

View 2 Replies View Related

Ubuntu :: Corrupted Partition On Hard Disk - Invalid Argument

May 11, 2011

Basically, I just installed Ubuntu over Windows Vista because I was getting fed up with the performance on it. During install I set up a partition, one for Ubuntu and one for data. However, my second, larger partition gives this error when I try to mount it...
Error mounting: mount exited with exit code 12: Failed to read last sector (976764927): Invalid argument

Hints: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

View 3 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

Hardware :: Badblocks Hanging / Not Working... On Corrupted Disk [data Still There Inside]?

Oct 3, 2010

this sector 36017793 is dead visibledd is not working althought

Code:
f, sector 36017793
[ 598.463416] Buffer I/O error on device sdf9, logical block 0

[code]....

View 4 Replies View Related

Ubuntu :: Repair A Corrupted Excel File?

Jul 2, 2010

What Linux software can repair a corrupted excel file? I can't find anything useful in google or searching with synaptic.

View 5 Replies View Related

Hardware :: Corrupted Drive- Mechanical Or Logical - Fsck Repair?

Sep 7, 2010

I was working on my RHEL 5.2 workstation yesterday when the OS became flakey. first I noticed that some software that I had running was outputting and error that it was unable to write to log file because permission was denied - I've never seen this output before- it would have been writing to my home dir running under my user name. From an open terminal, i did "ls -al" and saw that many of the permissions the files in my home dir were listed as "????????" some were still "rwxrwxrwx", as well, many files were highlighted in the colors set for links and root privileges.

I tried to start a new terminal, and it failed. then Gnome crashed. When I reset the Machine, I got through grub, and into the startup, and after finding the Volumes, the startup failed with a Kernel panic:

giving several errors- like:

I dont have much experiencie with this stuff, but it looks obvious that somethig like the MBR or wherever the partion information is stored might have been corrupted.

What I dont understand is why I can get into GRUB (its a dual boot Windows Vista, RHEL machine). I'm guessing that this means its not a mechanical problem, because I can get RHEL to begin to boot which i think is failing somewhere around the /etc/rc.d/re.sysinit script, and also can get Vista to bring up the inital windows screen and a mouse pointer on spanning both of my screens which i think means that it must have at least loaded my ati drivers for my dual head radeon 4850. windows hangs there however.

I've tried the RHEL 5.2 rescue disc, and it doesn't recognize any Linux partitions.

I ran the system diagnostics out of the dell bios and it came back with a failed HDD : Error code 0142, but from digging around a bit I've found that this is a very broad diagnosis.

My concern over it being a mechanical problem is that I'm not sure that I want to try to run any further diagnostics, or any of the disk utility programs that i've seen listed here on linuxquestions, as it might damage it further, and there is some data that i would really like to get off this disk.

View 7 Replies View Related

Ubuntu :: Format Disk With Corrupted Partitions?

Aug 9, 2010

I got a 40GB seagate HDD which has got through some unsuccessful windows and linux installations and now all the partition tables are corrupted... I tried to format with System>Administration>DiskUtility but it gives this error when I'm do: Error creating partition table: helper exited with exit code 1: Error calling fsync(2) on /dev/sdb: Input/output error gParted was not even useful since it didn't not even detected the drive...

Isn't there any simple way to format the crap from the Ubuntu 10.04 Live CD? I believe that on windows, there wouldn't be that problem since the "format c:" crap just format the drive without asking questions. All I want to do is to format the drive so I can create partitions later. Also, I have only access to the live CD and I don't have any Diskette drive installed.. I believe we now live in a world where this crap isn't needed to fix a computer.

View 9 Replies View Related

Ubuntu :: Use The Installation Disk And Repair / Reinstall?

Jul 13, 2010

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?

View 9 Replies View Related

Debian :: How To Rewrite Partition Structure Without Deleting Any Data?

Aug 20, 2009

I'm pretty new to linux, and I'm facing a problem with an ext3 partition on an external hdd. I'm not sure whether the hdd is about to crash or not, however I've had a few problems accessing it in the past.

I have a second external hdd, the exact same drive, that has the exact same partition configuration, but holds different data. So, my question is; is it possible to backup the partition structure of the second working drive, and using this information to rewrite the partition structure of the failing hdd without damaging the data stored on that drive?

View 2 Replies View Related

Server :: How Partition Is Linked With Disk

Jan 23, 2011

i would like to have clarification from you.

in /etc/fstab:-
/dev/vgroot/swap0 swap swap defaults 1 2
/dev/vgroot/imf-db /tekelec ext3 defaults 1 2

[code]....

View 2 Replies View Related

Ubuntu :: Won't Boot After Moving To New Hard Drive And Partition Structure

Dec 9, 2010

Old drive is dying, so I copied the system over to my new drive. I've moved /home and /tmp to separate partitions and updated fstab and grub with the appropriate UUIDs from blkid. Grub wasn't loading but that's been fixed now.

Problem:

The problem now is that when I boot I get the following screen:

Errors were found while checking the disk drive for /

Press F to attempt to fix the errors, I to ignore, S to skip mounting or M for manual recovery

F doesn't work, and in manual recovery the file system is read-only. How to proceed?

View 9 Replies View Related

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.

View 2 Replies View Related

Ubuntu Installation :: 10.04 Corrupted Xfs Partition?

May 4, 2010

Being an Ubuntu enthousiast (both professionally as well as at home), I upgraded my home server from 9.10 to 10.04 yesterday. It runs kvm with only 1 vm. Host and vm we're both ubuntu 9.10 64bit. I upgraded both to 10.04. So far so good. Also did reboots to load the new kernel image.

For data storage I have a large (6,35TB) XFS partition. This partition is exported to the vm as a block device (vdb). This morning I noticed the vm has crashed. The XFS partition (mounted as /home) was shut down. Is this just bad luck? Or is it 10.04?

Code:
May 4 08:00:18 fileplanet kernel: [68558.681584] ffff8800241c8000: 58 41 47 46 00 00 00 01 00 00 00 02 0f ff ff ff XAGF............
May 4 08:00:18 fileplanet kernel: [68558.754806] Filesystem "vdb": XFS internal error xfs_btree_check_sblock at line 124 of file /build/buildd/linux-2.6.32/fs/xfs/xfs_btree.c. Caller 0xffffffffa009dcc4

[Code]....

I tried booting with an older (2.6.31) kernel, but didn't help. Can I safely run xfs_repair without causing any more damage?

All disks in this system are attached to an Areca hardware raid controller configured in Raid5 and has been operating for months now without any problem.

View 2 Replies View Related

Ubuntu :: Corrupted My Ext4 Partition

Jun 28, 2010

I was resizing my ext4 partition and I cancelled it while it was at the reading stage think it was only reading it and nothing else, but now it is corrupt.

When I run 'fsck -n /dev/sda5' I get the error:

Code:

View 4 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

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 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

Server :: Shrink Disk Partition After Reducing LVM?

Jan 19, 2011

I run Fedora FC13-x64. Recently I added a few TB's of RAID5 storage tto my server and moved most data from the root filesystem to that. Now my root volume is way too big. My basic install resulted in a 1TB LVM volume group entirely dedicated to a single lv_root.

Now I want to make room and eventually clone this disk to a much smaller root disk. I see many threads about reducing the size of an LVM logical volume. My first steps were succesful. I used lvreduce and resize2fs to reduce the size of the logical volume and filesystem. I also user pvreduce to reduce the size of the physical volume group.

But still gparted and fdisk report the physicalk volume (/dev/sde2) as 900GB. The embedded LVM stuff is as small as 60GB. Anyway LVM manager and GParted doe not allow me to shrink /dev/sdf2 to snuggly fit the LVM stuff in it.

View 6 Replies View Related

Fedora Installation :: Brasero Check Disk - Error Some Files Could Be Corrupted

Jul 7, 2009

I download the live 64 and burned it to a disk after it burns to the disk Brasero checks and says "error some files could be corrupted." I burn it slowest burn same thing happen. I downloaded thinking I had a corrupted download. Same thing happen. I never had a problem burning iso until now. What am I doing wrong?

View 6 Replies View Related

OpenSUSE Install :: Upgrading 11.2->11.3 Corrupted A Different Partition?

Jul 29, 2010

I know I said I wouldn't do anything that could possibly do anything bad to the drive until I receive my external hard drive. I just didn't expect that upgrading from 11.2 to 11.3 via zypper dup has the potential to do that.

First, the problem: The most important partition of my computer containing all the irreplaceable stuff (images) which I had apparently only partially backed up was corrupted after I upgraded from 11.2 to 11.3.

On my computer, there are 2 drives. sda was the one that had Windows. sdb had an NTFS partition and a few smaller partitions which I used for openSUSE. After doing quite a bit of searching on upgrades corrupting partitions, I didn't find anything about it doing what I feared which was corrupting the NTFS so I went ahead and upgraded.

The upgrade went along smoothly. No problems that I could tell. The only weird thing was that the window borders disappeared near the end but I assumed that was supposed to happen. And then I restarted. First thing I noticed was that the background was blue instead of the image I had set (which happened to be on the NTFS partition). I didn't think much of it at the time figuring it was just a quirk in the upgrade process. I went ahead and decided to reset the background to what it was. And then I realized that the NTFS partition was missing -- it wasn't mounted or visible at all. That was when I started to panic a bit.

I opened up Yast partitioner and everything looked fine except that NTFS partition in question had a little * by it. I went ahead and reset its mount point only to receive an error saying that the filesystem in question doesn't exist. And sda became sdb and sdb became sda if that changes anything.

I went into Windows expecting for it to do a CHKDISK on bootup for the drive (D: ) but none of that happened. Hoping that everything was fine, I went in and tried to access it only be given an error along the lines of "The drive in D: is not formatted. Do you want to format it?" Of course, I said no but that was when I realized that this was no partition table problem like last time.

I tried restarting but Windows froze and refused to do so for several minutes so forced the computer to shutdown and loaded my copy of GParted LiveCD. It showed a 30GB unrecognized partition, another 30MB one and some unallocated space. TestDisk fixed that. (so it turns out, there was a partition table issue) What was left was what looked OK except the one partition on sda (the original sdb) that I could not afford to lose had an error.

I can't remember the exact error but it said something like "Are you trying to use a disk as a partition? Are you trying to use /dev/sda as /dev/sda1 or vice versa?" That was either in the error message or in the message I got when I tried to check the disk.

Still trying to get Windows to check the disk, I tried booting from the new sda into Windows. What I got was the Dell Utility program. It said no mouse detected and I couldn't do anything so I shut it down.

I tried going back into Windows the normal way and got the Dell Utility. I figured that this was an MBR problem after I went back into openSUSE with the new sdb still reading perfectly. Although I couldn't manage to restore the MBR so I can't log into Windows. But the other issue is far more important.

View 9 Replies View Related

Ubuntu :: Corrupted Windows Partition Through Gparted?

Jan 8, 2010

I was resizing my windows partition and accidently turned my computer off. When I went to run a disk check from gparted I get multiple filesystem errors. Chkdsk /r when run from a recovery cd says it can't determine the size of the partition so it can't continue. Is there anyway to get my files off the corrupted partition from within linux. Right now Gparted shows that it has been resized but that it is corrupted and i can't even attempt to mount it. There are only a few files I need to get off the partition but they are really important.

View 3 Replies View Related

Software :: Corrupted LUKS-encrypted Partition ?

Jun 30, 2010

I have a really tricky and may be intresting problem with a encrypted disk partition (cryptsetup luks...) which was fine until it accidentally got re-formatted by an instance of Windows 7. Most of the data on that 1TB-disk will probably still exist, only the LUKS header at the very beginning of the partition is - of course - gone.

So when I try to open the container, it gives no verbose, just the return value 234.

I scanned the whole partition for other LUKS headers with hexedit, none there. But, luckyly I have another partition which is encrypted in the exact same way with the exact same passphrase (which I remember very well!), so I had an idea: I copied the LUKS header (592 bytes) from the other LUKS encrypted partition over to the damaged partition.
When I now issue

Code:

Code:
No key available with this passphrase

Here is the command how I created the container:

Code:

How do I get the existing passphrase accepted by LUKS?

View 9 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

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

Red Hat :: Hard Disk Partition Size To Create Name Server

Jan 24, 2011

I want to configure Name Server i.e., DNS to my red hat linux box in a production enviromnt.The ram is 2 GB and Hard Disk size is 200 GB. How much space should I give /var, /usr, /boot, /root and home partition. May be I am wrong in partition point of view while installing fresh red hat but to install for home purpose and server end is different. So kindly guide me the hard disk partition size to ready it for name server.

View 3 Replies View Related

Ubuntu :: Partition With Grub Corrupted - On Dual Boot - What Next

Nov 8, 2010

I have a dual boot drive, one is WinXp the other Ubuntu 10.04. I don't know why, but my ubuntu partition became corrupted (booting from live cd and inputing fdisk -l in the terminal, shoes my partition as unknown type) My Grub was on this partition, and therefore I cannot boot neither one of my two OSs. I would like to recover my linux partition, I figure I can do that only from my WinXp partition, but I don't know where and how to install Grub.

Also, If anyone knows how I could recover from the live CD without booting Windows, please speak up, that would make everything much easier. Another thing, it would be just super if I could recover my whole partition, not just the data, because I would hate to reinstall all the stuff that I had on my Ubuntu.

View 1 Replies View Related

Ubuntu :: Recovering Encrypted Data From Corrupted Partition

Jul 20, 2011

I recently suffered a hard disk failure, meaning I had to replace the faulty device. After attempting to mount the old faulty hard drive using and external caddy, I got the following message... Unable to mount 144 GB Filesystem Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/sdb5, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so

I'd like to attempt to recover what I can from my /home directory but unfortunately I use encryption (although I do actually know my pass phrase). What procedures and software can I use to try and recover data from this drive?

View 5 Replies View Related







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