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


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

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

Red Hat / Fedora :: F11 Install Created 2 Primary Partitions

Jan 17, 2010

I used Acronis' Disk Director Suite 10.0 ["DDS"] to create 7 logical partitions of 23GB each, into one of which I asked Fedora 11 to install. Fedora 11 completely ignored me and created 2 primary partitions of its own: a 217.4GB, a 2GB and a 2GB "unallocated." I will likely delete this installation for a number of reasons. How can I force fedora to install into a 23GB logical partition that I created for just that purpose? If I can't use DDS-created partitions then why do I need DDS-created partitions?

View 8 Replies View Related

Ubuntu :: Used Gnome Partition Editor To Format As A Single Primary Partition Of The Full 500 Gb Drive?

Jan 18, 2010

So I tried adding a new, 2nd hard drive to my Ubuntu 9.04 desktop for some additional storage and only managed to kill my system so that it won't boot up anymore (I just get a blinking cursor after the BIOS does its thing).I could sure use a little help getting back to a functioning system, and then adding the second drive. I tried following the instructions from this link to add the 2nd drive:

(So the forum rules won't let me post the link, neato. Here it is with spaces added):
h t t p s : / / h e l p . u b u n t u . c o m / c o m m u n i t y / I n s t a l l i n g A N e w H a r d D r i v e

[code]....

View 1 Replies View Related

Ubuntu Installation :: Make A New Partition When Have Only Primary Partition ?

Feb 22, 2011

creating a new partition when i have only primary partition on my 40gb harddisk.

what i did while installation was selected use entire partition and now i want a additional partition other than primary ?

I want to assign 10GB for Primary one and wanna create Two 14GB partitions , I Also dont know what Swap partition Is.

Since i am a month old ( January 2011 ! ) UBUNTU user who hates MS Windows now, if i gets this problem solved , i can convince more people to replace their OS to Ubuntu .

View 3 Replies View Related

Ubuntu :: Primary Or Extended Partition For 2nd Partition On USB Pen Drive?

Mar 13, 2011

I formatted a 16GB USB flash drive via right click. Then I ran gparted and got as far as this [image attached]
Do I choose Primary Partition or Extended Partition for this second partition?

View 4 Replies View Related

Software :: Convert Primary Partition To Logical (ie Move It Inside The Extended Partition)?

Nov 29, 2010

Around 2008 i seem to remember PartEd on the command-line was able to rescue deleted partitions and gave a choice of whether to recover the partition as a Primary or Logical Partition. I have tried testdisk but didn't really grok what i was doing. I successfully moved a "Windows Recovery" partition to the end of my hard-drive, immediately after the drive's Extended Partition.

View 3 Replies View Related

Slackware :: Error: Bad Primary Partition 2: Partition Ends In The Final Partial Cylinde

Dec 29, 2010

I'm slack 13.1, I am trying to install it, but always gives an error. I type cfdisk and appears this error:

Fatal error: bad primary partition 2: Partition ends in the final partial cylinde Press any key to exit cfdisk

View 14 Replies View Related

General :: Convert A Logical Partition To A Primary Partition?

Dec 30, 2010

Fedora 14 xfce

I have the following partition setup. I would like to know how can I convert the logical partition sda6 to a primary partition.

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

[Code].....

I would like to convert sda6 to a primary partition, the reason for this it to install windows 7 starter.

View 3 Replies View Related

Ubuntu :: Change Sda2 Partition To Ntfs - WARNING: The Kernel Failed To Re-read The Partition Table

Mar 27, 2010

I want to change my sda2 partition to ntfs type. i have installed GParted but it is returning a strange type of error. Here is the error dump file...

[Code]...

WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot. WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot.

View 9 Replies View Related

Ubuntu :: Tell Kernel To Reread Partition Table While One Partition Mounted

Feb 5, 2010

Is there a program that will reread the partition table and update the kernel even if one of the unmodified partitions is mounted? I installed my system on one partition, then I added another with free space. Now I want to format the second partition, but the kernel doesn't know about it yet. I tried sfdisk -R /dev/sda, but it refuses while the root partition is mounted. Is there anyway I can avoid rebooting?

View 2 Replies View Related

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 :: Partition Table To Remark Partition As BTRFS ?

Jul 29, 2011

In my efforts to resize my BTRFS Partition, I accidentally unmarked my BTRFS partition as being BTRFS, and can't mark it back as I can't find the numeric ID for BTRFS and how to apply.

View 1 Replies View Related

General :: Defined Root Partition Not Created A / Boot/efi Partition?

Aug 31, 2010

when I tried to install Fedora on my pc, I got this error message " Defined Root partition not created a / boot/efi partition. I am trying to install it on a seperate hd. My main one has windows xp pro, but I do not want to interfer with that at all?.

View 14 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 :: Automating USB Drive Configuration Of Partition Table, Partition And File System

Jan 26, 2011

I have tried to automate the configuration of a usb drive with not much success.

The problem that I have is that I have a large amount of usb drives that have a partition table of type "loop" and I need to change them to "msdos". The size of the drives vary and I need to use FAT32 or FAT16 file system.

I've tried various partitioning commands and gui applications but cant find one that I can give a one line command to to set the partition table, maximum partition size and file system.

View 9 Replies View Related

Hardware :: Invalid Partition Table For Swap Partition That Moved With Gparted?

Feb 8, 2010

I was reading another thread about someone with a bad partition table and I decided to join this forum. I'm not going to take any drastic actions with the partition (/dev/sda3) in question. I am going to wait for instructions on what to do first. I am not very good with Linux and need some hand holding. System: DELL 4550 Dual-Booted with XP and Ubuntu. Works OK, just no swap. Well, here's what I did: I deleted a partition for Windows XP Pro because it was a trial, and it ran out. I then decided to slide the swap partition for the Ubuntu Linux that I dual-boot into over. (If this was successful, I was going to try expanding the root partition to take up the unused space.) I used Gparted on a CD to do this, as I figured it was safe to do.

I now cannot mount the swap space at bootup (and have to go into a backup version of the OS), although I can use Gparted in Linux to execute the "swapon" command, and it appears that it worked because I now see "swapoff" as an option on the context menu. (I actually don't even need a swap partition, except to hibernate.) If I highlight the swap partition and click on "Drive" on Gparted's menu bar and select "Create Partition Table", it will erase all data on /dev/sda, so how do I fix the bad partition table non-destructively?

View 14 Replies View Related

Slackware :: Changing Boot Partition / Bootable And Rewrite The Partition Table?

Apr 24, 2010

Everything is installed and setup on my system, but when I setup my partitions I chose my Windows partition to be bootable. Can I just use cfdisk to toggle the bootable flag so my linux partition is bootable and rewrite the partition table?

View 2 Replies View Related

General :: USB Flash Disk Partition Disappeared As Well As Partition Table?

Feb 17, 2011

USB flash disk partition disappeared as well as partition table I'm not sure about the cause

Code:

root@u# less /var/log/syslog
usb 5-1: New USB device found, idVendor=058f, idProduct=1234
usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[code]....

Where did the partition table go? The device had one ext3 partition something around 4GB(size of USB storage device). I need to restore few files from this device.

View 3 Replies View Related

Software :: Cloning Partition To Different Laptop - Invalid Partition Table

Nov 19, 2009

I'm trying to clone a Linux install to a different laptop. It's made a little complicated by two facts:

1) The 'new' laptop I'm trying to copy my Linux installation to is actually older and has a smaller hard drive then the computer I'm copying from

2) The computer I'm copying from has both a windows and Linux installation; I only care about the Linux partition.

