LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-19-2015, 05:00 AM   #1
omniok
LQ Newbie
 
Registered: May 2014
Posts: 15

Rep: Reputation: Disabled
Directory not visible in df -H command


Hi All,
I have drive /u01 mounted on /.
Earlier, the output of df -H did show /u01 entry. Now this command does not show any entry for "/u01". However, I can access all the data in it.
Can someone tell me what this issue is and how to resolve it?
Thank you in advance !!!

[root@D-8114 ~]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
479G 213G 242G 47% /
/dev/sda1 104M 13M 86M 13% /boot
tmpfs 2.1G 0 2.1G 0% /dev/shm

[root@D-8114 ~]# cd /u01/

[root@D-8114 u01]# df -H /u01/
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
479G 213G 242G 47% /
 
Old 02-19-2015, 07:10 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,109

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
probably /u01 is not mounted. what will mount say?
 
Old 02-19-2015, 08:19 AM   #3
omniok
LQ Newbie
 
Registered: May 2014
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks pan64, the output is as follows:

[root@D-8114 ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
[root@D-8114 ~]#

What is the correct way to mount?
 
Old 02-19-2015, 08:23 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,109

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
that depends on your need. if you want to auto mount on boot you need to put an entry into /etc/fstab. http://www.linuxstall.com/fstab/
 
Old 02-19-2015, 09:21 AM   #5
bino25
Member
 
Registered: Dec 2010
Posts: 45

Rep: Reputation: 11
Looks like you mounted /u01 incorrectly.

Did you run a "mkdir /u01" first? Then run a "mount /dev/<disk> /u01".

And like pan64 stated, if you want this persistently mounted across reboots, you need something like this in your fstab file.

/dev/<disk> /u01 ext3 defaults 0 0
 
  


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
ps command is visible in 80 characters smilemukul Linux - Newbie 5 09-01-2010 01:27 PM
zombie process via 'top' command is not visible junust Linux - General 5 04-07-2010 09:55 AM
Making Hidden Filed Visible under Directory Indexing in Apache? your_shadow03 Linux - Newbie 11 10-23-2009 04:51 PM
Chapter 5.5. No directory's visible anymore charlie_lab Linux From Scratch 3 05-25-2009 04:36 PM
Linux is not visible after a Windows FIXMBR command ikhanr Linux - Newbie 6 10-23-2004 02:26 PM


All times are GMT -5. The time now is 07:01 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