[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ped_partition_new
From: |
Stephane BRANGER |
Subject: |
Re: ped_partition_new |
Date: |
Tue, 17 Oct 2000 08:25:15 +0200 |
Yes I did ! I solved the pbs with adding :
fs = ped_file_system_create
(&boot_partition->geom,ped_file_system_type_get("ext2"));
Something funny too, I have a scsi disk:
parted /dev/sda print
Disk geometry for /dev/sda: 0-1030,0 megabytes
Minor Start End Type Filesystem Flags
1 0,0 10,0 primary ext2
2 10,0 1029,0 extended
5 10,0 1010,0 logical ext2
6 1010,0 1029,0 logical FAT
and with the previous command I can change to fat system to only the minor 6.
If I try to do that to minor 5 or 1 I get a:
Instruction illégale (core dumped)
Maybe it's linked with the size in add new partion command ??? Moreover I can
do those operatrions with your parted program, so I guess I'm the worst
programmer of the earth ;-)
I will try my program on an other scsi disk.
see ya
> > Then the program delete my partitions, but it refuses to create a new one.
And I > > don't get any errors so what the hell did I forget ???
>
> Well, you need to add the partition to the disk. i.e. do:
>
> ped_disk_add_partition (disk, part);
>
> Did you do this?
>
> BTW: it would be easier if you sent in the relevant code :-)
>
> Good luck :-)
> Andrew Clausen
--
Amicalement,
Stephane BRANGER
******************
* Linux Engineer *
******************
>>>>>>>>TUX POWERED<<<<<<<<<<