Home » Infrastructure » Linux » How to mount a folder
How to mount a folder [message #146981] Tue, 15 November 2005 01:24 Go to next message
dnvs_praveen
Messages: 47
Registered: July 2005
Location: bangalore
Member

Hi

when i give df command it gives information about /, /boot, /dev/shm mount partitions. I want to see my folder information also. How to mount. what is the procedure.

i added in /etc/fstab and rebooted the whole machine, but still its not giving the information.

Actually i want to check my archive folder capacity and other information when i give df command. HOw can i add and what is the procedure. Plz let me know.

Regards,
Praveen
Re: How to mount a folder [message #146986 is a reply to message #146981] Tue, 15 November 2005 02:10 Go to previous messageGo to next message
tarundua
Messages: 1080
Registered: June 2005
Location: India
Senior Member

--> i give df command it gives information about /, /boot, /dev/shm mount partitions

Did you go through the manual entries of the df command?

try this
 $man df
(provides help for df)

--> i want to check my archive folder capacity and other information when i give df command.

What other information , you didnt mention ?

use df -k this command , see this

dogmatix:SID=testdb=>df -k /data1
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d80      28904917 8700295 19915573    31%    /data1
Re: How to mount a folder [message #146992 is a reply to message #146986] Tue, 15 November 2005 02:45 Go to previous messageGo to next message
dnvs_praveen
Messages: 47
Registered: July 2005
Location: bangalore
Member

Thanks tarun,

But one more thing i would like to clarify here is that -
how /data mount point is looking at /dev/md/dsk/d80 this folder.

In /etc/fstab file u need to specify or anywhere else?

Plz clarify me this.

-praveen
Re: How to mount a folder [message #146996 is a reply to message #146992] Tue, 15 November 2005 03:19 Go to previous messageGo to next message
tarundua
Messages: 1080
Registered: June 2005
Location: India
Senior Member

I am not sure but when you install linux , at that time it ask for partitioning and mount points.

so this /data1 is a just the name but /dev/md/dsk/d80 is the actual mount point.

I am saying this because i remember installing linux and it asked to create partitions like that.

And if there is something more then do let me know please .
Re: How to mount a folder [message #147008 is a reply to message #146981] Tue, 15 November 2005 04:15 Go to previous message
lazycat
Messages: 57
Registered: November 2005
Member
format your disk
mkfs -t ext3 -c /dev/sdg1
mount the disk
mount /dev/sdb1 /www /
edit the fstab
vi /etc/fstab
/dev/sdb1 /www ext3 defaults 1 2


good luck
Previous Topic: How much stable might be TOra 1.3.18 running on CentOS 4.1 (RHEL 4 U1) & Glibc 2.3 related issue
Next Topic: Problem with Developer 10g on Linux Susse
Goto Forum:
  


Current Time: Thu Mar 28 11:53:20 CDT 2024