null mount/loopback mount

null mount/loopback mount

Post by Benji Spenc » Sun, 04 Jan 1998 04:00:00



I would like to loopback mount a couple of directories on my Redhat
linux (RH 4.2, kernal 2.0.32, mount version 2.51) system. This should
allow me to append a directory into another, right?

according to the manpage, I should be able to do the following..

mount /tmp/zip /mnt/zip -t ext2 -o loop,blocksize=1024

however, it gives me the following error..

/tmp/zip: Is a directory

so I tried this on a file by doign this...

mount /tmp/ben.tmp /mnt/zip -t ext2 -o loop,blocksize=1024

and it gives me this error..

mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       or too many mounted file systems

/tmp/ben.tmp if s file
/tmp/zip is a directory
/mnt/zip is a directory

at this point I am a bit lost. Anyone able to help?

Benji

(:------------------------Benji Spencer----------------------------:)




 
 
 

null mount/loopback mount

Post by Tom Wilso » Sun, 04 Jan 1998 04:00:00


[...]

Quote:> so I tried this on a file by doign this...

> mount /tmp/ben.tmp /mnt/zip -t ext2 -o loop,blocksize=1024

> and it gives me this error..

> mount: wrong fs type, bad option, bad superblock on /dev/loop0,
>        or too many mounted file systems

You need to create the ext2 filesystem within the file:
mke2fs /tmp/ben.tmp

It'll complain that your trying to do this within a file, and ask
if you really want to continue.  Say 'Y', then try mounting it.

--

'"Drink Canada Dry" is a slogan, not a personal challenge'

 
 
 

1. null mounting/loopback mounting

I would like to loopback mount a couple of directories on my Redhat
linux (RH 4.2, kernal 2.0.32, mount version 2.51) system. This should
allow me to append a directory into another, right?

according to the manpage, I should be able to do the following..

mount /tmp/zip /mnt/zip -t ext2 -o loop,blocksize=1024

however, it gives me the following error..

/tmp/zip: Is a directory

so I tried this on a file by doign this...

mount /tmp/ben.tmp /mnt/zip -t ext2 -o loop,blocksize=1024

and it gives me this error..

mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       or too many mounted file systems

/tmp/ben.tmp if s file
/tmp/zip is a directory
/mnt/zip is a directory

at this point I am a bit lost. Anyone able to help?

Benji

(:------------------------Benji Spencer----------------------------:)




2. CDROM drive not read Solaris8 CD

3. The Auto Sleep of Linux??

4. mount error: mount only root can mount /dev/cdrom on cdrom

5. A few questions about R5 and pmacG3 B&W

6. NFS mount won't mount at boot, but mount -a works fine.

7. P: No ftp to Linux system after using NIS

8. mount error: mount only root can mount /dev/cdrom on cdrom

9. unable to mount 'remote' loopback block devices

10. How to mount a file ? (loopback)

11. mounting ISO image through loopback hangs system (Rock Ridge problem?)

12. PROBLEM: loopback block device freezes mount