On Thu, Apr 23, 1998 at 04:07:13PM +1000, Martin Mitchell wrote: > Another thing that caused trouble when I tried installing from the base > disks (1998-04-11) yesterday was a libfdisk error that prevented dinstall > from detecting that a swap partition had been created. An error message > was printed before returning to the dinstall menu, and it came from this > section of libfdisk. > > int sread(int fd, unsigned long sector, void *buffer) > { > if (!sseek( fd, sector )) > return 0; > if (read( fd, buffer, 512 ) != 512) { > fprintf( stderr, "error reading sector %ld", sector ); > perror(""); > return 0; > } > return 1; > } > > I was receiving the message "error reading sector 0" all the time, but > cfdisk handled the partitioning just fine, so I expect this is a problem > in libfdisk or dinstall somewhere. > > I did reboot the machine after the 'partition' step, as suggested by > cfdisk, but even then this error occurred, and when I tried the 'Init > a swap partition step' dinstall reported a strange error message 'No DOS > FAT12 partitions were found that are not already mounted.' This made > no sense at all, as no partitions were yet mounted. (NB the partition > types were set correctly.) > > In the end, I had to dinstall without swap setup, and set it up later > when the base system booted. > > Has anyone else experienced these kind of problems?
Was your swap partition a logical partition? libfdisk had a bug reading extended partitions in big disks. A fixed libfdisk will be included in next boot-floppies release. Thanks, -- Enrique Zanardi [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]