bug-parted
[Top][All Lists]
Advanced

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

Re: 'parted' 1.4.1 not recognizing partitions. Odd!


From: Andrew Clausen
Subject: Re: 'parted' 1.4.1 not recognizing partitions. Odd!
Date: Wed, 15 Nov 2000 05:27:05 +1100

"David B. Harris" wrote:
> 
> Hey there, here's the output from a few commands:
> 
> Parted version 1.2.10:
> address@hidden /]# /mnt/rescue/usr/bin/parted /dev/hda print
> Disk geometry for /dev/hda: 0-12949.5 megabytes
> Minor   Start     End    Type            Filesystem     Flags
> 2          0.0    117.6  primary         linux-swap
> 3        117.6   8199.8  primary
> 1       8199.8   9200.0  primary         FAT            boot
> 4       9200.0  12949.5  extended
> 5       9200.0  11200.2  logical         ext2
> 6      11200.2  12200.3  logical         ext2
> 7      12200.4  12900.2  logical         ext2
> 8      12900.3  12949.5  logical         ext2
> 
> 'fdisk', included with Red Hat 6.2:
> address@hidden /]# /sbin/fdisk /dev/hda -l
> 
> Disk /dev/hda: 16 heads, 63 sectors, 26310 cylinders
> Units = cylinders of 1008 * 512 bytes
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1   *     16661     18692   1024128    c  Win95 FAT32 (LBA)
> /dev/hda2             1       239    120424+  82  Linux swap
> /dev/hda3           240     16660   8276184   83  Linux
> /dev/hda4         18693     26310   3839472    5  Extended
> /dev/hda5         18693     22756   2048224+  83  Linux
> /dev/hda6         22757     24788   1024096+  83  Linux
> /dev/hda7         24789     26210    716656+  83  Linux
> /dev/hda8         26211     26310     50368+  83  Linux
> 
> Parted 1.4.1, ./configured with --with-readline, --prefix=/usr,
> --sysconfdir=/etc:
> address@hidden /]# parted /dev/hda p
> Disk geometry for /dev/hda: 0.000-12949.453 megabytes
> Disk label type: loop
> Minor    Start       End     Filesystem  Flags
> 1          0.000  12949.453  linux-swap
> 
> Odd, eh? :) Well, here's what the filesystems are:
> hda1: FAT32(duh)
> hda2: Swap
> hda3: ReiserFS
> hda4: Extended partition
> hda5: ext2, rescue partition
> hda6: ext2
> hda7: ext2
> hda8: ext2, /boot.
> 
> Thanks a lot, and lemme know what I can do to help.

Ouch!  This is a nasty co-incidence.  It's detecting a
a linux-swap "filesystem" (hehe) at the start of the disk,
and is getting confused.

I'll change the order of disk label probing, so it finds the
MSDOS on first.

You can work around the problem by zero-ing out the linux-swap
partition (obviously, you won't be able to use it as a linux-swap
partition, until you run mkswap on it again, later).  To do this,
do:

        # dd if=/dev/zero of=/dev/hda2 bs=1k count=8

Thanks for the bug report!
Andrew Clausen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]