LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to create linux partition (https://www.linuxquestions.org/questions/linux-software-2/how-to-create-linux-partition-1524/)

Shailendra Singh 03-27-2001 02:09 PM

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

crabboy 03-27-2001 09:21 PM

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

KevinJ 03-28-2001 08:56 PM

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.

crabboy 03-28-2001 09:19 PM

OOPS... Sorry

jmcmillan 11-18-2003 10:23 AM

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

jmcmillan 11-18-2003 10:24 AM

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


All times are GMT -5. The time now is 08:51 AM.