Um, if the file is filled with all null values, you're not going to be
able to mount it. ANY device must have a filesystem on it to be
mountable. Make a filesystem on /tmp/virtdisk, then mount it. Your mount
statement looks fine to me. It's just that you're missing a filesystem,
hence the error mount returned.
-Matt Stegman
<[EMAIL PROTECTED]>
On Mon, 26 Jun 2000, Iwan van der Kleyn wrote:
> Hi,
>
> I've been trying to mount a file which is associated with a loopback device
> (/dev/loop0). I've tried
> # mount -o loop -t ext2 /tmp/virtdisk /mnt/loopback (where /tmp/virtdisk is
> the file which contains the "virtual disk"; it has a size of 1,44 Mb and is
> filled with null values)
> and after this didn't work I've tried to use losetup:
> # losetup /dev/loop1 /tmp/virtdisk
> # mount -t ext2 /dev/loop1 /mnt/loopback
>
> Both attempts failed with error message:
>
> "mount: wrong fs type, bad option, bad superblock on /dev/loopo or too many
> mounted file systems"
>
> On Red Hat 6.x this worked without a problem, so what am I doing wrong here?
>
> Regards,
>
> Iwan
>