Op
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbd72bd72
Device Boot Start End Blocks Id System
/dev/sda1 * 1 7127 57247596 83 Linux
/dev/sda2 7664 9729 16595145 5 Extended
/dev/sda3 7128 7663 4305420 82 Linux swap / Solaris
/dev/sda5 7664 7919 2056288+ 83 Linux
/dev/sda6 7920 9729 14538793+ 83 Linux
Partition table entries are not in disk order
Unable to seek on /dev/sdb
Sorry!!This is showing the wrong hdd.
You really should run fdisk on
sda to correct the partition
order; your
second and
third partitions are
transposed.
[root@littleboy ~]# fdisk /dev/sdaThe number of cylinders for this disk is set to 121601.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): mCommand action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only) <-- This one nextCommand (m for help): xExpert command (m for help): mCommand action
b move beginning of data in a partition
c change number of cylinders
d print the raw data in the partition table
e list extended partitions
f fix partition order <-- This one, to do the job. g create an IRIX (SGI) partition table
h change number of heads
i change the disk identifier
m print this menu
p print the partition table
q quit without saving changes
r return to main menu
s change number of sectors/track
v verify the partition table
w write table to disk and exit
Expert command (m for help): fNothing to do. Ordering is correct already.
I get that because my partitions are already in proper order. You'll probably get nothing returned.Expert command (m for help): rCommand (m for help): pDisk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1047 8305605 82 Linux swap / Solaris
/dev/sda3 1048 7127 48837600 83 Linux
/dev/sda4 7128 108893 817435395 5 Extended
/dev/sda5 7128 20500 107418591 83 Linux
/dev/sda6 20501 33267 102550896 83 Linux
/dev/sda7 33268 37158 31254426 83 Linux
/dev/sda8 37159 41049 31254426 83 Linux
/dev/sda9 41050 44940 31254426 83 Linux
/dev/sda10 44941 48831 31254426 83 Linux
/dev/sda11 48832 61886 104864256 83 Linux
/dev/sda12 61887 101050 314584798+ 83 Linux
/dev/sda13 101051 104942 31262458+ 83 Linux
/dev/sda14 104943 108893 31736376 83 Linux
Command (m for help): If the partitions now show they are in
proper order, as mine do, the
next/last command would be
w write table to disk and exit.
For the
sdb drive, if fdisk can't even seek on it, try running
testdisk to see if it can
discover/recover the previous partitions. Sometimes it can do some pretty amazing stuff. It's a command line tool, so needs to be run in a
root terminal, (like fdisk) but pretty intuitive. Just read the choices and choose what seems appropriate, throughout.