FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 08-17-2011, 05:40 PM
Ritesh Raj Sarraf
 
Default Add kpartx example to manpage

From: Ritesh Raj Sarraf <rrs@researchut.com>

Thanks: Lars Wirzenius
Closes: 637538

Signed-off-by: Ritesh Raj Sarraf <rrs@debian.org>
---
kpartx/kpartx.8 | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/kpartx/kpartx.8 b/kpartx/kpartx.8
index 5d73d31..795a2e0 100644
--- a/kpartx/kpartx.8
+++ b/kpartx/kpartx.8
@@ -34,6 +34,26 @@ force GUID partition table (GPT)
.TP
.B -v
Operate verbosely
+.SH EXAMPLE
+To mount all the partitions in a raw disk image:
+.IP
+kpartx -av disk.img
+.PP
+This will output lines such as:
+.IP
+loop3p1 : 0 20964762 /dev/loop3 63
+.PP
+The
+.I loop3p1
+is the name of a device file under
+.I /dev/mapper
+which you can use to access the partition, for example to fsck it:
+.IP
+fsck /dev/mapper/loop3p1
+.PP
+When you're done, you need to remove the devices:
+.IP
+kpartx -d disk.img
.SH "SEE ALSO"
.BR multipath (8)
.BR multipathd (8)
--
1.7.5.4

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 08-22-2011, 01:51 PM
Christophe Varoqui
 
Default Add kpartx example to manpage

On mer., 2011-08-17 at 23:10 +0530, Ritesh Raj Sarraf wrote:
> From: Ritesh Raj Sarraf <rrs@researchut.com>
>
> Thanks: Lars Wirzenius
> Closes: 637538
>
Merged,

Thanks,
--
Christophe Varoqui
OpenSVC - Tools to scale
http://www.opensvc.com/

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 10:41 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org