Solved

where is my  /home

Posted on 2004-04-14
6
203 Views
Last Modified: 2012-05-04
How can I known /home stay on wich partition I use command fdisk -l  out put is below

Thank



[root@localhost staff]# fdisk -l

Disk /dev/ide/host0/bus1/target0/lun0/disc: 40.0 GB, 40020632064 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                Device Boot    Start       End    Blocks   Id  S
ystem
/dev/ide/host0/bus1/target0/lun0/part1   *         1       764   6136798+  83  L
inux
/dev/ide/host0/bus1/target0/lun0/part2           765      4865  32941282+   5  E
xtended
/dev/ide/host0/bus1/target0/lun0/part5           765       827    506016   82  L
inux swap
/dev/ide/host0/bus1/target0/lun0/part6           828      4865  32435203+  83  L
inux
[root@localhost staff]#
0
Comment
Question by:teera
6 Comments
 
LVL 1

Assisted Solution

by:hal3000
hal3000 earned 30 total points
ID: 10829855
Hi teera,
try the following command

    df .



Good luck
0
 

Author Comment

by:teera
ID: 10829995
Thank  hal3000
what is the difference between df and fdisk -l
0
 
LVL 8

Assisted Solution

by:da99rmd
da99rmd earned 70 total points
ID: 10830871
df - diskfree tool checks how much space file/dirs take
fdisk - hardisk partitioning tool, used to make and maintain partitions.

/Rob
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
LVL 8

Assisted Solution

by:da99rmd
da99rmd earned 70 total points
ID: 10830885
Sry change the line
df - diskfree tool checks how much space file/dirs take
to
du - diskusage tool checks how much space file/dirs take( use the -sh to get sums and Gb)
and add the line
df - diskfree tool checks how much space is left on each partition.(use the -h to ge Mb Gb)

/Rob
0
 
LVL 3

Assisted Solution

by:captainmish
captainmish earned 40 total points
ID: 10841560
Hi teera
use " cat /etc/fstab " to find out where home is mounted
you can also get more info on your mounted stuff with mount -l
to go straight to your home directory use " cd ~ "
Hope that helps
0
 
LVL 10

Accepted Solution

by:
Mercantilum earned 60 total points
ID: 10848484
Simply "df -k /home"
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now