LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Claiming unallocated diskspace into Linux (https://www.linuxquestions.org/questions/linux-newbie-8/claiming-unallocated-diskspace-into-linux-96614/)

RefriedJavaBean 09-25-2003 01:37 AM

Claiming unallocated diskspace into Linux
 
Hello All -- I'm a newbie to Linux and I have just installed Red Hat 8.0 on my computer. I have made it a dual-boot system with Windows XP. I have two hard drives in my computer (1 for windows and 1 for Linux) and I am using Grub as the bootloader. My primary drive (hda) is NTFS and the secondary hard drive (hdb) is my Linux partitions plus a FAT32 partition (my original intent was to share files between Windows and Linux). I have removed the FAT32 partition and I would like to claim the space for Linux, but I don't know how to do this.

Any help would be appreciated.

linuxmanju 09-25-2003 01:50 AM

create new partition using fdisk or cfdisk in linux
if plan to use cfdisk then run
cfdisk /dev/hdb ...it will put u in the interactive mode..

after creating that partition.. just run
mke2fs /dev/hdb* where * is ur partition no
u can specify the mount point fr that partition say if u want to use it as he /usr dir...
simply copy the contents of the /usr dir to that parti...

mkdir /hdisk
mount /dev/hdb* /hdisk
then run....
cp -R -p /usr/ /hdisk

then edit /etc/fstab ...like this
/dev/hdb* ext2 /usr defaults

then cd to ur original /usr dir..
u can rmove hat dir with
rm -rf /usr
reboot

RefriedJavaBean 09-26-2003 11:37 PM

Thanks linuxmanju.... now here's a testament to just how "newbie" I am.

I searched my computer for cfdisk and I couldn't find that command anywhere. Can you tell me where I my locate this? What kind of bootdisk do I need? Will the mkbootdisk work for this?

Thanks again...

UltimaGuy 09-27-2003 12:04 AM

You can run fdisk or cfdisk when you log in as root. Type
'fdisk /dev/hdc' and you are there. It is pretty easy to use fdisk, but the partition schemes are diff. than in windoze. The primary master hdd is hda, the primary slave is hdb, the secondary master is hdc, and so on. So, if you want to change the secondary master, do
'fdisk /dev/hdc'.

Then type p, and you will get the partition table. Change it and you are done. Don't forget to save the changes when you come out of fdisk.

RefriedJavaBean 09-27-2003 12:51 PM

Thanks UltimaGuy, it worked. I was able to run fdisk when logged in as root, but when I tried to run cfdisk, I got a command not found error??? :confused:


All times are GMT -5. The time now is 02:23 PM.