TGT adding iSCSI targets with spaces in their name
Using iSCSI is very usefull even in home environments. In Linux on the server side you can use TGT for this purpose, usually you can manage it weasily with Webmin, but I did not found the correct way to add a file name with spaces to the /etc/tgt/targets.conf.
So finally I maked a symlink to the file and added the link to the config file and it workied.
ln -s /media/disk/file\ with\ spaces\ in\ name.img /home/user/iscsitarget
And put the /home/user/iscsitarget in yout TGT config file.
So finally I maked a symlink to the file and added the link to the config file and it workied.
ln -s /media/disk/file\ with\ spaces\ in\ name.img /home/user/iscsitarget
And put the /home/user/iscsitarget in yout TGT config file.
Comments