LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-29-2010, 02:30 PM   #1
nallanisai
LQ Newbie
 
Registered: Dec 2010
Location: Bangalore
Distribution: Red Hat Linux
Posts: 28

Rep: Reputation: 0
Unhappy Mounting File systems


hi,

i have installed rhel 5.5 on my system....my hard disk capacity is 70G
i gave 60G for '/' while installation
& 100M for /boot
and 4G for swap..

Now i want to create /u01 directory with 30G and mount that directory permanently...when i execute df -h or df -k ...it should show /uo1 directory...


---N. SAI VARA PRASAD RAO
 
Old 12-29-2010, 02:36 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Do you mean you created a 30G partition & filesystem?

If so, simply add an entry to /etc/fstab using /uo1 as the mount point after creating a /uo1 directory.

If you want to "bind" a directory in the heirarchy somewhere else, there is the --bind option to mount or an fstab entry like:

/olddir /newdir none bind

I don't believe this is what you want.
 
Old 12-29-2010, 02:36 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
that would go in the /etc/fstab file

something like

Code:
/dev/sdX       /u01  {filesystem} defaults 0       2
where /dev/sdX would be the 30 gig partition (replacing X with whatever it is)
 
Old 12-29-2010, 02:53 PM   #4
nallanisai
LQ Newbie
 
Registered: Dec 2010
Location: Bangalore
Distribution: Red Hat Linux
Posts: 28

Original Poster
Rep: Reputation: 0
Hi frieza,

There is no free space in the hard disk...only 6G was free..how can i create a partition /dev/sdx with 30G..

i have free space in / can i create a directory /u01 in / and mount that directory permanently..when i execute df -h or df -k it should show /u01 as mounted...
 
Old 12-29-2010, 04:17 PM   #5
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
Quote:
Originally Posted by nallanisai View Post
Hi frieza,

There is no free space in the hard disk...only 6G was free..how can i create a partition /dev/sdx with 30G..

i have free space in / can i create a directory /u01 in / and mount that directory permanently..when i execute df -h or df -k it should show /u01 as mounted...
Checkout Gparted, if you don't have it on your system, download the bootable CD.
 
Old 12-31-2010, 11:57 AM   #6
networking.dept
Member
 
Registered: Dec 2010
Location: Ahmedabad
Distribution: Red Hat Enterprise Linux and Fedora
Posts: 44

Rep: Reputation: 8
There is no disk space Left......

Hi

As per your mentioned partition scheme, There is no disk space so you can't do that 30G partition.

You have to find some third party utility for Linux to Extend your partition, I don't know its available or not. Wanted to give you suggestion for future that if you are partition and not sure about future than always make partition other than /boot with LVM so you can always extend and reduce your partition.

Hope this helps.
 
Old 01-03-2011, 05:10 PM   #7
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
Quote:
Originally Posted by networking.dept View Post
Hi

As per your mentioned partition scheme, There is no disk space so you can't do that 30G partition.

You have to find some third party utility for Linux to Extend your partition, I don't know its available or not. Wanted to give you suggestion for future that if you are partition and not sure about future than always make partition other than /boot with LVM so you can always extend and reduce your partition.

Hope this helps.
You don't know if these is any free space on his 70G parition. Gparted or df can tell you.
Gparted will do all of all of the above. You need the live CD because you can't alter a partition of a running system.
http://gparted.sourceforge.net/download.php
HTH

Last edited by MrUmunhum; 01-03-2011 at 05:12 PM.
 
Old 01-04-2011, 04:05 PM   #8
nallanisai
LQ Newbie
 
Registered: Dec 2010
Location: Bangalore
Distribution: Red Hat Linux
Posts: 28

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by networking.dept View Post
Hi

As per your mentioned partition scheme, There is no disk space so you can't do that 30G partition.

You have to find some third party utility for Linux to Extend your partition, I don't know its available or not. Wanted to give you suggestion for future that if you are partition and not sure about future than always make partition other than /boot with LVM so you can always extend and reduce your partition.

Hope this helps.
THanks for your Reply...
 
Old 01-11-2011, 02:58 AM   #9
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 228

Rep: Reputation: 9
As per your information as there is not enough free space on hard drive as you have allocated 60G to "/" and 4G to swap, so its not probably possible to do what you are asking for because you need a partition with filesystem allocated to it before mounting any directory on it.

As rightly said by person above me in future use LVM when you are not sure about the partitions and there space as you can always create new Logical Volumes in a volume group and also extend or shrink a existing logical volume.

Thanks !!
 
  


Reply



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
Mounting 2 file systems to one directory leupi Linux - Networking 7 01-21-2006 10:29 PM
Mounting to file systems n e r d Linux - Hardware 3 07-22-2004 07:53 AM
Mounting NTFS File Systems quorn Linux - General 7 10-09-2003 02:56 PM
mounting two file systems to one point sophie Linux - Hardware 4 07-01-2003 12:47 PM
mounting file systems philfighter Linux - General 5 08-20-2001 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:04 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
Open Source Consulting | Domain Registration