Re: Hard drive issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/04/2015 03:40 PM, Patrick Dupre wrote:
Hello,

I tried to modified a partition table by using fdisk, but it
failed. Now I am in trouble. I setup the disk inside an external usb enclosure
and try to access it.

After I turn the enclosure on, I only have a short time to interact with
the disk (maybe 15 s).
During this time I can make a fdisk and I get:
Omitting partitions after #60. They will be deleted if you save this partition table.

Disk /dev/sdd: 465.8 GiB, 500107862016 bytes, 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
Disklabel type: dos
Disk identifier: 0x000bf5b4

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdd1            4096  26617855  26613760  12.7G  7 HPFS/NTFS/exFAT
/dev/sdd2        26619705  38909429  12289725   5.9G  7 HPFS/NTFS/exFAT
/dev/sdd3        38909430  49142834  10233405   4.9G  7 HPFS/NTFS/exFAT
/dev/sdd4        49142835 976768064 927625230 442.3G  5 Extended
/dev/sdd5        49142898  98301734  49158837  23.5G 82 Linux swap / Solaris
/dev/sdd6        98304000  99327999   1024000   500M 83 Linux
/dev/sdd7        99330048 190466639  91136592  43.5G 83 Linux
/dev/sdd8       190466703 251915264  61448562  29.3G 83 Linux
/dev/sdd9       251915328 309267314  57351987  27.4G 83 Linux
/dev/sdd10      309270528 461461503 152190976  72.6G 83 Linux
/dev/sdd11       98304000  99327999   1024000   500M 83 Linux
/dev/sdd12       99330048 190466639  91136592  43.5G 83 Linux
/dev/sdd13      190466703 251915264  61448562  29.3G 83 Linux
[SNIPPED]
Partition table entries are not in disk order.

Here is the previous partition table:

Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 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
Disklabel type: dos
Disk identifier: 0x000bf5b4

Device     Boot     Start       End    Blocks  Id System
/dev/sdb1            4096  26617855  13306880   7 HPFS/NTFS/exFAT
/dev/sdb2        26619705  38909429   6144862+  7 HPFS/NTFS/exFAT
/dev/sdb3        38909430  49142834   5116702+  7 HPFS/NTFS/exFAT
/dev/sdb4        49142835 976768064 463812615   5 Extended
/dev/sdb5        49142898  98301734  24579418+ 82 Linux swap / Solaris
/dev/sdb6  *     98301798 112647779   7172991  83 Linux
/dev/sdb7       112647843 190466639  38909398+ 83 Linux
/dev/sdb8       190466703 251915264  30724281  83 Linux
/dev/sdb9       251915328 309267314  28675993+ 83 Linux
/dev/sdb10      309270528 461461503  76095488  83 Linux



How, can I fix this partition table (actually only 2 partitions : 6 and 7)
are wrong.

To force the partition table back into that previous state, first
put the following text into a file goodparts.txt :

###################################
unit: sectors

/dev/sde1 : start=     4096, size= 26613760, Id= 7
/dev/sde2 : start= 26619705, size= 12289725, Id= 7
/dev/sde3 : start= 38909430, size= 10233405, Id= 7
/dev/sde4 : start= 49142835, size=927625230, Id= 5
/dev/sde5 : start= 49142898, size= 49158837, Id=82
/dev/sde6 : start= 98301798, size= 14345982, Id=83, bootable
/dev/sde7 : start=112647843, size= 77818797, Id=83
/dev/sde8 : start=190466703, size= 61448562, Id=83
/dev/sde9 : start=251915328, size= 57351987, Id=83
/dev/sde10: start=309270528, size=152190976, Id=83
###################################

Then, start up the drive, and as soon as it becomes ready run:

   sfdisk --force /dev/sdd <goodparts.txt

Be absolutely certain that the drive is coming up as /dev/sdd,
because sfdisk will happily overwrite the partitioning of whatever
drive you say.

--
Bob Nichols     "NOSPAM" is really part of my email address.
                Do NOT delete it.

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux