public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Etaoin Shrdlu <shrdlu@unlimitedmail.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Corrupt USB pen drive
Date: Fri, 18 May 2007 11:24:25 +0200	[thread overview]
Message-ID: <200705181124.26063.shrdlu@unlimitedmail.org> (raw)
In-Reply-To: <200705180929.19407.michaelkintzios@gmail.com>

On Friday 18 May 2007 10:29, Mick wrote:

> On Thursday 17 May 2007 23:27, Etaoin Shrdlu wrote:
> > IIRC, that is not the right syntax for mounting a loopback
> > filesystem. If /tmp/r1 is the file containing the filesystem, try
> >
> > mount -o loop /tmp/r1 /mnt/somewhere
> >
> > and make sure you have support for loopback devices in your kernel.
>
> Thanks for all the suggestions.  I tried the correct mount loopback
> command on /dev/loop2 and I'm getting this error that mentions
> /dev/loop0 (how does this work?):
> ======================================
> # mount -t vfat -o loop /dev/loop2 /tmp/r1
> mount: wrong fs type, bad option, bad superblock on /dev/loop0,
>        missing codepage or other error
>        In some cases useful info is found in syslog - try
>        dmesg | tail  or so
> ======================================

You still seem to be missing the correct syntax. (note: this might not 
solve your problem, and even issuing the right command might be of no 
help, but since you asked for it, here it is).

With every mount command, you have to specify at least two things: *what* 
to mount, and *where* to mount it, in this order. *Where* is usually a 
path to some (preferably empty) directory. *what* can be various things, 
depending on what you're trying to mount. For regular disk partitions, 
it's usually a device file (eg, /dev/sda1). For NFS, it's a string of 
the form remote_host:/remote/path. For loopback filesystems (ie, 
filesystems contained in a single file), it's the name of the container 
file, like your /tmp/r1. When mounting loopback filesystems, the "-o 
loop" option must be given. The "-o loop" option accepts some optional 
parameters. One of these is the specification of the loopback device 
that should be used.
To explicitly specify a loopback device, use "-o loop=/dev/loopX". If no 
loopback device is specificed, then mount will automatically pick an 
unused loopback device (probably /dev/loop0). Your command 

# mount -t vfat -o loop /dev/loop2 /tmp/r1

uses an incorrect syntax for the specification of the loopback device 
(which is optional anyway), and does not tell where to mount the 
filesystem. So, what you probably want is

# mount -t vfat -o loop=/dev/loop2 /tmp/r1 /mnt/somewhere

or just simply

# mount -t vfat -o loop /tmp/r1 /mnt/somewhere
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2007-05-18  8:57 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-17 11:36 [gentoo-user] Corrupt USB pen drive Mick
2007-05-17 11:51 ` Elias Probst
2007-05-17 12:56   ` Mick
2007-05-17 14:45 ` Dan Farrell
2007-05-17 15:38   ` Mick
2007-05-17 15:49     ` Dan Farrell
2007-05-17 16:03     ` Tim Allingham
2007-05-17 16:04     ` Mick
2007-05-17 16:25       ` Dan Farrell
2007-05-17 16:26       ` Tim Allingham
2007-05-17 22:27       ` Etaoin Shrdlu
2007-05-18  8:29         ` Mick
2007-05-18  9:24           ` Etaoin Shrdlu [this message]
2007-05-18 11:50             ` Mick
2007-05-18 12:25               ` Hans-Werner Hilse
2007-05-18 13:11                 ` Mick
2007-05-18 14:09                   ` Dan Farrell
2007-05-18 14:48                   ` Hans-Werner Hilse
2007-05-18 15:30                     ` Etaoin Shrdlu
2007-05-18 15:16                   ` Etaoin Shrdlu
2007-05-21  9:47                     ` Mick
2007-05-21 12:30                       ` [gentoo-user] Corrupt USB pen drive [ot] Dan Farrell
2007-05-17 16:35 ` [gentoo-user] Re: Corrupt USB pen drive Francesco Talamona
2007-05-17 21:27 ` [gentoo-user] " Etaoin Shrdlu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200705181124.26063.shrdlu@unlimitedmail.org \
    --to=shrdlu@unlimitedmail.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox