> too.  I could have parted use swap instead of ext2 when creating 
> partitions specifically for use with swap.

I wondered about that myself as well.
It should work:

[EMAIL PROTECTED] root]# parted /dev/sdb mkpart primary linux-swap 1 500
[EMAIL PROTECTED] root]# fdisk -l /dev/sdb

Disk /dev/sdb: 255 heads, 63 sectors, 521 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1             1        64    514048+  82  Linux swap

greetings,

Gerben

--
Linvision HPC BV              tel: +31-15-7502310
Elektronicaweg 16 d       fax: +31-15-7502319
2628 XG Delft             [EMAIL PROTECTED]
The Netherlands           www.linvision.com

[EMAIL PROTECTED] wrote on 10-02-2005 21:42:34:

> Parted is a bit of a strange beast, and doesn't really care what you 
> label the partition when it reports what filesystem type it is. 
> Therefore, if you ask parted about the same disk (parted /dev/cciss/c0d0 

> print), I'll bet it'll say it's a "linux-swap" partition. ;-)
> 
> I'll take a look at the code to see if it makes sense to make a change, 
> too.  I could have parted use swap instead of ext2 when creating 
> partitions specifically for use with swap.
> 
> Cheers, -Brian
> 
> 
> Paul Robertson wrote:
> 
> > We're using systemimager 3.2.0.4, we noticed that the clients' 
> > partition type for the swap partition is being set to "83" instead of 
> > the normal "82":
> >
> > da235:~>fdisk -l /dev/cciss/c0d0
> >
> > Disk /dev/cciss/c0d0: 72.8 GB, 72833679360 bytes
> > 255 heads, 32 sectors/track, 17433 cylinders
> > Units = cylinders of 8160 * 512 = 4177920 bytes
> >
> >            Device Boot Start    End    Blocks   Id  System
> > /dev/cciss/c0d0p1   *      1     38    155024   83  Linux
> > /dev/cciss/c0d0p2         39  16919  68874480   83  Linux
> > /dev/cciss/c0d0p3      16920  17433   2097120   83  Linux
> >
> > It still seems to work ok:
> >
> > da235:~>swapon -s
> > Filename               Type            Size    Used    Priority
> > /dev/cciss/c0d0p3      partition       2097112 42552   -1
> >
> > It seems that the master script is defaulting to "ext2" for all 
> > partitions in parted. This seems to come from the following line from 
> > /usr/lib/systemimager/perl/SystemImager/Server.pm:
> >
> >  $cmd = qq(parted -s -- $devfs_dev mkpart $p_type{$m} ext2 ) .
> >                 q($START_MB $END_MB) . qq( || shellout);
> >
> > I'm wondering if having the swap partition's type set to "83" might 
> > cause problems for the client? Is this an oversight on the part of SI, 

> > or am I missing something?
> >
> > Cheers,
> >
> > Paul
> >
> > P.S. I just checked SI version 3.2.3-1, and the same ext2 default
> >      still seems to apply with that version.
> >
> 
> -- 
> ------------------------------------------------------
>  Brian Elliott Finley           Mobile:  630.631.6621
>  gpg --keyserver wwwkeys.pgp.net --recv-keys 10F8EE52
> ------------------------------------------------------
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Sisuite-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sisuite-users



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to