On Fri, 02 Aug, at 16:40:22 +1000, Sridhar Dhanapalan <[EMAIL PROTECTED]> wrote:
>
> Secondly, can the rescue disc please include cfdisk instead (or in addition to)
> fdisk? Cfdisk is far easier to understand and use. I haven't used the rescue
> disc in a while, so sorry if cfdisk is already there.
I have to agree here. I just recently came across an instance last
week and once again this week where I needed to use cfdisk to re-arrange
filesystems on boxes at work with hardware RAID. Using any other disk
util, it just doesn't see the /dev/cciss/c0d0p partition table correctly.
Granted, this was on RH 7.2 boxes (which don't come w/ cfdisk) so I had
to scp over the cfdisk binary off of my Mandrake 8.2 laptop install.
For example, here's looking at the disk using fdisk:
---
# fdisk -l /dev/cciss/c0d0
Disk /dev/cciss/c0d0: 1 heads, 177773760 sectors, 1 cylinders
Units = cylinders of 177773760 * 512 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 1 53024 83 Linux
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(0, 0, 33)
Partition 1 has different physical/logical endings:
phys=(12, 254, 32) logical=(0, 0, 106080)
Partition 1 does not end on cylinder boundary:
phys=(12, 254, 32) should be (12, 0, 177773760)
/dev/cciss/c0d0p2 1 1 30718320 83 Linux
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(13, 0, 1) logical=(0, 0, 106081)
Partition 2 has different physical/logical endings:
phys=(1023, 254, 32) logical=(0, 0, 61542720)
Partition 2 does not end on cylinder boundary:
phys=(1023, 254, 32) should be (1023, 0, 177773760)
/dev/cciss/c0d0p3 1 1 2048160 82 Linux swap
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(1023, 254, 32) logical=(0, 0, 61542721)
Partition 3 has different physical/logical endings:
phys=(1023, 254, 32) logical=(0, 0, 65639040)
Partition 3 does not end on cylinder boundary:
phys=(1023, 254, 32) should be (1023, 0, 177773760)
/dev/cciss/c0d0p4 1 1 56067360 f Win95 Ext'd (LBA)
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(1023, 254, 32) logical=(0, 0, 65639041)
Partition 4 has different physical/logical endings:
phys=(1023, 254, 32) logical=(0, 0, 177773760)
Partition 4 does not end on cylinder boundary:
phys=(1023, 254, 32) should be (1023, 0, 177773760)
/dev/cciss/c0d0p5 1 1 1534064 83 Linux
/dev/cciss/c0d0p6 1 1 1024064 83 Linux
/dev/cciss/c0d0p7 1 1 718064 83 Linux
/dev/cciss/c0d0p8 1 1 509984 83 Linux
/dev/cciss/c0d0p9 1 1 509984 83 Linux
/dev/cciss/c0d0p10 1 1 42003584 83 Linux
/dev/cciss/c0d0p11 1 1 9767504 83 Linux
---
And the same disk using cfdisk:
---
Disk Drive: /dev/cciss/c0d0
Size: 91020165120 bytes
Heads: 255 Sectors per Track: 32 Cylinders: 21786
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
c0d0p1 Boot Primary Linux ext3 [/boot] 54.32
c0d0p2 Primary Linux ext3 [/cvsroot] 31455.56
c0d0p3 Primary Linux swap 2097.32
c0d0p5 Logical Linux ext3 [/usr] 1570.90
c0d0p6 Logical Linux ext3 [/var] 1048.66
c0d0p7 Logical Linux ext3 [/] 735.32
c0d0p8 Logical Linux ext3 [/tmp] 522.24
c0d0p9 Logical Linux ext3 [/home] 522.24
c0d0p10 Logical Linux ext3 43011.69
c0d0p11 Logical Linux ext3 10001.95
---
But to make a long story short, if it weren't for cfdisk, we'd be in
pretty bad shape. This was actually the first time I'd used cfdisk, but
I've already copied it over to all of our other boxes. I'd highly
suggest Mandrake include this small 51k util as it has already proven
(to me at least) a life saver.
Cheers,
-Charlie
--
GPG Key fingerprint = 4F36 EC4F 2F2C 5F59 9690 09E5 4C0F 9DB0 8623 53CE
Before you ask more questions, think about whether you really want to
know the answers.
-- Gene Wolfe, "The Claw of the Conciliator"