Author Topic: Samba Problem: PCLOS can access WIN XP but WIN XP can not access PCLOS (SOLVED)  (Read 2338 times)

Online muungwana

  • Hero Member
  • *****
  • Posts: 6242

i modified my above post, can you respond to additional questions asked?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
[root@localhost ~]# cat /etc/mtab
/dev/sda1 / ext3 rw 0 0
none /proc proc rw 0 0
none /dev/pts devpts rw 0 0
/dev/sda6 /home ext3 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/sdb5 /media/DATA vfat rw,nosuid,nodev,uhelper=hal,uid=0,utf8,shortname=mixed,flush 0 0

Online muungwana

  • Hero Member
  • *****
  • Posts: 6242

ok,its a vfat partition.

The problem is that the drive is being mount with 755 permissions, root being the owner.

It is supposed to be mounted with 777 permissions but i cant seem to be able to make a vfat partition mount with 777 partitions here.

what does this command give you?

blkid
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
I just noticed that PCLOS was not visible from WinXP today until I did a Samba restart

[root@localhost ~]# blkid
/dev/sda1: UUID="ebc24256-358d-48cc-815a-88b71f231133" TYPE="ext3"
/dev/sda5: UUID="2d886eef-33ee-4359-aba4-23fb40d444ad" TYPE="swap"
/dev/sda6: LABEL="partition2" UUID="9f0cd30e-bd1b-42cb-a627-72b08fcbd124" TYPE="ext3"
/dev/sdb1: LABEL="OCT_2002" UUID="9644-9654" TYPE="vfat"
/dev/sdb5: LABEL="DATA" UUID="0F7A-18DE" TYPE="vfat"

Online muungwana

  • Hero Member
  • *****
  • Posts: 6242

try this.

run these commands

umount /dev/sdb5

mount -o dmask=000,fmask=000,umask=000 /dev/sdb5 /media/DATA

now check if you can now write to the drive from the network
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
closed Dolphin and made sure WinXP was not browsing the DATA drive

[root@localhost ~]# umount /dev/sdb5
umount: /media/DATA: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))


Tried turning off the Win XP box and still was unable to un-mount DATA
« Last Edit: June 26, 2012, 10:48:45 AM by pb100 »

Online muungwana

  • Hero Member
  • *****
  • Posts: 6242

go to dolphin and click the drive to "safely remove it", you mounted it from there, try to unmount it from there too.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
Dolphin gives this error:

org.freedesktop.Hal.Device.Volume.Busy: umount: /media/DATA: device is busy.

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
I found the issue, there was a program using the DATA drive. Once closed, I was able to un-mount from Dolphin.

[root@localhost ~]# mount -o dmask=000,fmask=000,umask=000 /dev/sdb5 /media/DATA
mount: mount point /media/DATA does not exist


Online muungwana

  • Hero Member
  • *****
  • Posts: 6242
I found the issue, there was a program using the DATA drive. Once closed, I was able to un-mount from Dolphin.

[root@localhost ~]# mount -o dmask=000,fmask=000,umask=000 /dev/sdb5 /media/DATA
mount: mount point /media/DATA does not exist



run this command before the mount one to create the mounting folder,the folder was deleted by dolphin when you closed it from there.

mkdir /media/DATA

run the mount command again
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
SUCCESS !!  PCLOS and WinXP can now read and write to each other.

Thank-you!!

How do I make these changes survive re-boot?

Online muungwana

  • Hero Member
  • *****
  • Posts: 6242

ideally, you would add the drive entry in "/etc/fstab" but those mask options dont seem to be picked up from there( they werent in my test here).

There are a bunch of workaround you can do.

The one i know is to add the following line in  "/etc/rc.local" script file.

mount -o dmask=000,fmask=000,umask=000 UUID=0F7A-18DE /media/DATA

commands in "/etc/rc.local" are run when the system is starting up and hence the drive will automatically be mounted. If the system is powered on and the drive isnt mounted then you will have to run the command manually.

The initial problem you had involved turning off winxp firewall off. We should discuss put it back up and things continuing to work.

The problem you had was caused by what is known as "samba local master server" running on windows xp while behind a firewall.

One of the following could solve the problem.
1. Raise up winxp firewall but set it up to allow samba traffic to pass through.
2. Shut down the service on winxp and start it up on linux.
3. Leave things as they are,running winxp without a firewall(not recommended)
Solution to the problem is setting winxp firewall to allow  samba traffic to pass through or shutting the service off
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
Do I need to add
umount /dev/sdb5

to rc.local before
ount -o dmask=000,fmask=000,umask=000 UUID=0F7A-18DE /media/DATA

Online muungwana

  • Hero Member
  • *****
  • Posts: 6242
Do I need to add
umount /dev/sdb5

to rc.local before
ount -o dmask=000,fmask=000,umask=000 UUID=0F7A-18DE /media/DATA


no, asked you to run that command before because i wasnt sure if the drive was mounted or not and it needed to not be.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
OK, I made the change as you specified to rc.local  and re-booted.

Both machines can still read and write to each other.

Will now try starting Windows Firewall