bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Partition(s) on /dev/sda are being used


From: leslie . polzer
Subject: Re: Partition(s) on /dev/sda are being used
Date: Mon, 15 May 2006 11:31:34 +0200
User-agent: mutt-ng/devel-r802 (Linux)

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: pgpWb3LXmxME0.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]