Loopback files on a FAT based Filesystem?


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Loopback files on a FAT based Filesystem?
# 1  
Old 01-24-2007
Loopback files on a FAT based Filesystem?

I'm trying to set up a set of loopback files on a digital music player so I can carry a QEMU virtual machine with me. The digital music player in question is the Rio Karma and the filesystem it uses is omfs. Based on what I read at the Rio Karma FS page: http://linux-karma.sourceforge.net/rio-usb.html it would appear that omfs is based on FAT. One of the things that also seems to support this is that I wasn't able to create loopback files larger than 2 gigs on the filesystem.

The other point to note is that I am coupling omfs with a fuse userspace filesystem 'lkarmafs' which allows one to mount the Karma in "Taxi" mode. This provides a location in <base mount point>/taxi/ that you can carry regular files in. I am able to create loopback files here, but I can't seem to use them as I would if they were on an ext3 or reiserfs partition. So I tried a new approach and create my files at an appropriate size on a ext3 partition. I then prepped them (fdisk/lvm/format) and made sure they stayed below the 2 gig limit. I then copied them to the taxi folder. All of this seemed to work fine.

As soon as I pointed QEMU at those files it complains that it can't read the first file passed to it. But it reads the same exact file on ext3 just fine. So I suspect there is some limitation of either lkarmafs, fuse, omfs or even FAT that prevents proper access to the files. I post this mostly because I'm wondering if any one has any suggestions regarding loopback files on non-Unix filesystems. Perhaps there is an inherent limitation in FAT that prevent loopback from working right? Maybe I created them improperly? Here is the dd command I used:

Code:
dd if=/dev/zero bs=1024 count=2097152 of=1.img

Maybe I should have used 512 for bs? Or am I just barking up the wrong tree and there are too many possible causes to really investigate?
# 2  
Old 01-25-2007
The maximum file size of a FAT file system is 4GB, and if someone uses a signed type, it halves again to 2GB. I'm not surprised you're hitting limits.

That, and FAT filesystems aren't a good match to UNIX file access in the first place; wonky access permissions, multiple kinds of file names and wonky restrictions on file names, the division between "name" and "extension", these strange "hidden" flags, and so forth. You usually can't execute files from a FAT filesystem under UNIX, since FAT has no executable bit. It just disallows it, even when the permissions look like rwx.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Creating fat files: Lipo vs libtool

I wonder what would be the difference when using: lipo -create i386/libAwesome.a armv7/libAwesome.a -o fat/libAwesome.a and libtool -static i386/libAwesome.a armv7/libAwesome.a -o fat/libAwesome.a I have the impression that lipo is more general, and it will simply stick two files from... (0 Replies)
Discussion started by: nacho4d
0 Replies

2. UNIX Desktop Questions & Answers

Loopback

clear echo "vans, Rolland" echo "Press in Your Keyboard to Quit" echo -e "Please Enter Your Choice : \c" read option case $option in I have created the corresponding information for each input on the display so... My question is... How do I display the corresponding information... (6 Replies)
Discussion started by: thriveforana
6 Replies

3. UNIX for Dummies Questions & Answers

How to Loopback?

This is in the beginning of the program: clear tput cup 1 20 echo "Welcome to UNIX I Final Assignment" tput cup 4 3 echo -e "Who would you like to look up? \c" tput cup 6 5 echo "vans, Rolland" tput cup 8 5 echo "ones, Mildred" tput cup 10 5 echo "mith, Julie" tput cup 12 5 echo... (0 Replies)
Discussion started by: thriveforana
0 Replies

4. UNIX for Advanced & Expert Users

Strange FAT filesystem

My Garmin GPS device has a slot for an SD card. I'm using a 32 GB SD card which holds 22 GB data currently. If I attach my device to a USB port it shows two devices, the internal memory and the SD card. I have no problems with the internal memory which holds only 2 GB of data. I can mount... (2 Replies)
Discussion started by: HJarausch
2 Replies

5. UNIX for Advanced & Expert Users

loopback filesystem disappears after reboot

I am running solarix x86 on a dell r810; I have mirrored the two internal 300Gb disks and accepted the default directory structure during the installation. Oracle 11g R2 was then installed with a view to using this machine in a DR scenario. The following steps were performed to create two disks... (3 Replies)
Discussion started by: jabberwocky
3 Replies

6. Filesystems, Disks and Memory

Can a Loopback Filesystem be Partitioned?

I have a disk image file created for use with the Linux version of the QEMU emulator. It's partitioned. I opened it with fdisk and the partitions show up with some extra messages about physical/logical endings: Disk knoppix.img: 0 MB, 0 bytes 16 heads, 63 sectors/track, 0 cylinders Units =... (3 Replies)
Discussion started by: deckard
3 Replies
Login or Register to Ask a Question