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: Bernard Li
Subject: RE: Partition(s) on /dev/sda are being used
Date: Thu, 11 May 2006 11:58:40 -0700

BTW this was using the latest stable release of parted, which is
1.6.25.1.

Thanks,

Bernard 

> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden On Behalf Of 
> Bernard Li
> Sent: Wednesday, May 10, 2006 15:07
> To: address@hidden
> 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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-parted
> 




reply via email to

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