LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-13-2010, 03:45 PM   #1
Panceisto
LQ Newbie
 
Registered: Mar 2010
Distribution: Debian
Posts: 12

Rep: Reputation: 0
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
 
Old 07-13-2010, 04:40 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
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

Last edited by AlucardZero; 07-13-2010 at 04:50 PM.
 
Old 07-13-2010, 04:41 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,107

Rep: Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478
??? 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 ?????
 
Old 07-13-2010, 04:46 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
 
Old 07-13-2010, 04:51 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
Quote:
Originally Posted by pixellany View Post
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.
 
Old 07-22-2010, 12:55 PM   #6
Panceisto
LQ Newbie
 
Registered: Mar 2010
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


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
Mount userspace directory as "/dev" block device for USB Gadget API? Robert_A Programming 5 02-17-2011 02:26 AM
PXE problem: "that directory could not be mount from server" applebees Linux - General 2 02-11-2010 09:42 AM
"Permission denied" and "recursive directory loop" when searching for string in files mack1e Linux - Newbie 5 06-12-2008 07:38 AM
"mount: not a directory" pmount error when file system is out kaz2100 Linux - General 0 12-18-2007 02:10 PM
redhat 9 - CD-ROM drive won't mount: "Not a directory" zyzychyn Linux - Hardware 8 06-11-2004 11:33 AM

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

All times are GMT -5. The time now is 09:56 AM.

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