LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2003, 01:37 AM   #1
RefriedJavaBean
LQ Newbie
 
Registered: Jul 2003
Location: Edmonton, Alberta
Distribution: Red Hat 8.0
Posts: 3

Rep: Reputation: 0
Question 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.
 
Old 09-25-2003, 01:50 AM   #2
linuxmanju
Member
 
Registered: Sep 2003
Location: India
Distribution: Debian
Posts: 50

Rep: Reputation: 15
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
 
Old 09-26-2003, 11:37 PM   #3
RefriedJavaBean
LQ Newbie
 
Registered: Jul 2003
Location: Edmonton, Alberta
Distribution: Red Hat 8.0
Posts: 3

Original Poster
Rep: Reputation: 0
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...
 
Old 09-27-2003, 12:04 AM   #4
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
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.
 
Old 09-27-2003, 12:51 PM   #5
RefriedJavaBean
LQ Newbie
 
Registered: Jul 2003
Location: Edmonton, Alberta
Distribution: Red Hat 8.0
Posts: 3

Original Poster
Rep: Reputation: 0
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???
 
  


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
sound issues -- alsaconf claiming not to see any cards TMH Linux - Hardware 4 02-26-2005 11:34 AM
diskspace.... yenonn Slackware 5 03-19-2004 07:39 PM
Format ext3 ONLY on unallocated space X-Crawler Linux - General 3 03-16-2004 11:27 AM
partition problems: cannot allocate unallocated sectors yzman Linux - Hardware 7 11-18-2003 04:31 AM
how to check diskspace nbtaher Linux - General 1 05-16-2002 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:31 PM.

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