Ubuntu Installation :: Accidentally Deleted Partition Table On Lvm Physical Volume.

Jul 18, 2010

I was trying to remove the physical volume from an old drive. So I opened gparted and told it to rewrite the partition table. The only problem is I targeted the wrong volume, I wiped the partition table on my 4tb raid5 array This 4tb array has everything! All my movies, tv shows, music. The only things I have backup up off site are my smaller files like documents. I was about to lose my whole media collection.

I did some research and found a solution that I will post here in the hopes that someone will google "I deleted the partition table on my lvm" and be find the solution.You should find in your filesystem a /etc/lvm/backup folder. LVM puts a copy of the crucial lvm information there every time you change the the volume group.

In this folder you will find a file for each volume group. In this file you will find the uuid for all of the physical volumes that make up that group.The first step is to recreate each physical volume with their original uuids. In my case I had only 1 physical volume, which was my raid5 array. My recreation command looked like this:

pvcreate --uuid cLrY02-zrVi-D0Vi-cIPB-6fF5-ed0c-XFF0os /dev/md0

Now I have a physical volume with the same uuid it had before. It is essential that you correctly match up the uuids with the correct physical deviecs.The recreated pv is empty, the volume group needs to be recovered. This is done by using a special tool and the backup file. For me the command looked like this:

vgcfgrestore --file /etc/lvm/backup/raid5 raid5

This tells it to recreate the volume group using the information in the backup file. The backup files looks for the uuid of the PV, which now matches the correct volume. The coordinates in the backup file match up to the data on the array an suddenly everything is back!

When I deleted my LVM partition table I did not damage any of the actual volumes on the volume group, I just wiped out the table of contents. The backup file had the information needed to rewrite this table of contents.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Accidentally Deleted Partition Table..recovery?

Aug 26, 2010

I was messing around with the windows 7 install and wiped a valuable partition on a drive, I ripped the sata cable out afterwards... is there a way to reconstruct the table?

View 2 Replies View Related

Ubuntu :: Accidentally Created Partition Table On Primary HDD

Mar 9, 2010

Alright, so, I booted using linux live, and was poking around Gparted, and was going to test some things on my extra hdd (80gb, IDE) -I thought that extra hard drive was selected, what I clicked Create Partition Table. Apparently, it was my primary hdd, (250gb Sata, Windows Vista x64) that was selected. I think I may have tried to cancel it after a few seconds, realizing what was happening, but yeah, it now shows the entire hdd as unallocated space. I immediately shut down the computer, pulled out linux live and tried to boot to windows, but I immediately got an error saying the disk couldn't boot, asking for a system disk.

There was a thread with a guy who had a similar thing happen to him, but the thread dropped off... [URL]
sudo ./testdisk_static
Opened testdisk for me, but now that testdisk is open, I'm not really sure what I need to do. I'm guessing that the boot sector on that hdd is gone. Are my files gone forever? There are some files that I don't have backed up on there, that I'm hoping are not gone. I would love it even more if I could somehow just repair that boot sector, and not have to reinstall everything on my machine.

View 9 Replies View Related

Ubuntu Installation :: Accidentally Deleted Ubuntu Partition

Aug 24, 2011

My laptop came with Windows 7 on it and a while back I dual installed Ubuntu on it. A few days ok I was looking for some more space and accidentally deleted my Ubuntu partition. Now when I boot up all I get is grub rescue. I've tried reinstalling Ubuntu but whenever I click to install or try Ubuntu it eventually ends up with an "initramfs" prompt.

View 9 Replies View Related

General :: Accidentally Replaced The Partition Table Using GParted In UBUNTU

May 20, 2010

This machine has UBUNTU & wINDOWS XP. I'm currently logged into UBUNTU. I was just checking the features of GParted and accidentally clicked Device > Create Partition Table. A default MS-DOS partition table is created. Now if I re-start the Gparted there is nothing. Its showing entire disk as UNALLOCATED space.

Lucky thing is All the drives (C:, D:, E:) are currently mounted and I'm in UBUNTU. I guess its possible to re-create the partition table using current status. how to do this. This is a lab computer. If its not recoverable. I'm completely screwed!

View 3 Replies View Related

