LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-25-2005, 04:14 PM   #1
paul_dundee
Member
 
Registered: Mar 2005
Location: Scotland
Distribution: FC3
Posts: 39

Rep: Reputation: 15
Adding a new partition


I am using FC3, have both parted and fdisk available. I would like to create a new partition on a second drive (hdb) to mount at a folder within my FC3 installation, but I can't figure out how to do this. I currently have a 40GB fat32 partition and a linux swap partition from a previous install. My partition table for the drive is:
Code:
Disk /dev/hdb: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb2   *         511        5609    40957717+   b  W95 FAT32
/dev/hdb3            5610        5707      787185   82  Linux swap
any help is appreciated
 
Old 03-25-2005, 05:32 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Run 'fdisk /dev/hdb'
Type 'n' for a new partition. Follow the prompts. Make sure to save your changes ('m' shows all menu options). You may need a reboot here so the kernel is aware of your changes.

Then you need to create a filesystem on your new partition eg:
Code:
# mkfs.ext3 /dev/hdb4
# mkreiserfs /dev/hdb4
Now mount it:
Code:
# mount /dev/hdb4 /where/you/want/it
Edit your /etc/fstab to make it mount at boot...

Note: If you are using *all* the free space for this partition then just follow the above. If you want to keep free space for the future then you need to make /dev/hdb4 an extended partition, and make hdb5 a logical partition within the extended one.

Last edited by bulliver; 03-25-2005 at 05:35 PM.
 
Old 03-25-2005, 05:41 PM   #3
paul_dundee
Member
 
Registered: Mar 2005
Location: Scotland
Distribution: FC3
Posts: 39

Original Poster
Rep: Reputation: 15
I appreciate the instructions, but i don't fully understand the process. I am being asked for a partition number (1-4) and then being asked for the start and end cylinders.

Will selecting any of those numbers cause any problems with the existing partitions, if not how do i know which cylinders to enter?

sorry for being a pain, am just really new to this.
 
Old 03-25-2005, 05:51 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Ok, well you need to answer if you want to use all available free space for this partition. If yes, then you are all set.

You already have hdb2 and hdb3, so the next will be partition 4. By default, fdisk will use the next free cylinder, so just press enter. Then for the end, fdisk will use the last cylinder on the disk, so press enter again... now you have a partition that uses all the remaining free space.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding space to a partition... zaxs Linux - General 1 04-07-2005 10:49 PM
Adding a partition eddydw General 2 01-25-2005 01:43 PM
Adding a 'shared' partition? ece30675 Linux - General 1 10-01-2004 08:05 AM
Adding a partition in RedHat 9 PionexUser Linux - General 8 09-04-2003 05:25 AM
Adding partition tommygunner Linux - General 11 07-11-2002 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:00 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
Open Source Consulting | Domain Registration