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.
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
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?
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.
HDD name: Samsung Spinpoint F4EG HD204UI 2 TB (Internal HDD)My case doesn't allow more than 1 HDD, therefore I use a "USB 2.0 to SATA & IDE adapter".Next thing as usual with any HDDFormat and partition.HDD recognised just fine and listed when executing "fdisk -l":
Code: WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Caused by Used fdisk to delete the windows partition, in my dual boot. Then I could no longer log in to ubuntu, the partition table was some how courpt and I couldnt remount I then decided to use the windows partitioner from windows setup, as I thought it is so stupid, to reformat the partition where I had ubuntu. I wanted reinstall ubuntu, and I know that during the setup I could straighten out the mess I'd made.
Windows has now installed two 8mb one cylinder partitions on my HD. When I start the PC I get a !disk error occurred Press Crlt Alt Del to restart! This happens everytime. HD boot sequence is buggered, i guess.
I can boot from other devices. USB + CD. How when I use the windows disk to boot up I can see the 2 8mb partition, which it wont let me delete. How can I delete this via linux?
Also when I try to install ubuntu from the usb drive, it stalls just after the Preparing to install part. The next screen is when you set the partition table, swap drive etc. When I quit I get the following error !Process Glib WARNING getpuuid_r() failed due to unknown id!
The usb_liveCD does however mount my hard disk partitions and luckily I have managed to back everything up to an external.
results from df /var/log# df Filesystem 1K-blocks Used Available Use% Mounted on aufs 766804 68140 698664 9% / none 760892 244 760648 1% /dev /dev/sdb1 3911856 712128 3199728 19% /cdrom
I got a new ipod touch the other day and have been unable to get anything to read it properly. it automounts just fine and i can browse the file system. Normally with my old ipod i just used gtkpod and it worked fine. With gtkpod you have to tell it where the ipod is mounted. The problem is that i cannot see where the ipod touch is mounted It is connected right now and i can see it in nautilus and i can browse the file system, however...
[code]...
Partition table entries are not in disk order. what the?
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.
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?
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?
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.
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?
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).
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.
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
I have a problem with one hard disk,now it says its Unallocated,and i tried to create a new partition on it,but it says that first i need to create a partition table,but when i create one,choosing msdos label,it doesnt to nothing. I used Gparted in Fedora,how can i create a partition table,so i can use my hard disk again?
had trouble viewing partition table using fdisk, now realised i just cudnt view the whole table from Rescue terminal, please remove this thread, i can't find how ))
I need to find a program or a way to edit the partition table and set the values and addresses for the partition boundaries manually. A while ago I had a very messy data loss that left me with a disk full of data but without a partition table (and without file indexes for some of the partitions on the disk). So, for recovery reasons I need to try lots of combinations of starting and ending addresses for each partition. Additionally it would be extra nice if I could do this with a live cd since I don't have the faulty drive attached to a working computer at the moment.
I was having trouble creating a USB Startup Disk in Ubuntu and used the command:
sudo dd if=/dev/zero of=/dev/sdb bs=1M count=1
This was a mistake as my USB flash drive was on /dev/sdc. If I am understanding this correctly, the command above deleted the MBR and the partition table. This disk had a single "/storage" partition on it. I googled a solution and found that the "testdisk" program seems to be the most popular solution for things like this. I ran it, selected an "Intel/PC partition" type, set the partition to a non-bootable primary Linux partition, wrote it, and rebooted.
Whenever I run:
sudo mount -t ext3 /dev/sdb1 /storage
I get:
mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
Dmesg shows the following:
[20246.273941] EXT3-fs error (device sdb1): ext3_check_descriptors: Block bitmap for group 1 not in group (block 0)! [20246.279376] EXT3-fs: group descriptors corrupted!
When I run:
sudo fdisk -l /dev/sdb
I get:
Disk /dev/sdb: 400.1 GB, 400088457216 bytes 255 heads, 63 sectors/track, 48641 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
I am trying to install Gentoo. Currently I have windows 7 on my primary Hard Drive.I decided to add in a second HDD that I got for free and use linux on that.I got through my entire install and at the end I accidently wrote grub to my second hard drive.When I rebooted it went straight to windows.So I have some questions. When installing to the secondary HDD does my boot partition and swap need to be on sda? or can they reside on sdb?Also I tried to re-issue the grub-install command and it said bash: command not found. How can I get grub to re-install? I tried to emerge it and same issue no command found.Do I need to redo the entire reinstall?My last question is If I have more then enough HDD space how much is too much for linux? Most people say 30 GB is all you need from what I have read but I assume 160 GB is going to go to waste?
I originally had an Ubuntu partition on my hard drive which occupied about half of it. I installed Windows 7 in the remaining unallocated space and I was planning on doing a grub update from a live cd afterwards. BUT when I looked at my partition table, the space where the ubuntu partition used to be is now unallocated space!
I wanted to delete the Snow Leopard partition and format the Swap Disk partition to something else. exFat was causing major file size bloat on small files. QT sdk bloated to like 11 gigs or something ridiculous like that. Anyways, I loaded up an Ubuntu 10.04 LTS live cd and gparted then deleted the Snow Leopard partition. Gparted said "Mission Accomplished" and tried to rescan the drive, but never found it. At this point I restarted the computer, a dell laptop, which didn't boot with an unable to find a bootable device error. The ubuntu live cd doesn't see the drive anymore. gparted scans for drives indefinitely and fdisk -l has no output.
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!
I accidentially overwrote the first 1M of my harddisk on linux (using dd). So, the partition-table is gone. I can still access all partition (except the first one) using /dev/sda2 (and so on), so the data is still there. I only need the partition boundaries to restore the table. How can I do this? The Linux-Kernel must still know them because all mount-points still work. fdisk -l /dev/sda doesn't work because it acctualy reads the partition table.
Purpose: Python, PHP, WebKit (hopefully), and pyqt development. There is Wubi for Ubuntu, which I am using right now. But Ubuntu 11.04 doesn't work well with my system. There is a Wubi like installer for Puppy Linux. There is Debian Win32 installer, but I think that does touch the partition table. My last option is to simply grab Ubuntu 10.04 LTS and hope it works. Would that be a viable solution considering my needs?
Do i have any chances to restore my windows partition table after tried to install debian and i used the entire disk instead of the free space i had alocated for this
after i figured out what i did i stoped the installation but was to late ... i answered yes at write partition table changes on disk question
i tried win7 automate recovery tool from dvd and manual install of mbr with no successful result