On Wed, May 10, 2006 at 03:06:37PM -0700, Bernard Li wrote:

> I checked /proc/mounts, /etc/mtab and sda is not referenced there. How
> does parted determine if the partitions are being used or not?
Device: the kernel is asked for this via "stat".
Partition: using the same files you did.

> 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.
Probably.  You could try syncing before using parted.

  Leslie

-- 
gpg --keyserver pgp.mit.edu --recv-keys 0x52D70289
http://nic-nac-project.de/~skypher/

Attachment: pgp4aqEIWwLRd.pgp
Description: PGP signature

_______________________________________________
bug-parted mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-parted

Reply via email to