VOGONS

Common searches


First post, by ebasi

User metadata
Rank Newbie
Rank
Newbie

Hi all! First, thank you for your work! Great app!

Can you help me with this?

I'm trying to mount an remote shared folder in my ubuntu machine. What I'm doing is:

Share a folder on a Windows XP machine - sharename: test
In ubuntu:
smbmount //winpc/test /home/user/dos/n

ubuntu@user:~$ ls /home/user/dos/n/
file1 file2 file3 file4

then in dosbox:
Z:\>mount n /home/user/dos/n
Drive N is mounted as a local directory /home/user/dos/n

Z:\>n:
N:\>dir
.
..
0 files

So, everything is looking good, but there is no files in mounted folder when browse it in dosbox. It's empty.

If the windows folder is shared with password when trying to mount it in dosbox I get a message, that folder /home/user/dos/n does not exist...

Thanks in advance!

Reply 2 of 12, by ebasi

User metadata
Rank Newbie
Rank
Newbie

ls -al where

edit:

it@user:~$mount
...
//192.168.120.16/share on /home/it/dos/n type cifs (rw,mand,nosuid,nodev,user=it)
...

it@user:~/dos/n$ ls -al
total 184644
drwxr-xr-x 1 it it 0 2008-01-11 13:20 .
drwxr-xr-x 4 it it 4096 2010-02-09 14:50 ..
-rwxr-xr-x 1 it it 546 2006-09-02 13:51 1.vnc
-rwxr-xr-x 1 it it 12697600 2008-04-16 09:08 20070329150426640_ML-2010_GDI.exe
-rwxr-xr-x 1 it it 29265 1995-06-01 10:39 BDS.COM
drwxr-xr-x 1 it it 0 2009-08-26 13:46 DigiNet Center 4.13P7
-rwxr-xr-x 1 it it 23510720 2007-12-06 10:22 dotnetfx.exe
drwxr-xr-x 1 it it 0 2009-07-01 10:27 gps
-rwxr-xr-x 1 it it 28716 2009-07-01 15:43 logo.gif
-rwxr-xr-x 1 it it 25974 2009-07-01 15:44 logo_trans.gif
-rwxr-xr-x 1 it it 158727 2009-07-01 15:56 logo_trans.pcx
-rwxr-xr-x 1 it it 46623 2009-07-01 15:50 logo_trans.png
-rwxr-xr-x 1 it it 2963968 2009-06-29 00:28 NSClient++-0.3.6-Win32.msi
-rwxr-xr-x 1 it it 149286272 2008-10-15 09:44 OOo_3.0.0.exe
-rwxr-xr-x 1 it it 60980 2009-11-03 10:55 List.pdf
drwxr-xr-x 1 it it 0 2009-03-31 17:14 scan
-rwxr-xr-x 1 it it 129536 2009-12-03 16:14 Thumbs.db
it@user:~/dos/n$

Reply 3 of 12, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

hmm no symlinks there (dosbox doesn't like those)
I wonder if stat works.
as I think that is the last test we do before deciding to display a file or not

Water flows down the stream
How to ask questions the smart way!

Reply 6 of 12, by ebasi

User metadata
Rank Newbie
Rank
Newbie

it@user:~/dos/n$ stat logo.gif
File: `logo.gif'
Size: 28716 Blocks: 64 IO Block: 16384 regular file
Device: 18h/24d Inode: 17210855488 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 1000/ it) Gid: ( 1000/ it)
Access: 2010-02-04 00:00:00.000000000 +0200
Modify: 2009-07-01 15:43:14.000000000 +0300
Change: 1940-10-24 04:26:18.955161600 +0200

it@user:~/dos/n$ stat -f logo.gif
File: "logo.gif"
ID: 0 Namelen: 4096 Type: UNKNOWN (0xff534d42)
Block size: 32768 Fundamental block size: 32768
Blocks: Total: 3603201 Free: 1983617 Available: 1983617
Inodes: Total: 0 Free: 0
it@user:~/dos/n$

Reply 7 of 12, by ebasi

User metadata
Rank Newbie
Rank
Newbie

I found something. When windows share is mounted in n it's size is 0:

it@user:~/dos$ ls -la
total 16
drwxr-xr-x 4 it it 4096 2010-02-10 14:44 .
drwxr-xr-x 51 it it 4096 2010-02-10 11:41 ..
drwxrwxrwx 3 it it 4096 2010-02-09 13:00 c
-rwxrwxrwx 1 it it 92 2010-02-09 14:50 dosbox.conf
drwxr-xr-x 1 it it 0 2008-01-11 13:20 n
it@user:~/dos$

When it's not mounted, it's okay:

it@user:~/dos$ sudo umount n/
it@user:~/dos$ ls -la
total 20
drwxr-xr-x 4 it it 4096 2010-02-10 14:44 .
drwxr-xr-x 51 it it 4096 2010-02-10 11:41 ..
drwxrwxrwx 3 it it 4096 2010-02-09 13:00 c
-rwxrwxrwx 1 it it 92 2010-02-09 14:50 dosbox.conf
drwxr-xr-x 2 it it 4096 2010-02-09 13:57 n
it@user:~/dos$

Reply 8 of 12, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

that changetime of 1940 is a bit odd as well
I am not sure how to proceed from here. Are you comfortable with compiling ?

Water flows down the stream
How to ask questions the smart way!

Reply 10 of 12, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

http://dosbox.linuxsecured.net/dosboxcvs.tgz

You need the development version of libSDL installed (sudo apt-get install build-essential libsdl-dev)
In dosbox/src/misc/cross.cpp
at the bottom
there are 2 functions
read_directory_next
read_directory_first
Try checking the results in there. (to see if they are reached. if stat succeeds)
you can use LOG_MSG as print function. it is identical to printf
LOG_MSG("entering");
LOG_MSG("passed stat");
LOG_MSG("buffer contains %s",buffer);
etc

Water flows down the stream
How to ask questions the smart way!