Files hidden in Bash and Samba, but not in X
Hi,
I have a raspberry pi running Raspbian Wheezy. This has a 100GB SATA ext4 formatted hard drive connected via a USB/SATA converter, which is mounted at /media/SHARE. This directory is shared using Samba, and Pydio, using an Apache2 server. Everything was working fine until I restarted the Pi. Now, only one folder is visible in this directory, owned by my user (pi) and in the www-data group. The files that are now missing are all owned by www-data and in the www-data group. All the files and directories are chmod to 777 recursively The strange thing is that when I am in the X environment, everything shows up fine, but when using Bash, SSH, Samba, or Pydio, only the one folder shows up. Even as root, nothing shows up, but does in X. Any help would be much appreciated, as I am completely baffled by this :S |
Just to be clear,..
If you do a 'whoami' the answer is 'root' and if you use 'ls -alh' in the directory in question, you do not see anything? But in X, you do? |
I think the power of usb port is not switched off during reboot therefore the external drive will not recognize the reboot, its state is unclear (at least for me). I always had to unplug and plug it in again.
|
szboardstretcher:
as pi and root users, both have the same result, only showing the one folder. And yes, in X, everything shows up fine and works as it should. pan64: I'll try rebooting the pi and unplugging the HD when I get home tonight, as I'm just at work on my break at the moment, and can only SSH. Thanks for the fast replies guys :) |
as your at home, is the USB drive showing in df? either way manually umount and mount the drive to see if it shows up properly again via CLI for you.
|
Quote:
I'm thinking that pan64's idea may work, as the HD has a seperate power supply and hasn't been switched off since it was set up. I'll let you know how i get on later tonight (in the UK) :) |
OK, I've fixed it.
The HD was being mounted at "/media/SHARE_" for reasons unknown. "/media/SHARE" was referring to a directory on the Pi's SD card. Any thoughts on why this happened? Thanks for your help guys, much appreciated :) |
if it was mounted at all it should have shown up in df.
as to why its mounting there that would be a distro specific issue.as the RPi has its OS on the SD card that is a bit understandable. did your distro setup multi partitions? if so then that is probably a standard procedure for your distro. Code:
pi@raspbmc:~$ df -Th note that RaspBMC only has 2 partitions: Code:
root@raspbmc:~# fdisk -l |
Quote:
|
Quote:
I deleted the /media/SHARE directory, and rebooted the Pi. It then mounted properly at /media/SHARE. I can't think where this directory came from though... I never created it :S |
All times are GMT -5. The time now is 03:52 PM. |