Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#19 livecd problems

closed-fixed
None
5
2009-04-23
2008-08-06
Bugs Bunny
No

Scramdisk for Linux was tested on a number of live CDs.
It worked faultlessly while the container file resided on external storage, but anomalies were observed when keeping it in the home directory.

For these tests, a 30 MB container file, created using Windows compatibility mode, was used. Hardware was an older single CPU Toshiba laptop. The test sequence consisted in mounting via the gui, reading and writing to the mounted filesystem, and unmounting via the gui.

Results:

Kubuntu 7.04
ScramDisk Version 1.1 installed from file ScramDisk_1.1-0_Ubuntu-7.04_2.6.20_i386.deb, using dpkg --force-all
Mount attept results in a beep, then the gui freezes.
Output from dmesg:
[ 784.728000] scramdisk: slot 1 opened
[ 784.796000] BUG: unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 784.796000] printing eip:
[ 784.796000] 00000000
[ 784.796000] *pde = 00000000
[ 784.796000] Oops: 0000 [#1]
[ 784.796000] SMP
[ 784.796000] Modules linked in: ext3 jbd mbcache pata_pcmcia scramdisk nls_iso8859_1 vfat fat sg sd_mod usb_storage libusual rfcomm l2cap bluetooth ipv6 ppdev lp cpufreq_userspace cpufreq_stats cpufreq_powersave cpufreq_ondemand freq_table cpufreq_conservative tc1100_wmi sony_acpi pcc_acpi dev_acpi video toshiba_acpi sbs i2c_ec dock container button battery asus_acpi backlight ac fuse joydev pcmcia snd_ali5451 snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss parport_pc parport snd_seq_midi snd_rawmidi snd_seq_midi_event irda crc_ccitt pcspkr psmouse serio_raw yenta_socket snd_seq i2c_ali1535 i2c_ali15x3 i2c_core rsrc_nonstatic snd_timer snd_seq_device snd shpchp soundcore snd_page_alloc pcmcia_core pci_hotplug ali_agp agpgart af_packet evdev tsdev squashfs loop unionfs nls_cp437 isofs ide_cd cdrom ata_generic libata scsi_mod generic floppy e100 mii alim15x3 ohci_hcd usbcore thermal processor fan fbcon tileblit font bitblit softcursor vesafb capability commoncap
[ 784.796000] CPU: 0
[ 784.796000] EIP: 0060:[<00000000>] Not tainted VLI
[ 784.796000] EFLAGS: 00010256 (2.6.20-15-generic #2)
[ 784.796000] EIP is at 0x0
[ 784.796000] eax: d6a536e0 ebx: e014c680 ecx: 00000400 edx: d44e5f8c
[ 784.796000] esi: d6a536e0 edi: ddc05a40 ebp: 00000000 esp: d44e5f5c
[ 784.796000] ds: 007b es: 007b ss: 0068
[ 784.796000] Process scramdisk01 (pid: 8120, ti=d44e4000 task=d2df0050 task.ti=d44e4000)
[ 784.796000] Stack: e04af897 e04aff40 d44e5f68 e04dd9cc c12a1700 00000400 00000000 00000006
[ 784.796000] 00000000 00002c00 00000000 e04afa6f 00002c00 00000000 ddc05a40 dac20e00
[ 784.796000] e04dd9cc 00000000 e04dd9cc dac20e00 e04dd9f8 e04dd9ec e04b0d82 e04d65c6
[ 784.796000] Call Trace:
[ 784.796000] [<e04af897>] scramdisk_receive+0x67/0xb0 [scramdisk]
[ 784.796000] [<e04aff40>] scramdisk_read_actor+0x0/0x150 [scramdisk]
[ 784.796000] [<e04afa6f>] scramdisk_read+0x8f/0xd0 [scramdisk]
[ 784.796000] [<e04b0d82>] scramdisk_thread+0x1a2/0x1e0 [scramdisk]
[ 784.796000] [<e04b0be0>] scramdisk_thread+0x0/0x1e0 [scramdisk]
[ 784.796000] [<c01044c7>] kernel_thread_helper+0x7/0x10
[ 784.796000] =======================
[ 784.796000] Code: Bad EIP value.
[ 784.796000] EIP: [<00000000>] 0x0 SS:ESP 0068:d44e5f5c
[ 784.796000]

===============================================================================================

Sidux 2007
Kernel version: 2.6.21.3-slh-smp-4
ScramDisk Version 1.1 compiled from source.
Mounted successfully.
Unmounting after write fails, gui freezes.
Output from dmesg:
BUG: unable to handle kernel NULL pointer dereference at virtual address 00000000
printing eip:
00000000
*pde = 00000000
Oops: 0000 [#1]
PREEMPT SMP
Modules linked in: minix reiserfs ext3 jbd ide_disk pata_pcmcia ide_cs scramdisk button ac battery cryptoloop aes freq_table capability commoncap joydev irda parport_pc parport snd_ali5451 crc_ccitt snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss serio_raw psmouse snd_pcm snd_timer snd pcspkr yenta_socket rsrc_nonstatic i2c_ali15x3 i2c_ali1535 i2c_core soundcore snd_page_alloc shpchp pci_hotplug ali_agp evdev aufs squashfs loop nls_iso8859_1 nls_cp437 vfat fat sg sr_mod sd_mod usb_storage libusual ide_cd cdrom generic floppy alim15x3 ide_core e100 mii ata_generic ohci_hcd usbcore ssb pcmcia pcmcia_core thermal processor fan
CPU: 0
EIP: 0060:[<00000000>] Not tainted VLI
EFLAGS: 00010206 (2.6.21.3-slh-smp-4 #1)
EIP is at _stext+0x3fefed10/0x20
eax: ca46dde0 ebx: e049eda0 ecx: 00000a00 edx: c11424c0
esi: e049eda0 edi: dece2770 ebp: 00000000 esp: ca599f3c
ds: 007b es: 007b fs: 00d8 gs: 0000 ss: 0068
Process scramdisk01 (pid: 3420, ti=ca598000 task=cb324030 task.ti=ca598000)
Stack: e05e9d11 00000c00 dece2764 decca070 dece2770 e06176d4 00000c00 00000200
00000200 00000a00 00000042 c11424c0 ca46dde0 cf4a525c e049eda0 00000200
00042a00 00000000 dece2770 00000000 e05e9eb5 00042a00 00000000 dece2770
Call Trace:
[<e05e9d11>] scramdisk_send+0x171/0x270 [scramdisk]
[<e05e9eb5>] scramdisk_write+0xa5/0xf0 [scramdisk]
[<e05ead45>] scramdisk_thread+0x1c5/0x1e0 [scramdisk]
[<c013b420>] autoremove_wake_function+0x0/0x50
[<e05eab80>] scramdisk_thread+0x0/0x1e0 [scramdisk]
[<c0104e53>] kernel_thread_helper+0x7/0x14
=======================
Code: Bad EIP value.
EIP: [<00000000>] _stext+0x3fefed10/0x20 SS:ESP 0068:ca599f3c

===============================================================================================

Sidux 2008-01 nyx:
Kernel Version: 2.6.24-4.slh.5-sidux-686
ScramDisk Version 1.3 installed from source
Mounted successfully.
Unmounting after write fails, gui freezes.
Output from dmesg:
BUG: unable to handle kernel NULL pointer dereference at virtual address 00000000
printing eip: 00000000 *pde = 00000000
Oops: 0000 [#1] PREEMPT SMP
Modules linked in: ntfs minix reiserfs ext3 jbd scramdisk ide_disk pata_pcmcia ide_cs ide_core nls_iso8859_1 nls_cp437 vfat fat sd_mod usb_storage libusual cpufreq_stats cpufreq_powersave cpufreq_ondemand freq_table cpufreq_conservative lp parport_pc parport fuse joydev snd_ali5451 snd_ac97_codec ac97_bus snd_pcm_oss snd_pcm irda snd_mixer_oss crc_ccitt psmouse evdev serio_raw pcspkr snd_seq_dummy video output snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq battery ac button snd_timer snd_seq_device i2c_ali15x3 snd soundcore i2c_ali1535 snd_page_alloc yenta_socket rsrc_nonstatic i2c_core shpchp ali_agp pci_hotplug aufs squashfs loop nls_utf8 dm_mirror dm_snapshot dm_mod sg sr_mod cdrom floppy ata_generic e100 mii pata_ali pata_acpi ohci_hcd libata usbcore ssb pcmcia pcmcia_core thermal processor fan

Pid: 3624, comm: scramdisk01 Not tainted (2.6.24-2.6.24.4.slh.5-sidux-686 #1)
EIP: 0060:[<00000000>] EFLAGS: 00010206 CPU: 0
EIP is at _stext+0x3feff000/0x20
EAX: dd8c7f00 EBX: 00000000 ECX: 00000a00 EDX: c10a2620
ESI: c10a2620 EDI: cbd1873c EBP: e04c7b00 ESP: dee8def8
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Process scramdisk01 (pid: 3624, ti=dee8c000 task=dba19080 task.ti=dee8c000)
Stack: c0165454 00000c00 b135c108 0000008a 000a0fad c13fb338 e077baa4 00000000
dd8c7f00 00000042 cbd18688 00000200 00000a00 dee8df70 00000200 e0750af6
00042a00 00000000 00000200 00000000 dee8df74 dee8df70 c0334a89 de49cb60
Call Trace:
[<c0165454>] pagecache_write_begin+0x104/0x170
[<e0750af6>] scramdisk_send+0x96/0x220 [scramdisk]
[<c0334a89>] schedule+0x229/0x6f0
[<c01b1a20>] mpage_end_io_read+0x0/0x70
[<e0750d0f>] scramdisk_write+0x8f/0xe0 [scramdisk]
[<e0751eef>] scramdisk_thread+0x24f/0x2e0 [scramdisk]
[<c013ca90>] autoremove_wake_function+0x0/0x40
[<e0751ca0>] scramdisk_thread+0x0/0x2e0 [scramdisk]
[<c0105013>] kernel_thread_helper+0x7/0x14
=======================
Code: Bad EIP value.
EIP: [<00000000>] _stext+0x3feff000/0x20 SS:ESP 0068:dee8def8
---[ end trace 831a23ff9adec580 ]---
root@sidux:~#

===============================================================================================

DreamLinux 3.1
Kernel Version: 2.6.23.12-dream
ScramDisk Version 1.2 installed from source
Mounting fails with message from gui: "Could not mount device: Input/output error"

Same result with ScramDisk Version 1.3

===============================================================================================

Ubuntu 8.04
Installed from file: ScramDisk_1.3-0_Ubuntu-8.04_2.6.24_i386.deb after
having previously installed libaudio2_1.9.1-1_i386 and libqt3-mt_3.3.8-b-0ubuntu3_i386

Gui message: "Could not mount device: Input/output error"
This message does not appear if "none (don't mount)" is checked under "File System"

dmesg output:

[ 1346.708851] slot 1 not mounted
[ 1346.710199] slot 2 not mounted
[ 1346.711371] slot 3 not mounted
[ 1346.712675] slot 4 not mounted
[ 1346.714164] slot 5 not mounted
[ 1346.716000] slot 6 not mounted
[ 1346.717665] slot 7 not mounted
[ 1346.719568] slot 8 not mounted
[ 1346.721335] slot 9 not mounted
[ 1346.722594] slot 10 not mounted
[ 1346.723842] slot 11 not mounted
[ 1346.725021] slot 12 not mounted
[ 1346.726159] slot 13 not mounted
[ 1346.727305] slot 14 not mounted
[ 1346.728570] slot 15 not mounted
[ 1379.282679] slot 1 not mounted
[ 1379.284508] slot 2 not mounted
[ 1379.286041] slot 3 not mounted
[ 1379.287572] slot 4 not mounted
[ 1379.289563] slot 5 not mounted
[ 1379.291740] slot 6 not mounted
[ 1379.293762] slot 7 not mounted
[ 1379.296024] slot 8 not mounted
[ 1379.298122] slot 9 not mounted
[ 1379.299860] slot 10 not mounted
[ 1379.301364] slot 11 not mounted
[ 1379.302976] slot 12 not mounted
[ 1379.304417] slot 13 not mounted
[ 1379.305925] slot 14 not mounted
[ 1379.307561] slot 15 not mounted
[ 1412.712465] scramdisk: mounting container read/write
[ 1412.716377] Scramdisk: Container mounted, Digest: SHA1, Cipher: Blowfish
[ 1412.718165] scramdisk: slot 1 opened (1)
[ 1412.719150] EXT3-fs: unable to read superblock
[ 1412.719886] scramdisk: slot 1 released (0)
[ 1412.720842] scramdisk: slot 1 opened (1)
[ 1412.721763] EXT2-fs: unable to read superblock
[ 1412.722552] scramdisk: slot 1 released (0)
[ 1412.723511] scramdisk: slot 1 opened (1)
[ 1412.724309] ReiserFS: scramdisk/vol01: warning: sh-2006: read_super_block: bread failed (dev scramdisk/vol01, block 4, size 2048)
[ 1412.725168] ReiserFS: scramdisk/vol01: warning: sh-2006: read_super_block: bread failed (dev scramdisk/vol01, block 32, size 2048)
[ 1412.725187] ReiserFS: scramdisk/vol01: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on scramdisk/vol01
[ 1412.726674] scramdisk: slot 1 released (0)
[ 1412.727645] scramdisk: slot 1 opened (1)
[ 1412.728526] MINIX-fs: unable to read superblock
[ 1412.729208] scramdisk: slot 1 released (0)
[ 1412.730453] scramdisk: slot 1 opened (1)
[ 1412.731358] NTFS-fs error (device scramdisk/vol01): read_ntfs_boot_sector(): Unable to read primary boot sector.
[ 1412.731383] NTFS-fs error (device scramdisk/vol01): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
[ 1412.731393] NTFS-fs error (device scramdisk/vol01): ntfs_fill_super(): Not an NTFS volume.
[ 1412.733077] scramdisk: slot 1 released (0)
[ 1412.734338] scramdisk: slot 1 opened (1)
[ 1412.735261] FAT: unable to read boot sector
[ 1412.735951] scramdisk: slot 1 released (0)
[ 1412.736965] scramdisk_umount: slot 1 unmounted

===============================================================================================

Knoppix 5.3.1
Kernel Version: 2.6.24.4
ScramDisk Version 1.3 installed from source.
Mounted successfully.
Unmounting attempt after write leads to message from gui: "Container seems not to be mounted" (filename follows)
However, "sdumount -mnt" successfully unmounts the container file.

===============================================================================================

Live CDs that did not show any of this behaviour:
Kanotix Thorhammer RC7 (Kernel Version 2.6.24-3-kanotix), ScramDisk Version 1.3
Kanotix Thorhammer RC6 (Kernel Version 2.6.22), ScramDisk Version 1.1
Knoppix 5.2 (Kernel Version 2.6.19.5) and earlier Knoppix CDs, ScramDisk Version 1.1
Puppy Linux 4.0, Kernel Version 2.6.21.7, ScramDisk Version 1.1

Despite these little anomalies, ScramDisk for Linux is a great programme!

Related

Bugs: #1

Discussion

  • Logged In: YES
    user_id=1281148
    Originator: NO

    The problems seem to be due to a container residing on a tmpfs file system.
    This isn't a common use case of ScramDisk for Linux and hasn't been tested before.
    None the less, thanks for the bug report.
    I'll see wether it could be fixed with the next version.

     
    • assigned_to: nobody --> huj
     
    • status: open --> closed-fixed
     
  • The unionfs and aufs file systems can't handle loop back mounting of files.
    Since SD4L uses the technology of the loop back device it can't handle this either.
    Therefore, we check for theses file systems and disable mounting containers
    which are located on theses file systems.