OpenVZ Forum


Home » General » Support » vfat filesystem support from inside VE
vfat filesystem support from inside VE [message #25131] Fri, 14 December 2007 22:54 Go to next message
ipcop1965 is currently offline  ipcop1965
Messages: 2
Registered: December 2007
Junior Member
I saw that from inside VE there is support to mount the following filesystems:

[root@VE123 /]# cat /proc/filesystems
ext2
ext3
nodev rpc_pipefs
nodev autofs
nodev proc
nodev sysfs
nodev tmpfs
nodev devpts

I'd like to add support for vfat filesystem in order to mount an external Iomega USB disk which I provided to VE by means of --devnodes option of vzctl:
[root@VE123 ~]# fdisk -l /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 60801 488384001 b W95 FAT32


Is there any way to do that?

Many Thanks

FC
Re: vfat filesystem support from inside VE [message #25140 is a reply to message #25131] Sat, 15 December 2007 16:52 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
I think it would be simpler just to reformate the external drive in ext3.

What is the goal of having this external hdd? Backups?

Regards,

Ugo


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: vfat filesystem support from inside VE [message #25196 is a reply to message #25140] Mon, 17 December 2007 14:03 Go to previous messageGo to next message
ipcop1965 is currently offline  ipcop1965
Messages: 2
Registered: December 2007
Junior Member
Of course I reformated the external drive in ext3 and the problem was overtaken. But I'd like to better understand how openvz works because I used it on three production systems and worked very fine. I read on the manuals that it was possible to load iptables modules so I wondered if it was possible to do the same.



Thanks


FC

Re: vfat filesystem support from inside VE [message #25310 is a reply to message #25196] Wed, 19 December 2007 19:33 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

it's possible to mark FAT filesystem_type in the code with flag FS_VIRTUALIZED and this fs (FAT) will become available for mounts from inside VE.

we probably need to implement some run-time configurable way nowdays...


http://static.openvz.org/userbars/openvz-developer.png
Re: vfat filesystem support from inside VE [message #36369 is a reply to message #25310] Fri, 12 June 2009 16:27 Go to previous messageGo to next message
novazur is currently offline  novazur
Messages: 11
Registered: June 2009
Junior Member
nothing new about that ?

IMAGE=/install/images/ipcop-1.4.21-install-usb-fdd.i386.img;    mkdosfs -n IPCOPBOOT -F 16 -I $IMAGE && for i in `seq 0 7`; do if (! losetup /dev/loop${i} >/dev/null 2>&1 ); then LOOPDEV="/dev/loop${i}"; break; fi; done; losetup $LOOPDEV $IMAGE && mount -t vfat $LOOPDEV /install/mnt && cp -R /install/cdrom/* /install/mnt && mv /install/mnt/boot/isolinux/{instroot.gz,vmlinuz,f*\.txt,memtest} /install/mnt && rm -rf /install/mnt/boot && cp /usr/src/config/kernel/syslinux.cfg /install/mnt/syslinux.cfg && umount /install/mnt && losetup -d $LOOPDEV && syslinux $IMAGE
mkdosfs 2.11 (12 Mar 2005)
mount: unknown filesystem type 'vfat'
make: *** [/usr/src/log/usb-key] Error 32

So I really need vfat in VE and I don't think bind mount can help me.
Is there a solution now ?
Re: vfat filesystem support from inside VE [message #36382 is a reply to message #36369] Sat, 13 June 2009 07:11 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hi.

Well, we still have not implemented any run-time configurable way to provide the ability to mark FS as virtualized (on fully user's risk), thus if you want go this way, we'll have to recompile the kernel marking FAT fs virtualized (not so difficult really, if you'd like i can send you a patch).

But you also can go another way: you can use FUSE inside a Container and there exists 'fusefat' module which provides ability to work with fat fs.

http://wiki.openvz.org/Mounting_filesystems
http://wiki.openvz.org/FUSE
http://sourceforge.net/projects/libfat/

If you are going to try this way, please, share your experience after you make it working. Smile

--
Konstantin


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: vfat filesystem support from inside VE [message #36383 is a reply to message #36382] Sat, 13 June 2009 07:13 Go to previous messageGo to next message
novazur is currently offline  novazur
Messages: 11
Registered: June 2009
Junior Member
I'll try that (FUSE).
Thanks a lot.
Re: vfat filesystem support from inside VE [message #36393 is a reply to message #25131] Sun, 14 June 2009 17:21 Go to previous message
novazur is currently offline  novazur
Messages: 11
Registered: June 2009
Junior Member
I saw what you mean, but I'm not sure that's the good way, because I need vfat to use mkdosfs and I don't know if fuse is sufficient for that.
So, the solution may be the kernel patch (not sure), or simply not create usb-key and boot.img in ipcop Wink
I'll try this last solution to see if I can even have the cd iso.
Previous Topic: Modern Kernels?
Next Topic: vzprocps for x64 CentOS
Goto Forum:
  


Current Time: Sun Apr 21 21:31:50 GMT 2024

Total time taken to generate the page: 0.01256 seconds