LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount problem: "Not a directory" (https://www.linuxquestions.org/questions/linux-newbie-8/mount-problem-not-a-directory-819666/)

Panceisto 07-13-2010 03:45 PM

mount problem: "Not a directory"
 
Hi all,

A few days ago I tried rebooting my Linux server. It took such a long time that in order to speed up the process I unplugged the power. After I restarted I got messages saying that my file system was read only. It took forever to boot and while I eventually got in the system I couldn't bring up my network interfaces.

I decided to reinstall Linux. Before doing so I tried backing up my data using Freenas (to get my interfaces up and running and perform a network copy using samba). Somehow I couldn't mount the drive that I wanted to backup.

I ssh'd into the freenas-server, and issued the commands:

Quote:

mkdir /mnt/share
mount -t ext2fs /dev/ad6s1 /mnt/share
no errors. When I try:

Quote:

cd /mnt/share
it sais:

Quote:

share: Not a directory
Anyone know what's happening?
When I do ls -al, the directory (share) is not shown!
and when I just issue an ls without -al, the directory (share) is shown..

Thanks

AlucardZero 07-13-2010 04:40 PM

Post the exact output of
Code:

mount
ls /mnt
ls -F /mnt
ls -Al /mnt
ls -ld /mnt/share
lsattr -d /mnt/share
file /mnt/share
tune2fs -l /dev/ad6s1


John VV 07-13-2010 04:41 PM

??? is there a folder in /mnt called share ???
if not make one.


if you ran mkdir as a normal user it might not have been made.

and why this " -t ext2fs " ??
what format is /dev/ad6s1
ext2 , ext3 , ext4 , jfs ,LVM ?????

pixellany 07-13-2010 04:46 PM

This not really what you asked but: Pulling the power plug is the absolute worst way to shut down anything---including a computer. If it is not possible from the keyboard, then the preferred method is to hold the power button for a few seconds until the power supply shuts down.

If the normal shutdown methods do not work, then I would try "init 0" or "shutdown -h now" before doing anything more radical.

AlucardZero 07-13-2010 04:51 PM

Quote:

Originally Posted by pixellany (Post 4032299)
If the normal shutdown methods do not work, then I would try "init 0" or "shutdown -h now" before doing anything more radical.

Don't forget Magic SysRq - talk directly to the kernel.

Panceisto 07-22-2010 12:55 PM

Hi,

I've been sick; therefor the delayed response.

I was unable to reproduce the exact same error and once I realized that most of the data I was after was actually stored on a different disc than the disc that had the read-only file-system, there was no reason to pursue the matter.

Thanks all for your advice.


All times are GMT -5. The time now is 04:36 PM.