Ubuntu :: Restore An Accidentally Deleted Encrypted EXT4 Partition ?

Feb 2, 2010

I accidentally deleted my root ext4 partition, which I had encrypted. I am unable to log into any os since I am blocked by a Error 17. Is it possible to retrieve an encrypted ext4 partition, does it even matter that it was encrypted.

View 6 Replies View Related

Ubuntu :: Accidentally Deleted Partition - Now Stuck At Grub Rescue

May 26, 2011

Deleted the Ubuntu partition by accident. Now at a loss as how to get Windows working again. I had all my files saved, and did a full format and reinstall to Windows. Thinking that it would just overwrite grub but this thing is like a virus.. I cant do **** at the grub rescure command prompt... it just sits there with a cursor... Even stuff like reboot and quit or exit don't even work... what the hell? So I pop my Win7 install cd in and I find that for some reason I have no recovery console... just the option to install. I install but no grub, the little virus is still there and I just wasted an hour of my life while Win7 installed again because I still cant view it.

I deleted all the partitions and wiped the entire disc and grub is still there.. I was thinking that Windows would just replace grub automatically. Heh the Bootsector always seems to get owned on Windows and I expected grub to be just as useless but in it's own way, it's worse.

View 9 Replies View Related

Ubuntu :: Partition Table Was Deleted / Cant Restore?

Mar 2, 2010

I was working on creating a partition on a new hard drive I was planning on using for storage. I wasn't paying attention and chose to delete the partition on my master. I am running a dual boot with Vista and Ubuntu. When I rebooted It will only go to the Grub> prompt. Ive ran TestDisk and though that I had corrected the problem but it didnt. After running TestDisk again here is what It came up with.

Disk /dev/sda - 320 GB / 298 GiB - CHS 38914 255 63
Partition Start End Size in sectors
L HPFS - NTFS 0 32 33 28554 254 63 458734027
L Linux 28555 1 1 38585 254 63 161147952
L Linux Swap 38586 1 1 38912 254 63 5253192
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
code....

After writing the table above I rebooted. Windows prompted me for my restore disk. I rebooted to the live cd again and ran Fdisk.

code....

View 3 Replies View Related

Ubuntu :: Recover Data From RAID 1 Where Partition Table Has Been Deleted?

Jan 12, 2010

I have 8.04 running mdadm raid 1. I selected the wrong drive in gparted and managed to hose my partition tables.

View 7 Replies View Related

Ubuntu :: Fixing A Deleted Partition Table / Data Recovery?

Jan 27, 2010

I erased my partition table. Can anyone recommend a good method of reconstructing it? And if this is impossible, can anyone recommend a good method of data recovery? I had an ntfs partition with windows 7 and a larger ext3 partition that ran Debian.

I'm running Test-disk on the SystemRescueCD at the moment (cross your fingers).

View 1 Replies View Related

Server Platforms :: Partition Table Deleted - Get My Data Back Safe Without Losing It ?

Mar 6, 2010

I've initialize a virtual disk and deleted the partition table didn't notice that i've done that to the wrong one, data still on the physical hard disks but....how I'll get my data back safe without losing it?

View 4 Replies View Related

Ubuntu Installation :: Accidentally Deleted Win7 From Boot Menu

Jun 25, 2011

I had a win7 installed on my system first. Then I installed Ubuntu and added grub2 boot option with win7 utility program EasyBSD. But then I accidently deleted win7 boot option from windows loader menu. Now I can only chose to load Ubuntu. How can I restore Win7 loading option? I have Win7 option in grub2 but it returns me to the previous screen, from which I have deleted win7.

View 2 Replies View Related

Ubuntu Installation :: LVM2: Resize The Physical Volume

Apr 11, 2011

I have a 500GB hard disk, /dev/sda. On it, there is /dev/sda1 for /boot, /dev/sda2 for an LVM PV (physical volume), and /dev/sda3 for another /boot (multiple Linux distros, one boot partition for grub legacy, another for grub2). so the LVM2 partition, /dev/sda2, is taking up ~465GiB. I want to add another OS (non-Linux), so I resized the *lvm2 physical volume* to 320GiB, successfully, using pvresize.

