LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2009, 10:46 AM   #1
rwill
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
Exclamation Folders created through Samba are missing!!!


Hello,

I recently had to reboot my Redhat 4/64 linux system. After rebooting some folders on an externally mounted USB drive are missing!!! These folders were all created through Samba. Other folders, not created through samba are still there.

I'm in deep doo doo. Can anyone help??

Bob
 
Old 05-18-2009, 09:26 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,506

Rep: Reputation: 100Reputation: 100
Hmm, why use Samba to "create files on USB devices" ? Usually, Samba is a network protocol emulation layer to emulate a Windows machine's file sharing protocol so that a Linux machine can "appear" to be a Windows machine to other Windows machines on a network, as regards networked file access in Windows.

Did the "reboot" you refer to occur while you were in Windows, or in Linux?

I've only been able to see this using NTFS-3G on the same physical machine. If I was in Windows and it crashed, rebooting directly into Linux would do exactly this - it would "seem" as if the Windows partition was entirely "gone" in Linux.

This was because the NTFS partition (i. e. the Windows partition) was marked "dirty" - due to Windows having crashed "on" it - and then NTFS-3G would refuse to mount that partition on boot in Linux.

The way to fix it was to first reboot into Windows (thus fixing the "dirty" marked on the NTFS partition, as Windows will scandisk automatically on startup post a hard restart) and THEN booting into Linux, where the Windows partition would then again be available (due to having been "cleaned" by the Windows booting process). Only then would NTFS-3G once again "touch" the Windows partition and allow me access to my NTFS / Windows file from within Linux.

Note that this may also happen if, for example, your Linux machine starts up and the Windows machines certain scripted samba shares are on, if offline or the network is down, OR the Windows machine has a dirty or unmounted NTFS partition. I. e. if you created files "over there" on a Windows machine and the Windows machine is not available at boot time (and you have scripts that try to mount the remote Windows machine's shares using samba) at boot time, then once you have booted into Linux, NONE of those shares will be available, even if that Windows machine has become available in the meantime. This is because it was not available AT BOOT, when you Linux machine was "looking" for it, via samba.

Last edited by rylan76; 05-18-2009 at 09:29 AM.
 
  


Reply

Tags
samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba can create new files and folders but access denied in any new folders k.king Linux - Networking 2 01-15-2006 07:14 AM
Missing folders when accessing samba share from XP IgniZtion Linux - Software 2 08-19-2004 12:34 AM
Pine viewing Kmail created folders buttersoft Linux - Software 2 03-19-2004 01:18 AM
Accessing folders created in pine in outlook97 zatka Red Hat 2 01-27-2004 04:59 PM
How come folders/viles created via PHP script act different from those dragged in? rvn Linux - Newbie 0 12-09-2003 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration