The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
AjaXplorer simplifies browser-based server filesystem interaction iBot UNIX and Linux RSS News 0 03-12-2008 03:30 PM
ftp selected jpeg files from unix filesystem mhbd UNIX for Dummies Questions & Answers 3 12-13-2007 03:57 AM
Can a Loopback Filesystem be Partitioned? deckard Filesystems, Disks and Memory 3 08-23-2007 09:47 AM
recurse through filesystem to delete files mdtreky UNIX for Dummies Questions & Answers 2 06-11-2007 05:28 AM
limit of files in the ufs filesystem witt UNIX for Dummies Questions & Answers 2 06-25-2002 11:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-24-2007
deckard's Avatar
deckard deckard is offline
Registered User
  
 

Join Date: Jul 2002
Location: Ohio
Posts: 135
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 (permalink)  
Old 01-25-2007
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,963
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0