LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-17-2003, 01:33 AM   #1
ekoome
Member
 
Registered: Sep 2003
Posts: 52

Rep: Reputation: 15
Increasing my disk space


I did a dual boot RHL 7.3 & win 98. The harddisk was partitioned into 10GB each. But when installing RHL 7.3, i specified it to install only on 3GB leaving approx 7GB unused. With time i have used the 3GB space and i want to utilise the remaining 7GB.

How can i increase the disk space.

Koome
 
Old 09-17-2003, 10:20 AM   #2
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
You have to use the cmd fdisk and creat a partion once that has been done use the cmd mkfs to make a filesystem for that partion. Once that has been done goto your /etc/fstab insert your new mount piont so that it mount s after each startup.

Hope this helps

chow
 
Old 09-17-2003, 05:04 PM   #3
windowsrefund
Red Hat Ambassador
 
Registered: Aug 2003
Location: NYC
Distribution: Debian, Redhat
Posts: 73

Rep: Reputation: 15
of course, depending on what partition you intend to enlarge, you'll probably want to consider copying over your data from the old location to the new one.

I only mention this since there is a good chance that you're trying to create a larger /home partition for yourself.
 
Old 09-18-2003, 10:25 AM   #4
ekoome
Member
 
Registered: Sep 2003
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks all. I managed to get the unallocated disk space using partition magic. However, i had to mount it seperately onto Linux i.e on /mount2. This method is not transparent to my users in terms of there /home directories. After their home directories got full, they need to actively move to /mount2.

My question- is it possible to make this process transparent to the users i.e have /mount2 on / so that the users are unaware of storage problems.

Koome.
-----------------------------------
give a woman an inch and she will
park a car in it!
 
Old 09-18-2003, 11:00 AM   #5
windowsrefund
Red Hat Ambassador
 
Registered: Aug 2003
Location: NYC
Distribution: Debian, Redhat
Posts: 73

Rep: Reputation: 15
Now that you've got the disk space allocated, you're half way there. From here I'd suggest the following:

1. Make sure that your users are not connected and unmount /home
2. Copy everything from /home to /mount2. There are two techniques you can explore for this job. You can use cp -av /home /mount2 or you can use dd to perform a lowlevel block copy of your partitions. For example, I'll assume that you've got IDE drives and that /home is mounted from /dev/hda1, and /mount2 is on /dev/hda3. dd if=/dev/hda1 of=/dev/hda3 bs=1024

3. Once all the data has been copied, now you'll want to make your change to /etc/fstab so that /dev/hda3 gets mounted as /home instead of /mount2. Make a backup of the file first and change the appropriate line for your environment.

Adam

Last edited by windowsrefund; 09-18-2003 at 11:48 AM.
 
Old 09-19-2003, 01:55 AM   #6
ekoome
Member
 
Registered: Sep 2003
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks i will try it out over the weekend

Koome
----------------------------------------------
/EARTH is 98% full. Please delete anybody you can
 
Old 09-22-2003, 04:40 AM   #7
ekoome
Member
 
Registered: Sep 2003
Posts: 52

Original Poster
Rep: Reputation: 15
worked out great. steps followed
- backed up /home to /home2
-edit /etc/fstab and changed the mount point to /home
- umount /mount2
- mount -a
-cp -av /home2/* /home

and i had my users on more disk space!!!

Thanks all
-------------------------------------------------------------------
C this?This is a copy;I want U 2 make me the original!
 
  


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
Increasing virtual address space mhl Linux - Newbie 1 09-07-2005 10:29 AM
Increasing disk space Shankarrajus Fedora 1 04-22-2005 08:12 PM
Increasing hard-disk space allocated to user guam Linux - General 10 03-01-2005 07:31 AM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
Increasing swap space rupesh_pulikool Linux - Networking 1 09-12-2004 10:40 PM

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

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