LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I create new partition? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-create-new-partition-224516/)

akilhoffer 08-30-2004 07:11 PM

How do I create new partition?
 
I have a Laptop running Fedora Core 2 with Gnome as my WM. My hd is a 30 gig, but it's partitioned weird:

5 gig - /Home
1024k - Swap
2x gig - Free Space

Any suggestions on how I should distribute this space and what tools should I use? I'm VERY new to Linux, so bear with me!

Thank in advance for any advice!

-Tony

bruno buys 08-30-2004 08:08 PM

You didn't mention the / partition, where is it? You must have one.

There are several ways to accomplish that. Easier way is to use fedora's native tools. Boot the machine with the install cd's you have, and run the partitioner program (disk druid?).

The ways to partition depend on your hd layout. Maybe you have to build a logical partition.

A hd can have up to 4 primary partitions, including extended ones. If you already used these, you have to create a logical partition to use these 2Gb.

Post here the output of

cat /etc/fstab

and

df

So we can take a look at it.

akilhoffer 08-31-2004 07:06 AM

You're right. I do have a / partition. I'm so new to Linux, I'm still trying to figure out what's going on. Anyway, here's the output of cat /etc/fstab:

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,r o 0 0


output of df:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 6047376 3585328 2154856 63% /
none 257636 0 257636 0% /dev/shm

Thanks for your help!

-Tony

bruno buys 08-31-2004 07:23 AM

Hi Tony!
Sorry man, I forgot to ask you to also output the mount command, with no switches. Just do

mount

So we can see where each partitions are mounted.

michaelk 08-31-2004 07:38 AM

In addition post the output of the command
fdisk -l /dev/hda (that is a small L and you need to be logged in as root)

akilhoffer 08-31-2004 02:55 PM

Thanks a million for your help!

Here is the result of 'mount':

/dev/hda1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/shm type tmpfs (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)


Here is the result of 'fdisk -l /dev/hda':

Disk /dev/hda: 30.0 GB, 30005821440 bytes
15 heads, 63 sectors/track, 62016 cylinders
Units = cylinders of 945 * 512 = 483840 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13003 6143886 83 Linux
/dev/hda2 13004 62016 23158642+ 5 Extended
/dev/hda5 13004 15222 1048446 82 Linux swap


All times are GMT -5. The time now is 10:27 AM.