LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-27-2001, 03:09 PM   #1
Shailendra Singh
LQ Newbie
 
Registered: Mar 2001
Location: Atlanta
Posts: 7

Rep: Reputation: 0
Question


I have installed Red Hat Linux 6.2 I have "/" as Linux Native partition of 2G size. I have used 85% of this partition. I need to add another partition of 2G size. I have 10G unpartitioned space on the disk drive. How do I add a new partition called "/export" of 2G size?

Thanks,
Shailendra Singh
 
Old 03-27-2001, 10:21 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Put the system in single user mode: init 1

Use fdisk to allocate 2Gigs to a new partition. Open fdisk with the existing HD name /dev/hda (or whatever). Use the 'a' key to add a new partition. Select the next partition number. If this will be the second partition on the drive then it will be 2. Next select the starting block. Use the default, it should be the next available. Then select the size. +2000M will be 2Gig. Write you configuration with 'w'. cd to the / directory. Create a new directory called /export. Modify your /etc/fstab to mount the new partition on /export on startup.

/dev/hda2 /export ext2 defaults 1 1

Reboot and it should mount when it comes up.

Good Luck

Gary
 
Old 03-28-2001, 09:56 PM   #3
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
you forgot one thing...

after making the /dev/hda2 partition.. I think he has to run "mke2fs /dev/hda2" in order to create a filesystem on it.
 
Old 03-28-2001, 10:19 PM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
OOPS... Sorry
 
Old 11-18-2003, 11:23 AM   #5
jmcmillan
LQ Newbie
 
Registered: Jun 2003
Posts: 13

Rep: Reputation: 0
That's just what I was looking for. A quick overview on how to partition a disk on Linux. great stuff.

One thing though, How do I create an ext3 filesystem on a new partition?

All the best - Johnm
 
Old 11-18-2003, 11:24 AM   #6
jmcmillan
LQ Newbie
 
Registered: Jun 2003
Posts: 13

Rep: Reputation: 0
Just realised you posted these instructions over 2 years ago. You'll probably neve know I asked that question. c'est la vie.
 
  


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
Using partition magic to create Linux partition then install EviLBoX Linux - General 5 09-12-2008 06:01 AM
I installed linux and forgot to create a swap space partition Starch Linux - Newbie 5 06-22-2005 09:29 AM
create NTFS partition in linux titanium_geek Linux - Software 19 06-20-2005 11:02 PM
How to create Linux partition on a XP workstation? yuchen99 Red Hat 2 04-14-2005 06:31 AM
Create bootable VFAT partition from Linux ugenn Linux - Software 2 04-29-2004 01:27 PM


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