- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can bypass the mounting in the script by editing
/var/public/cgi-bin/uda.pl
Try commenting out the actual mount and unmount commands:
1. In the sub ImportOS comment out the unmounting of the current mount (put hash marks before the following lines):
\# print "
Unmounting old Share
";
\# local($mountdirname)=&GetMountDirName($os);
\# local($command)="/bin/umount $mountdirname";
\# local(@result)=`sudo $command 2>&1`;
\# if ($? != 0)
\# {
\# print "@result";
\# }
2. In the sub ImportWindows comment out the following:
\# print "
Mounting isofile $fullfilename on $mountdir
\n";
\# local($command)="/bin/mount -t iso9660 -o loop $fullfilename $mountdir";
\# print "Running command |$command|\n";
\# local(@result)=`sudo $command 2>&1`;
\# if ($? != 0)
\# {
\# print "ERROR";
\# print "
@result
\n";
\# return 1;
\# }
The script will then skip the mounting, and I am assuming that you have mounted the iso file with something like:
mount -t iso9660 /var/public/smbmount/yourfoldernamehere/winxp.iso /var/public/tftproot/WINXP
Good luck and let me know what happened