On 2003.09.03 13:21, Edenyard wrote:
> I can start up Opera/Mozilla and open the front page without any
> difficulty, but all links are unreachable. When I move the cursor
> over a link, I find that its address is shown as (for example)
> 'file:///fred/somepage.htm', whereas I would have expected it to be
> '/mnt/cdrom/fred/somepage.htm'....
AFAIK, in windows there is a separate root directory for each disk so
when windows tries to resolve a path which refers back to the root
directory but doesn't specify a drive letter it will assume the current
drive. So, for example, if your CD drive was E: /fred/somepage.htm
would resolve to E:/fred/somepage.htm
Of course, Unix-like OSes are different and have a single root
directory so this doesn't work.
You could work round this by creating symbolic links in the real root
directory for each top-level directory on the CD. You could so this
automatically like:
cd /mnt/cdrom
ls -l | grep ^d | awk '{print "ln -s /mnt/cdrom/" $8 " /" $8;}' | sh
When you've finished browsing the CD you can remove the links:
cd /mnt/cdrom
ls -l | grep ^d | awk '{print "rm -f /" $8;}' | sh
This is a little ugly but it's all I can think of ATM.
HTH, Steve.