Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-26-2005, 11:03 PM
|
#1
|
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130
Rep:
|
mount /dev/ path
I have newly installed a RH linux server , I choose auto partition when installing , now i only have the below partition , could suggest how can I mount the path back ( eg. /tmp , /home /usr ) , how can I know what is the device name ? thx
#df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 3455064 1248468 2031088 39% /
/dev/hda1 101089 9140 86730 10% /boot
none 144068 0 144068 0% /dev/shm
|
|
|
01-27-2005, 02:41 AM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
If you have partitions that are not mounted, you can see them with the 'fdisk -l' command.
Are you certain that /home, /tmp and /usr aren't directories in the root partition. I.E. are they empty, or do they contain files. Is your server running?
|
|
|
01-27-2005, 04:44 AM
|
#3
|
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130
Original Poster
Rep:
|
thx reply , the /home, /tmp and /usr is under / directory , I only don't know how to mount it , so that I can see all this path when run "df" , thx
|
|
|
01-27-2005, 09:02 AM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,198
|
The default auto selection creates 3 partitions
/
/boot
/swap
You do not have seperate partitions for /home, /tmp and /usr and so you can not mount them. Use the du command to find disk usage for those directories.
|
|
|
01-27-2005, 07:29 PM
|
#5
|
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130
Original Poster
Rep:
|
thx reply , but how can I see all the path when use "df" ?
like this
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda9 8096152 5358092 2326800 70% /
/dev/sda1 505605 25394 444107 8% /boot
none 515308 0 515308 0% /dev/shm
/dev/sda8 505605 27220 455281 6% /tmp
/dev/sda3 5162828 2657404 2243164 55% /usr
/dev/sda7 1035660 420688 562364 43% /var
/dev/sda5 4127076 2665684 1751748 52% /home
|
|
|
01-27-2005, 09:33 PM
|
#6
|
Moderator
Registered: Aug 2002
Posts: 26,198
|
Quote:
Originally posted by ust
thx reply , but how can I see all the path when use "df" ?
like this
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda9 8096152 5358092 2326800 70% /
/dev/sda1 505605 25394 444107 8% /boot
none 515308 0 515308 0% /dev/shm
/dev/sda8 505605 27220 455281 6% /tmp
/dev/sda3 5162828 2657404 2243164 55% /usr
/dev/sda7 1035660 420688 562364 43% /var
/dev/sda5 4127076 2665684 1751748 52% /home
|
You can not. This install has seperate partitions for /home, /var and /usr and your first post does not. The command df shows disk usage on mounted filesystems.
In your first post /dev/hda2 is your / which contains everything except /boot.
|
|
|
All times are GMT -5. The time now is 06:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|