BTW this was using the latest stable release of parted, which is 1.6.25.1. Thanks,
Bernard > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Bernard Li > Sent: Wednesday, May 10, 2006 15:07 > To: [email protected] > Subject: Partition(s) on /dev/sda are being used > > Hello list: > > I'm one of the developers of the SystemImager project: > > http://wiki.sisuite.org/ > > SystemImager is an OS-imaging tool and we use parted to > partition disks > prior to imaging. > > We recently encountered an issue with parted and was wondering if the > developers can give us a hand. > > While partitioning a disk (say sda), parted thinks that the partitions > are being used but in actual fact, it's not - here's the > message we got: > > parted -s -- /dev/sda mklabel msdos || shellout > Warning: Partitions(s) on /dev/sda are being used. > Killing off running processes. > > I checked /proc/mounts, /etc/mtab and sda is not referenced > there. How > does parted determine if the partitions are being used or not? > > The way we perform imaging is we first boot the system into an initial > ramdisk which we create, and the /dev comes from there. Currently, we > prepare the ramdisk from a live Linux system and /dev is > populated via: > > print ">>> Copying contents of /dev to new initrd...\n" if( > $verbose ); > $cmd = qq(rsync -a /dev/ $staging_dir/dev/); > !system( $cmd ) or die( "Couldn't $cmd." ); > > So I wonder if /dev/sda rsynced this way is causing parted to behave > strangely. > > Hopefully somebody can shed some light into this. If any part is > unclear, please let me know. > > Thanks in advance! > > Bernard > > > _______________________________________________ > bug-parted mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/bug-parted > _______________________________________________ bug-parted mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-parted
