bug-parted
[Top][All Lists]
Advanced

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

more parted bugs


From: Ethan Benson
Subject: more parted bugs
Date: Tue, 31 Oct 2000 04:51:46 -0900
User-agent: Mutt/1.0.1i

Hi, 

just found a nasty bug in parted, it creates too many Apple_Free
partitions, actually this could be a more generic problem that its
currently impossible to create perfectly contigious partitions with
parted.  (you need my mkpart primary ext2 - 50 trick for that) 

this is bad because when i created 9 partitions i ended up with 17,
which overflows the limits of scsi so the kernel assigned the last two
to /dev/sdb and /dev/sdb1 !

# mac-fdisk -l /dev/sda
/dev/sda
        #                    type name                length   base    ( size ) 
 system
/dev/sda1     Apple_partition_map Apple                   64 @ 1       ( 32.0k) 
 Partition map
/dev/sda2         Apple_Bootstrap bootstrap             1984 @ 65      (992.0k) 
 Unknown
/dev/sda3         Apple_UNIX_SVR2 root                 79871 @ 2050    ( 39.0M) 
 Linux native
/dev/sda4         Apple_UNIX_SVR2 /usr                 40959 @ 81922   ( 20.0M) 
 Linux native
/dev/sda5         Apple_UNIX_SVR2 /var                 20479 @ 122882  ( 10.0M) 
 Linux native
/dev/sda6         Apple_UNIX_SVR2 /home                40959 @ 143362  ( 20.0M) 
 Linux native
/dev/sda7         Apple_UNIX_SVR2 /tmp                 10239 @ 184322  (  5.0M) 
 Linux native
/dev/sda8         Apple_UNIX_SVR2 swap                 10239 @ 194562  (  5.0M) 
 Linux swap
/dev/sda9               Apple_HFS macos               102399 @ 204802  ( 50.0M) 
 HFS
/dev/sda10             Apple_Free Extra                    1 @ 2049    (  0.5k) 
 Free space
/dev/sda11             Apple_Free Extra                    1 @ 81921   (  0.5k) 
 Free space
/dev/sda12             Apple_Free Extra                    1 @ 122881  (  0.5k) 
 Free space
/dev/sda13             Apple_Free Extra                    1 @ 143361  (  0.5k) 
 Free space
/dev/sda14             Apple_Free Extra                    1 @ 184321  (  0.5k) 
 Free space
/dev/sda15             Apple_Free Extra                    1 @ 194561  (  0.5k) 
 Free space
/dev/sda16             Apple_Free Extra                    1 @ 204801  (  0.5k) 
 Free space
/dev/sda17             Apple_Free Extra               221607 @ 307201  (108.2M) 
 Free space

Block size=512, Number of Blocks=528808
DeviceType=0x0, DeviceId=0x0


here is the exact same partition table created by mac-fdisk:

Command (? for help): p
/dev/sda
        #                    type name                length   base    ( size ) 
 system
/dev/sda1     Apple_partition_map Apple                   63 @ 1       ( 31.5k) 
 Partition map
/dev/sda2              Apple_Free Extra                    1 @ 64      (  0.5k) 
 Free space
/dev/sda3         Apple_Bootstrap bootstrap             1984 @ 65      (992.0k) 
 Unknown
/dev/sda4              Apple_Free Extra                    1 @ 2049    (  0.5k) 
 Free space
/dev/sda5         Apple_UNIX_SVR2 root                 79871 @ 2050    ( 39.0M) 
 Linux native
/dev/sda6              Apple_Free Extra                    1 @ 81921   (  0.5k) 
 Free space
/dev/sda7         Apple_UNIX_SVR2 /usr                 40959 @ 81922   ( 20.0M) 
 Linux native
/dev/sda8              Apple_Free Extra                    1 @ 122881  (  0.5k) 
 Free space
/dev/sda9         Apple_UNIX_SVR2 /var                 20479 @ 122882  ( 10.0M) 
 Linux native
/dev/sda10             Apple_Free Extra                    1 @ 143361  (  0.5k) 
 Free space
/dev/sda11        Apple_UNIX_SVR2 /home                40959 @ 143362  ( 20.0M) 
 Linux native
/dev/sda12             Apple_Free Extra                    1 @ 184321  (  0.5k) 
 Free space
/dev/sda13        Apple_UNIX_SVR2 /tmp                 10239 @ 184322  (  5.0M) 
 Linux native
/dev/sda14             Apple_Free Extra                    1 @ 194561  (  0.5k) 
 Free space
/dev/sda15        Apple_UNIX_SVR2 swap                 10239 @ 194562  (  5.0M) 
 Linux swap
/dev/sda16             Apple_Free Extra                    1 @ 204801  (  0.5k) 
 Free space
/dev/sda17              Apple_HFS macos               102399 @ 204802  ( 50.0M) 
 HFS
/dev/sda18             Apple_Free Extra               221607 @ 307201  (108.2M) 
 Free space

Block size=512, Number of Blocks=528808
DeviceType=0x0, DeviceId=0x0

Command (? for help):

same number of partitions (except for the one between map and
bootstrap, thats because your partition table is one block longer...)

so i guess making perfectly contigious partition tables is more
important then just being a pedant afterall ;-)

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgppwdR80HSuI.pgp
Description: PGP signature


reply via email to

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