I figured I would copy only the Linux partition from my primary computer to the laptop, sense the laptop doesn't have a large enough hard drive to copy everything. So I used the DD commands to copy SDA3 (main Linux partition) from my main computer to SDA2 of my laptop. When I came back a few hours later I was surprise to find my laptop trying to reboot itself (I never turned it off). It would keep starting to reboot, failing, and restarting itself. Not too surprising sense its boot partition wasn't changed so it's trying to boot into centos when I copied a redhat partition to it.

The problem is that when I used a redhat boot disk the rescue mode was unable to find a Linux partition to mount. /dev/sda2 exists, but trying to mount it gets the complaint "No such file or directory". "fdisk -l" lists sda1 (the boot sector) and sda2. Sda2 is the correct size and reports Linux LVM for its system. But "fdisk -l /dev/sda2" gives the error message "Disk /dev/sda2 doesn't contain a valid partition table" Did I not clone the drive correctly, or was an error caused due to the boot sector not being copied yet (the laptops boot sector is smaller then my old computers, so I can't copy from old computer to laptop)? Can I salvage the laptops partition table somehow, or do I have to repeat the cloning process? And if I do have to re-clone my computer can anyone tell me what I did wrong the first time so it works this time? I don't care if I copy just the Linux partition or both windows and Linux. Even though my main computer has a larger hard drive I'm only using about half of its available space so it should be possible to copy both partitions if I could ignore the unused sections of the harddrive.

Edit: I used DD to copy a tiny part of the Linux partition from my laptop so I could look at it. Most of it is illegible binary of course, but I scrolled through till I found some text right near the beginning:

Code:

VolGroup00 {
id="F2MWxh-....-BidcLe"
seqno = 1

[code]....

So it seems that the DD command did copy everything over to the laptop, which is good to know. I noticed that it says device="/dev/sda3" right in the middle of the code I just posted. The Linux section of my original computer was SDA3 but I copied it to partition SDA2 of my laptop. So is the problem because the boot partition is for the wrong device? I don't suppose if I modified that one line to say SDA2 it would be able to load correctly? (Not that I know how I would modify the line, short of using the DD command again).

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

General :: Accidentally Wrote Over The Wrong Partition?

Mar 17, 2011

When doing an install of Linux Mint, I accidentally installed on a partition that already had data on it, so now that partition has a clean install of Mint instead of the data that was there before.I was hoping that I could at least recover some of the data from this partition, so my questions would be what, if anything, could I recover, and how would I go about doing that?

View 2 Replies View Related

Ubuntu :: Create A New Primary Partition?

Feb 25, 2010

i have 2 partitions. one with vista and the other with ubuntu. i would like to make another primary partition from the free space in my ubuntu partition. anyway to do this?

View 8 Replies View Related

Ubuntu :: Partition - With Lvm And Primary/extended ?

Sep 9, 2010

I somehow messed up my filesystem. I installed Ubuntu directly with LVM. This created an extended partition including a logical one. When I run out of space, I just increased my space (through VMware) and then added a new PRIMARY partition.

Then I added this one to the volumegroup and increased the logical volume. After I did this a few times, there were no longer any primary partitions allowed (only 4). Then I resized the FS, resized the logical volume, resized the volume group, and removed the physical volume. Now I'm no longer able to create an extended volume (only one) but it's not at the end (there are other primary partitions behind this one at the disk), so I'm not able to create some logical volumes.

What is the best possibility to add some space to the LVM and being able to do this a few times in the future again?

further info:

pvscan:

fdisk -l for sda:

There was a /dev/sda3 at the end of the disk. I already deleted this partition.

So the order on the disk is: sda1 | sda2 (extended) | sda5 (logical referred in sda2) | sda4 | free space

Does it matter that there is type "Linux" for sda4 or can I without damaging the lvm just change it (with cfdisk) to "Linux LVM"?

View 6 Replies View Related

Ubuntu / Apple :: RFIt Partition Tool Not Working - Error: "MBR Partition Table Is Invalid, Partitions Overlap"

Aug 23, 2010

I installed Ubuntu as shown in the wiki and when I went to restart it gave me a lovely blinking cursor and nothing else. So I held down option, loaded into osx, reinstalled rEFIt and got my menu on startup. Unfortunately, the partition sync tool doesn't seam to be working, it gives me an error: Status: MBR partition table is invalid, partitions overlap. Error: Not Found returned from gptsync.efi

View 9 Replies View Related







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