bug-parted
[Top][All Lists]
Advanced

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

Re: Parted 1.4.0-pre4


From: Ethan Benson
Subject: Re: Parted 1.4.0-pre4
Date: Sat, 21 Oct 2000 17:49:19 -0800
User-agent: Mutt/1.0.1i

On Sat, Oct 21, 2000 at 08:06:07PM +1100, Andrew Clausen wrote:
> Hi all,
> 
> Changes:
> * fixed a bug in libparted/disk_mac.c, that broke mkpart*.  In
> mac_partition_new(), it was checking for failure, but missed out the '!'.
> * fixed the annoying linux-swap on mac bug (it was trying to set the swap
> flag, before setting the partition type to linux-swap, which caused the
> Mac disk label code to complain)

this all works now.  

i did find a bit of a problem, more with the interface:

how do you convert a partition to another type?  it would seem to me
mkfs 6 ext2 should do it, and from what parted displays after doing so
it appears this works, however:

address@hidden /root]# 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                       1639 @ 65      (819.5k) 
 Unknown
/dev/sda3         Apple_UNIX_SVR2 swap                 59736 @ 1705    ( 29.2M) 
 Linux swap
/dev/sda4         Apple_UNIX_SVR2 root                 40959 @ 61442   ( 20.0M) 
 Linux native
/dev/sda5         Apple_UNIX_SVR2                      20479 @ 102402  ( 10.0M) 
 Linux native
/dev/sda6               Apple_HFS                      20479 @ 122882  ( 10.0M) 
 HFS
/dev/sda7         Apple_UNIX_SVR2                      20479 @ 143362  ( 10.0M) 
 Linux native
/dev/sda8               Apple_HFS                      20479 @ 163842  ( 10.0M) 
 HFS

/dev/sda6 is the partition i ran mkfs 6 ext2 on.

parted displays:

(parted) p
Disk geometry for /dev/sda: 0.000-258.207 megabytes
Disk label type: mac
Minor    Start       End     Filesystem  Name                  Flags
1          0.000      0.031              Apple
2          0.032      0.832                                    boot
3          0.833     30.000  linux-swap  swap                  swap
4         30.001     50.000  ext2        root                  root
5         50.001     60.000  ext2
6         60.001     70.000  ext2
7         70.001     80.000  ext2
8         80.001     90.000
(parted)

as far as i can tell partition 6 is ext2, type ext2, however if this
disk is attached to a MacOS system MacOS will ask to erase that
partition.

it is also not clear what type newly created partitions are when using
mkpart instead of mkpartfs:

(parted) mkpart primary ext2 95 100
p(parted) p
Disk geometry for /dev/sda: 0.000-258.207 megabytes
Disk label type: mac
Minor    Start       End     Filesystem  Name                  Flags
1          0.000      0.031              Apple
2          0.032      0.832                                    boot
3          0.833     30.000  linux-swap  swap                  swap
4         30.001     50.000  ext2        root                  root
5         50.001     60.000  ext2
6         60.001     70.000  ext2
7         70.001     80.000  ext2
8         80.001     90.000
9         95.000    100.000
(parted)

it seems parted needs a `type' category to display as well as
filesystem, name and flags.

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

Attachment: pgpuBdWgKVgNO.pgp
Description: PGP signature


reply via email to

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