sfdisk buffer overflow failure under FC4

Hugh Jennings hugh at photosat.ca
Mon Jul 11 17:08:02 UTC 2005


Hi,

I am hoping I can get some help.  I had created a simple series of 
scripts to do backups to USB hard drives under a 2.5 kernel.  Since 
moving to FC4 the recognition of the USB drivces is much more robust, 
but one important part fails.  The users doing the backups are not sys 
admins and need some help partioning and creating file systems. I 
created a very simple script to automate this. Unfortunately the key 
element, the sfdisk command, does not work under FC4.

I have tried the command from a shell prompt and I get the same error. I 
can use sfdisk to interogate the disk but I can not use it to create the 
partition it always fails. below is an example of the error message I get.

Disk /dev/sda doesn't contain a valid partition table
Disk is not partitioned. Running sfdisk Checking that no-one is using 
this disk right now ...
OK

sfdisk: ERROR: sector 0 does not have an msdos signature
 /dev/sda: unrecognized partition table type
No partitions found
*** buffer overflow detected ***: sfdisk terminated
======= Backtrace: =========
/lib/libc.so.6(__chk_fail+0x41)[0x2e4565]
sfdisk[0x804c563]
sfdisk[0x804d805]
sfdisk[0x804eaba]
/lib/libc.so.6(__libc_start_main+0xc6)[0x21ade6]
sfdisk[0x8048dc1]
======= Memory map: ========
001e8000-00202000 r-xp 00000000 fd:00 7275549    /lib/ld-2.3.5.so
00202000-00203000 r-xp 00019000 fd:00 7275549    /lib/ld-2.3.5.so
00203000-00204000 rwxp 0001a000 fd:00 7275549    /lib/ld-2.3.5.so
00206000-0032a000 r-xp 00000000 fd:00 7275550    /lib/libc-2.3.5.so
0032a000-0032c000 r-xp 00124000 fd:00 7275550    /lib/libc-2.3.5.so
0032c000-0032e000 rwxp 00126000 fd:00 7275550    /lib/libc-2.3.5.so
0032e000-00330000 rwxp 0032e000 00:00 0
00cfd000-00d06000 r-xp 00000000 fd:00 7275557    
/lib/libgcc_s-4.0.0-20050520.so.1
00d06000-00d07000 rwxp 00009000 fd:00 7275557    
/lib/libgcc_s-4.0.0-20050520.so.1
00ffb000-00ffc000 r-xp 00ffb000 00:00 0
08048000-08053000 r-xp 00000000 fd:00 19824820   /sbin/sfdisk
08053000-08054000 rw-p 0000b000 fd:00 19824820   /sbin/sfdisk
08054000-0805e000 rw-p 08054000 00:00 0
08432000-08453000 rw-p 08432000 00:00 0          [heap]
b7d21000-b7d22000 rw-p b7d21000 00:00 0
b7d22000-b7f22000 r--p 00000000 fd:00 461728     
/usr/lib/locale/locale-archive
b7f22000-b7f23000 rw-p b7f22000 00:00 0
b7f2c000-b7f2d000 rw-p b7f2c000 00:00 0
bfc17000-bfc2d000 rw-p bfc17000 00:00 0          [stack]
sh: line 1: 31164 Aborted                 sfdisk /dev/sda </tmp/partition
device is /dev/sda1


Are there any alternatives to sfdisk?

Thanks for any help I receive

Hugh
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: partition
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050711/c03fc1c3/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: usb_initialize
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050711/c03fc1c3/attachment-0003.ksh>


More information about the fedora-list mailing list