Click to See Complete Forum and Search --> : Hard Drive Space
Erico' Suave'
06-29-2001, 02:24 PM
Hi everyone.....
My RH 7 system has a 20 gig WD hard drive in it, but when I originally partitioned the drive I only allowed for a little over 3 gigs.........so I have somewhere around 16 GB sitting being unused. Now that I know that I want to keep this machine bacause Linux ROCKS, I need to know how to allocate the rest of that space. Can someone help?
a556789
06-29-2001, 02:26 PM
Nevermind...
[ 29 June 2001: Message edited by: a556789 ]
ille_pugil42
06-29-2001, 02:28 PM
not quite understanding... You want ways to fill up the harddrive space?
MP3's
other distros
et cetera
et cetera
Erico' Suave'
06-29-2001, 02:33 PM
I'm sorry I wasn't clear. What I want to do is add another partition using the remaining space. I'm a newbie to Linux so I'm still learning many of the commands. Can you help me with this?
ille_pugil42
06-29-2001, 02:50 PM
try fips out. It can take existing partitions and part them out. Do a search on your system first, you should have it.
fancypiper
06-29-2001, 03:06 PM
The linux program used for drive partitioning is called fdisk.
The partitions (http://linuxdoc.org/HOWTO/HOWTO-INDEX/os.html#OSPARTITIONS) area of the HOW-TOs may help as well.
RedHat also has an RPM for resizing ext2 filesystems in their "powertools" that you could use to make the partition(s) larger.
bdg1983
06-29-2001, 03:48 PM
You can use the linux version of fdisk to create a ext2 partition(s) in the free space and then follow one of the good old NHF's.
http://www.linuxnewbie.org/nhf/intel/filesys/creating_filesystems2.html
ille_pugil42
06-29-2001, 04:39 PM
i just realized that I totally misinterpreted your question. I thought you'd already partitioned off the hard drive and wanted to change sizes without delete partitiions. if you've just got empty space, fdisk away. Or cfdisk if you want - it's a bit more "graphical" (uses ncurses).
FNGUY
06-29-2001, 04:54 PM
After you use fdisk to partition it, you'll need to mount the drive.
Here's what someone gave me. Please note that the /dev/sdb2 will probably not work for your machine. You need to specify your drive and partition. I believe it would be /dev/hda2 for an IDE drive HTH:
mkdir /newname
mount /dev/sdb2 /newname
If that works:
echo "/dev/sdb2 /newname <fs-type> rw 0 0" >> /etc/fstab
That will append the appropriate line to /etc/fstab so that it will be mounted on boot. Replace <fs-type> with the appropriate filesystem like ext2. man 5 fstab for more info on editing /etc/fstab