1 |
On Friday 18 May 2007 10:29, Mick wrote: |
2 |
|
3 |
> On Thursday 17 May 2007 23:27, Etaoin Shrdlu wrote: |
4 |
> > IIRC, that is not the right syntax for mounting a loopback |
5 |
> > filesystem. If /tmp/r1 is the file containing the filesystem, try |
6 |
> > |
7 |
> > mount -o loop /tmp/r1 /mnt/somewhere |
8 |
> > |
9 |
> > and make sure you have support for loopback devices in your kernel. |
10 |
> |
11 |
> Thanks for all the suggestions. I tried the correct mount loopback |
12 |
> command on /dev/loop2 and I'm getting this error that mentions |
13 |
> /dev/loop0 (how does this work?): |
14 |
> ====================================== |
15 |
> # mount -t vfat -o loop /dev/loop2 /tmp/r1 |
16 |
> mount: wrong fs type, bad option, bad superblock on /dev/loop0, |
17 |
> missing codepage or other error |
18 |
> In some cases useful info is found in syslog - try |
19 |
> dmesg | tail or so |
20 |
> ====================================== |
21 |
|
22 |
You still seem to be missing the correct syntax. (note: this might not |
23 |
solve your problem, and even issuing the right command might be of no |
24 |
help, but since you asked for it, here it is). |
25 |
|
26 |
With every mount command, you have to specify at least two things: *what* |
27 |
to mount, and *where* to mount it, in this order. *Where* is usually a |
28 |
path to some (preferably empty) directory. *what* can be various things, |
29 |
depending on what you're trying to mount. For regular disk partitions, |
30 |
it's usually a device file (eg, /dev/sda1). For NFS, it's a string of |
31 |
the form remote_host:/remote/path. For loopback filesystems (ie, |
32 |
filesystems contained in a single file), it's the name of the container |
33 |
file, like your /tmp/r1. When mounting loopback filesystems, the "-o |
34 |
loop" option must be given. The "-o loop" option accepts some optional |
35 |
parameters. One of these is the specification of the loopback device |
36 |
that should be used. |
37 |
To explicitly specify a loopback device, use "-o loop=/dev/loopX". If no |
38 |
loopback device is specificed, then mount will automatically pick an |
39 |
unused loopback device (probably /dev/loop0). Your command |
40 |
|
41 |
# mount -t vfat -o loop /dev/loop2 /tmp/r1 |
42 |
|
43 |
uses an incorrect syntax for the specification of the loopback device |
44 |
(which is optional anyway), and does not tell where to mount the |
45 |
filesystem. So, what you probably want is |
46 |
|
47 |
# mount -t vfat -o loop=/dev/loop2 /tmp/r1 /mnt/somewhere |
48 |
|
49 |
or just simply |
50 |
|
51 |
# mount -t vfat -o loop /tmp/r1 /mnt/somewhere |
52 |
-- |
53 |
gentoo-user@g.o mailing list |