Problem kein loop device unter tmpfs möglich
Pierre Bernhardt
pierre at starcumulus.owl.de
Fri May 10 08:28:02 CEST 2002
Hallo,
hier die Steuerzeichenbereinigte Ausgabe des Problems:
Script started on Thu May 9 19:27:37 2002
starflake:/sbin # uname -a
Linux starflake 2.4.18-64GB-SMP #1 SMP Wed Mar 27 13:58:12 UTC 2002 i686
unknown
starflake:/sbin # cat /etc/SuSE-release
SuSE Linux 8.0 (i386)
VERSION = 8.0
starflake:/sbin # mount
/tmp
tmpfs on /tmp type tmpfs (rw)
starflake:/sbin # grep tmpfs /etc/fstab
tmpfs
/tmp
tmpfs
defaults 0 0
starflake:/sbin # df -k /tmp
Filesystem 1k-blocks Used Available Use% Mounted on
tmpfs 63016 0 63016 0% /tmp
starflake:/sbin # ls /tmp
.
..
starflake:/sbin # mkdir /tmp/test
starflake:/sbin # dd if=/dev/zero of=/tmp/testimage bs=1k count=10000
10000+0 records in
10000+0 records out
starflake:/sbin # mke2fs -q -F -b 1024 -m 0 -N 7000 /tmp/testimage
mke2fs 1.26 (3-Feb-2002)
starflake:/sbin # tune2fs -i 0 /tmp/testimage
tune2fs 1.26 (3-Feb-2002)
Setting interval between check 0 seconds
starflake:/sbin # mount -oloop /tmp/testimage /tmp/test
ioctl: LOOP_SET_FD: Invalid argument
starflake:/sbin # umount tmpfs
starflake:/sbin # ls /tmp
.
.ICE-unix
YaST2-02263
lilo.conf.test
targetMap_s
..
X11-unix
YaST2.tdir
targetMap_e
starflake:/sbin # mount
/dev/hda4 on / type ext3 (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw)
/dev/sr1 on /media/cdchanger type iso9660 (ro,nosuid,nodev)
/dev/sr2 on /media/cdrw0 type iso9660 (ro,nosuid,nodev)
/dev/sr3 on /media/cdrw1 type iso9660 (ro,nosuid,nodev)
/dev/sr4 on /media/dvdrom type iso9660 (ro,nosuid,nodev)
shmfs on /dev/shm type shm (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
starflake:/sbin # df -k /tmp
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda4 6625496 1067196 5221740 17% /
starflake:/sbin # mkdir /tmp/test
starflake:/sbin # dd if=/dev/zero of=/tmp/testimage bs=1k count=10000
10000+0 records in
10000+0 records out
starflake:/sbin # mke2fs -q -F -b 1024 -m 0 -N 7000 /tmp/testimage
mke2fs 1.26 (3-Feb-2002)
starflake:/sbin # tune2fs -i 0 /tmp/testimage
tune2fs 1.26 (3-Feb-2002)
Setting interval between check 0 seconds
starflake:/sbin # mount -o loop /tmp/testimage /tmp/test
starflake:/sbin # df -k /tmp/test
Filesystem 1k-blocks Used Available Use% Mounted on
/tmp/testimage 9115 13 9102 1% /tmp/test
starflake:/sbin # exit
exit
Script done on Thu May 9 19:34:43 2002
Kurz Zusammenfassend:
Das mounten eines Extended-2-FS-Image per loop-Device ist nicht
möglich, wenn das Image innerhalb vom tmpfs liegt.
Nicht geprüft sind andere Filesysteme und tiefere Pfade im tmpfs.
Der Mountpoint spielt keine Rolle habe ich nachträglich getestet.
Vielleicht wirft sich ja mal jemand auf dieses Problem.
MfG...
Pierre Bernhardt
More information about the Linux
mailing list