However, I now need to resize the partition so the lvm2 physical volume only just fits on it, ie to 320GiB. My plan of action is to use gparted (the partition table is GUID, so fdisk won't work), to first delete the partition from the partition table, then re-add it but this time with a smaller value (~320GiB). The problem is that I need to know exactly how many MiB/cylinders the physical volume is taking up. So, I run:

Code:

root@sysresccd /root % pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name vg0

[code]....

What one of these values do I need to set the new lvm2 replacement partition to?

View 7 Replies View Related

Ubuntu :: Difference Between Using GPT Partition Table When Formating Hard Drives And MS-DOS Partition Table?

Aug 6, 2010

Is there a difference between using GPT partition table when formating hard drives and MS-DOS partition table? What are the advantages/disadvantages of using either?

View 2 Replies View Related

Fedora Installation :: Unable To Mount 250GB LVM2 Physical Volume

Mar 17, 2011

I just installed linux fedora 14 on my hp probook 4320s with installation CD with this name: Fedora-14-x86_64-Live-Desktop. Then I installed it on the hard disk. During installation I chose to encrypt hard disk. When I try to access my hard disk it says "unable to mount 250GB LVM2 Physical Volume, Not a mountable file system". What can I do to get access to my hard disk?

View 4 Replies View Related

Ubuntu :: Accidentally Deleted /usr/bin/x11?

May 18, 2010

I need to know where the /usr/bin/X11 link goes to. If someone can post the ls of that directory that would be just as helpful. It is currently referring to /usr/bin/ which means its a recursive link and I do not think that is correct. A speedy response would be nice
I wish to have this resolved before I need to reboot.

View 3 Replies View Related

Ubuntu :: /etc/sudoers Accidentally Deleted?

May 28, 2010

I have accidentally deleted the contents of sudoers file (while trying to add a line through CLI).Anyway, I'm still logged in and can please someone paste me the default contents of the sudoers file on Lucid Lynx

View 3 Replies View Related

Ubuntu :: Accidentally Deleted Partitions?

Dec 25, 2010

I've a little experience about Ubuntu. I'm using Ubuntu with Windows 7 as dual boot for 1 year. Three days ago I decided to upgrade my Ubuntu version to 10.10. I've created a live version of installer on my USB stick and I've successfully logged into live version.After some time I clicked install and accidentally I gave a command like install Ubuntu to all hard drive. Installer have given error and denied to continue but it has removed the partitioning records from hard drive. So as you guessed everything within hard drive have got unreadable everything until here is the story part. I've written in order to inform the reader.

After a few hours of searching around, I've discovered a miracle called Testdisk. Following the instructions carefully I've managed to return partitions except the System Allocated space of Windows 7 which exists on the starting 100MB of memory. But I'm able to see my files within C: drive of Windows 7Then my problem has became logging into Windows. Somehow I skip following the instructions on the website of Testdisk and I've used the command called 'Write TestDisk MBR code to first sector' so at that moment my first sector was the C: drive of Windows 7 where OS was originally installed and where my files are kept. So I cannot see the files within C: because the starting bytes set to something else and I want to undo what I've done so far.

View 6 Replies View Related

Ubuntu :: Accidentally Hid Or Deleted Workspaces?

Dec 26, 2010

Just like the title said, I was fooling around with different workspaces - seeing if I could close a program in one workspace while working in another - and I seem to have either deleted or hidden all of my workspaces!I've already tried the gconf commands and they don't seem to work at all.I'm running 11.04.TYOK... a quick update. I can get to my other workspaces using ctr+alt+ right arrow, so the workspaces are still there, I've just hidden or removed the switcher applet!

View 3 Replies View Related

Ubuntu :: Plasma Desktop Accidentally Deleted On 10.10?

Dec 16, 2010

Not sure what I did, but the nice widget showing my desktop on my new Kubuntu install is no longer on my desktop (the widget showing a window of the current desktop contents). How can I add it back?I've looked through widgets and panels, not sure what I did

View 2 Replies View Related

Ubuntu :: Accidentally Deleted The Help Icon - Find A Way To Add It Again?

Jan 5, 2011

I'm a Ubuntu 10.04 user.I accidentally deleted the Help Icon that is near to the Applications/Places/System tab and I can't find a way to add it again. I tried to right click on the panel, then I clicked "Add to Panel" and tried to find that icon, but it was not there.

View 2 Replies View Related

Fedora :: Managed To Reduce The Logical Volume To Free Some Space But Cant Seem To Reduce The Physical Volume

Jan 1, 2010

so i have f12 installed on my hd with lvm using the whole extent of the HD , i want to reduce it so i can dual boot it with a windows system, i managed to reduce the logical volume to free some space, but i cant seem to reduce the physical volume, is this possible and how ?

View 2 Replies View Related

Fedora :: Accidentally Deleted Libz.so.1?

Mar 25, 2011

I accidentally deleted /usr/lib/libz.so.1. Now I am unable to bring up GUI(I can get into command line prompt) and also not able to create this symlink file.How can reinstall/create this package/file?

View 9 Replies View Related

Ubuntu Installation :: Accidentally Formatted /home Partition - Recovery?

Feb 11, 2011

I was installing 10.10 x64 today. I wanted to manually partition the disks, since I have a /home partition from a 9.10 installation which I want to keep.Unfortunately, I selected to convert the ext3 /home partition to ext4 and didn't realise it was formatting the partition until it had just begun. In desperation, I pulled the power plug, but now I can't access the partition (using the LiveCD) - comes with an input/output error.What are some strategies to recover the data on the partly formatted partition? I don't think much, if any, was actually formatted.

View 4 Replies View Related

Ubuntu :: Accidentally Shift-deleted A 6gb Avi File A Minute Ago?

May 12, 2010

i just accidentally shift-deleted a 6gb avi file a minute ago. is it possible to recover it and how? im using lucid and ext4.

View 1 Replies View Related

Ubuntu :: Accidentally Deleted Rhythmbox From Sound & Video?

Aug 30, 2010

i accidentally deleted the shortcut for rhythmbox from sound & video.and cant restore it i don't know where the location and etc is.i tried uninstalling it properly from the software centre and synaptic manager and reinstalling it didnt restore the shortcuts.

View 9 Replies View Related

Ubuntu :: Accidentally Deleted Windows 7 During Wubi Recovery?

Mar 8, 2011

What exactly I did here to aid in attempting to recover my Windows system. My laptop was dual Wubi-boot with Windows 7 and Ubuntu, and after encountering issues booting into my Wubi Ubuntu, I went in to recover important files to do a reinstall. Using an Ubuntu livecd, I created a directory called "win" (sudo mkdir /win) and then mounted my Windows 7 partition (sudo mount /dev/sda1 /win) to that folder name. However, after encountering some issues there, I made the mistake of removing the "win" folder without unmounting the Windows 7 partition using "rm -rf /win". After that, my Windows system appears to be missing. Can anyone tell me what exactly I did? Did I delete the partition?

View 9 Replies View Related

Ubuntu :: Accidentally Deleted - Stuck With A Corrupt Boot

Jun 26, 2011

I was on Windows and I accidentally deleted my Ubuntu install. Now when I boot I have Windows 7 and Ubuntu, and it's corrupt. So I went to add remove programs in Windows 7 and it just deleted the Ubuntu uninstaller (cause i deleted it) and now i'm stuck with a corrupt boot, how to remove it because I want to re install Ubuntu and it's annoying having 2 Ubuntu systems (one corrupt) and Windows 7 on my boot screen.

View 3 Replies View Related

Ubuntu :: Accidentally Deleted An Admin User Account?

Aug 9, 2011

I had two accounts. One was an admin and I set the other as an admin as well, but left it without a password since I wanted the new user to enter it themselves. I went into the new admin account and deleted the old, passworded one.

However, this new account doesn't have a password that I explicitly defined on it. How do I change that? The account is the only one and still 'disabled'.

View 8 Replies View Related

General :: Accidentally Deleted The Swap : Won't Start?

Nov 20, 2010

I have a dual boot system - vista & fedora.I was cleaning my hard disk drive, using a partition manager for windows.I moved the swap partition without much thinking about the consequences - and now I can't boot into fedora. It gives the following error mount: error mounting /dev/root on /sysroot as ext3 No such file or directory.

View 6 Replies View Related







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