~pr0gg3d/ubuntu/oneiric/util-linux/bug-805886

« back to all changes in this revision

Viewing changes to mount/losetup.8

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2009-07-16 15:48:23 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090716154823-i26fshvs4v8h90qh
Tags: 2.16-1ubuntu1
* Merge from Debian, remaining changes:
  - Since udev is required in Ubuntu, the hwclock.sh init script is
    not called on startup and the hwclockfirst.sh init script is
    removed.
  - Remove /etc/adjtime on upgrade if it was not used.
  - Install custom blkid.conf to use /dev/.blkid.tab since we don't
    expect device names to survive a reboot
  - No lsb_release call in mount.preinst since we'd need Pre-Depends
    (LP: #383697).

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
.RB [ \-r ]
49
49
.RB { \-f [ \-\-show ] | \fIloopdev\fP }
50
50
.I file
 
51
.sp
51
52
.in -13
 
53
Resize loop device:
 
54
.sp
 
55
.in +5
 
56
.B "losetup \-c"
 
57
.I loopdev
 
58
.in -5
52
59
.ad b
53
60
.SH DESCRIPTION
54
61
.B losetup
75
82
.SH OPTIONS
76
83
.IP "\fB\-a, \-\-all\fP"
77
84
show status of all loop devices
 
85
.IP "\fB\-c, \-\-set-capacity\fP \fIloopdev\fP
 
86
force loop driver to reread size of the file associated with the specified loop device
78
87
.IP "\fB\-d, \-\-detach\fP \fIloopdev\fP [\fIloopdev\fP ...]" 
79
88
detach the file or device associated with the specified loop device(s)
80
89
.IP "\fB\-e, \-E, \-\-encryption \fIencryption_type\fP"
134
143
If you are using the loadable module you must have the module loaded
135
144
first with the command
136
145
.IP
137
 
# insmod loop.o
 
146
# modprobe loop
138
147
.LP
139
148
Maybe also encryption modules are needed.
140
149
.IP
141
 
# insmod des.o
142
 
# insmod cryptoloop.o
 
150
# modprobe des
 
151
# modprobe cryptoloop
143
152
.LP
144
153
The following commands can be used as an example of using the loop device.
145
154
.nf