Can not see /mnt


 
Thread Tools Search this Thread
Operating Systems Linux Can not see /mnt
# 1  
Old 02-24-2009
Can not see /mnt

Hi,
on Linux RED HAT when I issue df -k , I do not have a line with /mnt.
I have already done mount -t /mnt but not yet ok. What shoule I do ?
Thank you.
Code:
[root@xxx mnt]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup_ID_8300-LogVol4
                       4515496    642072   3644048  15% /
/dev/sda3                99150     18942     75088  21% /boot
none                   4153272         0   4153272   0% /dev/shm
/dev/mapper/VolGroup_ID_8300-LogVol5
                        507748     10750    470784   3% /tmp
/dev/mapper/VolGroup_ID_8300-LogVol8
                      13030536   3122692   9245932  26% /usr
/dev/mapper/VolGroup_ID_8300-LogVol7
                        507748    146845    334689  31% /var
/dev/mapper/VolGroup_ID_8300-LogVolHome
                       7869904   1539336   5930800  21% /home
/dev/mapper/VolGroup_Ext-LogVolExt
                     576694832 472361004  75039444  87% /Data

# 2  
Old 02-24-2009
I am not a Linux guy, but general Unix troubleshooting steps follow:
Is the /mnt mount information specified in /etc/fstab?
If not, then your mount command specified above was incomplete.
Is the underlying volume/FS available for mounting?
Does the /mnt directoy have files/dirs in it? If so, the system could be trying to prevent an overlay mount.

Last edited by frozentin; 02-24-2009 at 06:03 AM.. Reason: typos
# 3  
Old 02-24-2009
Thank you frozentin.
Is the /mnt mount information specified in /etc/fstab?No.
If not, then your mount command specified above was incomplete. How to complete ?
Is the underlying volume/FS available for mounting? Yes I can do cd /mnt.
Does the /mnt directoy have files/dirs in it? If so, the system could be trying to prevent an overlay mount. What to do then ?
Thank you.
# 4  
Old 02-24-2009
Quote:
Originally Posted by big123456
Is the /mnt mount information specified in /etc/fstab?No.
If not, then your mount command specified above was incomplete. How to complete ?
You are missing the FS device path. You need to specify that.

Quote:
Is the underlying volume/FS available for mounting? Yes I can do cd /mnt.
You mis-understood my question. "cd /mnt" is not the way to check this. You need to find out the device that has the filesystem laid out on it, and see whether that is available. The device name will be something like /dev/mapper/... (see other devices listed in your df o/p above)"

Quote:
Does the /mnt directoy have files/dirs in it? If so, the system could be trying to prevent an overlay mount. What to do then ?
You haven't answered the question. But, in general the OS will prevent you from mounting FSs on mount points which contain files/dirs. You have two options in such a case:
[1] Move the contents of /mnt to another dir, and then mount /mnt FS
or
[2] Read the man-page for mount and figure out how to tell the system to ignore the underlying files and dirs under /mnt and just go ahead and mount the /mnt FS as specified on the command line.
# 5  
Old 02-24-2009
Quote:
You are missing the FS device path. You need to specify that.
According to my df -k result , how should I specify FS device path ?
Thank you.
# 6  
Old 02-24-2009
/mnt is AFAIK used to mount temporary devices: Flash drives, memory cards, or loopback devices as examples. That's why there is no fstab entry (as opposed to, say /media/cdrom).
You can mount a device if you know it's device path (block file in /dev) and when it's filesystem is supported by Linux (almost any out there):
Code:
$ mount <device> <dir> # generic
$ mount /dev/sdg1 /mnt # most flash drives I know

To find out the path for a temporary device, look at the last few lines of dmesg
# 7  
Old 02-24-2009
Thank you.
When I issue
Code:
mount /dev/sda1 /mnt

it appears after df -k :
Code:
/dev/sda1                31648      3636     28012  12% /mnt

but it is not the right file system regarding to result of
Code:
ls -l /mnt

total 140
-rwxr-xr-x  1 root root    87 Mar 18  2005 autoexec.bat
-r-xr-xr-x  1 root root 56797 May 15  2006 command.com
-rwxr-xr-x  1 root root    55 Nov  1  2005 config.sys
-r-xr-xr-x  1 root root 28799 May 15  2006 dellbio.bin
-r-xr-xr-x  1 root root 32042 May 15  2006 dellrmk.bin
drwxr-xr-x  3 root root  2048 May  5  2006 dellup
-r-xr-xr-x  1 root root 15121 May 15  2006 himem.sys

Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Meaning of mount /dev/dsk/c... /mnt

Hi May I know the meaning of the following command mount /dev/dsk/c1t0d0s3 /mnt Will I be able to use my tape drive after that? Thanks (3 Replies)
Discussion started by: rahmantanko
3 Replies

2. Shell Programming and Scripting

mnt point of a directory

how can we know mount point of a particular directory. I want to know if a particular directory <Dir1> is a mount point somewhere and if so where especially i don't know where it fits with df -k command. (0 Replies)
Discussion started by: tostay2003
0 Replies

3. UNIX for Dummies Questions & Answers

rm: Unable to remove directory /mnt/users/test/logs/: File exists

rm: Unable to remove directory /mnt/users/test/logs/: File exists ls -latr total 191208 drwxrwxrwx 6 test echo 4096 Jul 3 22:36 .. -rwxrwxrwx 1 test echo 97692804 Jul 3 22:36 .nfsDFA4 drwxrwxr-x 2 test echo 4096 Jul 3 23:00 . M not able to delete... (4 Replies)
Discussion started by: solitare123
4 Replies

4. AIX

BootingTrouble:0518 /var MNT failed

Hi I am having and issue with my AIX box when i boot it up i get the following error 0518 /var MNT failed Is their anything i can do...? Thanks Liam (1 Reply)
Discussion started by: lodonovan
1 Replies
Login or Register to Ask a Question