Best way to handle removeable disks? [message #36899] |
Tue, 28 July 2009 18:27 |
divB
Messages: 79 Registered: April 2009
|
Member |
|
|
Hi again,
I need some removeable disks (USB, FAT/NTFS) inside the VE. The problem is: The device is only plugged to the hardware node when it's used. I do not want to reboot the specific VE each time. Is this possible?
My thoughts:
1.) First I added in /etc/dev/ on the hardware node:
SUBSYSTEM=="block", KERNEL=="sd*1", SUBSYSTEMS=="usb", ATTRS{serial}=="XL0000000139", SYMLINK+="media"
And set:vzctl --devnodes media:rw --save
First I thought: Great idea! But then I saw that FAT is unsupported inside VE: mount: you must specify the filesystem type
2.) Using bindmounts: I mount the drive first on the host and then use bind mounts inside the VE. This would work if my drive is always connected. But this way it gets very, very difficult.
3.) Using NFS: Export on the hardware node to the VE. Not very cool. Also I need some kind of automounting on the hardware node. While this may somehow be accomplished, unmounting and removing the drive gets hard (only inside the VE0!).
Any ideas?
Regards,
divB
|
|
|