Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Gedit fails to save to smbfs

  1. #1
    Join Date
    Nov 2005
    Beans
    24
    Distro
    Ubuntu Breezy 5.10

    Thumbs down Gedit fails to save to smbfs

    I can't get Gedit to save files to my smbfs' that I mount regularly.

    I use this command to mount them:
    Code:
    gksudo "smbmount //deb-pc/data /smbMount/deb -o username=administrator,password=****,uid=1000"
    And I can easily edit the files using command line editing tools, and files can be edited by OpenOffice.Org fine.
    When I try and save the files in Gedit I get the following message in Gedit:
    Code:
    Could not save the file /asdfasdf/blah.txt
    Unexpected error: Text File Busy
    and the following is printed to the console if I run it from a console:
    Code:
    ** (gedit:11762): WARNING **: Hit unhandled case 0 (Text file busy) in parse_error.
    Lastly the permissions for the file are:
    Code:
    -rwxrwSrwx 1 gareth gareth 0 2008-11-07 13:29 2008 11 07 Gareth.txt
    (my username is gareth)
    So I'm at a loss for what the problem could be.

  2. #2
    Join Date
    Oct 2005
    Beans
    170
    Distro
    Ubuntu Development Release

    Re: Gedit fails to save to smbfs

    I'm not sure if this will help, but try using "mount -t cifs" instead of smbmount. I've heard that smbfs is no longer maintained, and I'd hazard a guess that smbmount is the same as "mount -t smbfs" (although I'm not sure).

  3. #3
    Join Date
    Nov 2005
    Beans
    24
    Distro
    Ubuntu Breezy 5.10

    Re: Gedit fails to save to smbfs

    Thanks for the suggestion but that didn't change anything, I think the two commands are equivilent anyway.

  4. #4
    Join Date
    Nov 2005
    Beans
    24
    Distro
    Ubuntu Breezy 5.10

    Re: Gedit fails to save to smbfs

    Discovered what I think is the problem, Gedit doesn't remove its temporary files. Well at least that the problem at home when using sshfs, which I suspect is a similar problem to when at work I'll confirm this behavior at work on Monday.

  5. #5
    Join Date
    Apr 2007
    Location
    Krasnodar, Russia
    Beans
    92

    Re: Gedit fails to save to smbfs

    So have I the same problem. Is there any solution?
    Member of Ubuntu Russian LoCo Team
    Member of Ubuntu Russian Translators Team

  6. #6
    Join Date
    Nov 2005
    Beans
    24
    Distro
    Ubuntu Breezy 5.10

    Re: Gedit fails to save to smbfs

    I haven't found a solution yet, I have determined that the problem at work using smbmount isn't the same problem I was having at home with sshfs (which has the awkward work around, but at least that works)

  7. #7
    Join Date
    Oct 2005
    Beans
    170
    Distro
    Ubuntu Development Release

    Re: Gedit fails to save to smbfs

    I've found that I have the same problem (tried a bunch of things including adding noperm,_netdev opetions). I cannot replace files on a windows share, but I can delete them and then copy over a new file.

  8. #8
    Join Date
    May 2008
    Location
    Ottawa
    Beans
    7

    Re: Gedit fails to save to smbfs

    I have been experimenting significant issues as well with smbfs on Intrepid. I have waited for the usual updates as I have seen many questions about this in 8.10. Unfortunately, these smbfs (cifs) problems are all over the forum... It would appear that these should be tagged together to help indentify the problems with smbfs (cifs) in 8.20.

    Basically, smbfs is broken in 8.10 (see https://lists.ubuntu.com/archives/ub...er/006643.html)

    I have a local server running Debian. Samba has been running fine for ever on Windows XP, Mac OSX and previous versions of Ubuntu. I have exactly the same "mount" setup on 8.10 as on 8.04 but it is broken on 8.10. For example, all the reported problems about "not a directory (20), the Gedit one where the file can't be written", etc. etc.

    I first noticed it when my rsync jobs failed with: "can't change permissions", or "file is not a directory" where smbfs "thinks" a file is a directory.

    I have tried the various suggestions posted in the Forum, but to no avail... Since Mac OSX and Windows are just fine with the Samba shares and as well as 8.04, then 8.10 has broken smbfs (cifs) ((or smbfs is bro ken in 8.10))

    My work-around, at this time, is to use nfs. I'm OK with that at the moment, but it is not a solution... If that option is fine for you, go fo it... I've seen others revert back to 8.04, which I also did as well, but we're not doing the Ubuntu community any good by doing so... we must forge ahead...

    I suspect that a fix will come soon enough as it has been reported (see above) as Bug 286828...

    Personally, I'll keep watch on its progress..

    Have a Great Day...

    Regards!
    Last edited by MarkusAurelius; December 7th, 2008 at 01:55 AM.

  9. #9
    Join Date
    Sep 2008
    Location
    Knoxville, TN
    Beans
    1,075
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Gedit fails to save to smbfs

    Hi cerberos

    I have removed smbfs from my machines entirely!

    BECAUSE it prevents all the machines from seeing all the machines!

    Or to make more sense of what I just said.

    Load smbtree, if you don't have it loaded already.

    Then type smbtree in your terminal, it will list all of your shares NOT BLOCKED by smbfs.

    Uninstall smbfs and type smbtree again and VOILA, ALL of your shares will now show.

    Still don't mean they will appear under Places/Network without going to Go/Location and typing in smb://IP number.

    The latter is a BUG that has been ignored now for over 2 years!

    TTUL
    Gary

  10. #10
    Join Date
    Jan 2009
    Beans
    32

    Re: Gedit fails to save to smbfs

    3 months on this issue, any updates?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •