Help in creating partition?

Hi, i’m kinda new so please advice and teach/guide me ok?
Thx in advance… ^^

Ok i need to configure a new partition on the hard disk ( tried with yast and yast2 it’s success… ) but totally clueless just by using command line… i tried but failed…

below is the partition details :

-i wan to create a new linux primary logical partition. size = 2GB

-and then create a new ext3 file system on the new logical partition.

-After that mount the new ext3 file system to the new mount point named/database

-and lasty make the new mount points as permanent so when the pc is reboot the mount point will mount automaticly.

Please guide me with me all the step/procedure to configure the network card here? ( Yast and Yast2 are disable this time. )want to learn it by using just command line?

I’m new and trying to learn here so thanks in advance ^^

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, a few things. First, you cannot have a “primary logical partition”
as primary and logical are mutually exclusive. Another type is ‘extended’
which must exist for you to have ‘logical’ partitions (as logical
partitions are created within the extended partition). None of this is
really Linux-specific.

It could also be useful to know your OpenSUSE version and current
partitioning schema. You need to know your device that represents your
hard drive to do this so let’s pretend it is /dev/sda (could also be
/dev/sdb, /dev/hda, /dev/hdb, /dev/somethingElse, etc.). To show the
partitions use the following command:

sudo /sbin/fdisk -l /dev/sda

Hopefully this will not only show you your partitions but will tell you
that you have a free partition (either primary or extended with room for
logical partitions) and space to create partitions in. If not then you
are basically done at this point until you add another hard drive (logical
or physical) to your machine. Let’s pretend you do. In this pretend
scenario you have /dev/sda1, /dev/sda2, and /dev/sda3, but have not used
all of your space. Load fdisk:

sudo /sbin/fdisk /dev/sda

Now create a new partition: n
It will ask you what type (primary for now), what number (4), what size
(just use the defaults) and may ask you the type (83, Linux). Within
fdisk type ‘p’ to print the current partition table. Did I mention you
should have a backup before doing any of this? It’s not too late; use ‘q’
to quit without saving changes. If you like your changes use ‘w’ to write
your changes to the disk. If you did everything properly you should not
do any harm.

Next you need to “format” the new partition with a filesystem. For ext3:

sudo /sbin/mkfs.ext3 /dev/sda4

Once done you need to mount it:

mkdir /database
mount /dev/sda3 /database

To make it stick modify your /etc/fstab file adding something like the
following:

/dev/sda4 /database ext3 defaults 1 1

Good luck.

crayes5735 wrote:
> Hi, i’m kinda new so please advice and teach/guide me ok?
> Thx in advance… ^^
>
> Ok i need to configure a new partition on the hard disk ( tried with
> yast and yast2 it’s success… ) but totally clueless just by using
> command line… i tried but failed…
>
> below is the partition details :
>
> -i wan to create a new linux primary logical partition. size = 2GB
>
> -and then create a new ext3 file system on the new logical partition.
>
> -After that mount the new ext3 file system to the new mount point
> named/database
>
> -and lasty make the new mount points as permanent so when the pc is
> reboot the mount point will mount automaticly.
>
> Please guide me with me all the step/procedure to configure the network
> card here? ( Yast and Yast2 are disable this time. )want to learn it by
> using just command line?
>
> I’m new and trying to learn here so thanks in advance ^^
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJK6QoqAAoJEF+XTK08PnB5CCEQAMoInYN0wyXuL0BnMBWDze9G
d32Cfjw9zXrPikXl+suI+yasAWQ5l4U4lmjbfPoSfTKRo0MYYUMKT3LGEUI9qDvP
25IJk1UIa7MtFmJ6SGfh5XWe86gmgH2xMAnEFLeSqXbIpSYgBDrt8GPuLxwcN0Pd
c0PQ///IowEHcpsvKO3idBo177YF1jm7KLLaVJHvgDyeSJk+aSS6jU3R5VJrIbfD
ptZsP8ZVhUKdtjjzLnmt46fvV6bYVtWGymYgnZkT/wqnQU7v/eM0Py1dqwc0SJb+
Q+vco+8Ase3CnchBSUI8IFRC+j1kB7io/YYe0AAreNe4eoK8/ynI6FvbqlGZzA67
VY8Gfqbqx20pZjJWcU58JTliaWirRuwbI7r3yZZR1SsXRpfh1cvEQzobrSYxuJ7n
1EPZDbqMujgWkJ6F/nOIBJRRSoJ9vIjO9H55xjGf8BCa+jIilK+3LOD+h0HGgxO2
CLbxJL5RS7pGxtRBTfIWu45trheNJGmgmgiIVtw67ksV7hrChe8fBY7yjoAXU3AE
X/g6+hUaRPNXYezkZwSigHym5Da0IHERwhC2wm5w1DJbVdMKB35XfiOhR5bgoxzv
jhRb83mcaTFH2QDCOu/VowZlUb6B1IHm1uPTnpZv7tiip6NVX8+rCAkW1dcjSVp6
0YsZVZsIoRNmJUo2k6Uf
=HLH5
-----END PGP SIGNATURE-----

I would use a live utility CD like Parted Magic
Downloads

Once you have the partition in place
Please open a terminal and become su and do:

fdisk -l

post result

along with the result of this from a terminal

cat /etc/fstab

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Also, check out the ‘fdisk’ man page.

Good luck.

ab@novell.com wrote:
> Well, a few things. First, you cannot have a “primary logical partition”
> as primary and logical are mutually exclusive. Another type is ‘extended’
> which must exist for you to have ‘logical’ partitions (as logical
> partitions are created within the extended partition). None of this is
> really Linux-specific.
>
> It could also be useful to know your OpenSUSE version and current
> partitioning schema. You need to know your device that represents your
> hard drive to do this so let’s pretend it is /dev/sda (could also be
> /dev/sdb, /dev/hda, /dev/hdb, /dev/somethingElse, etc.). To show the
> partitions use the following command:
>
> sudo /sbin/fdisk -l /dev/sda
>
> Hopefully this will not only show you your partitions but will tell you
> that you have a free partition (either primary or extended with room for
> logical partitions) and space to create partitions in. If not then you
> are basically done at this point until you add another hard drive (logical
> or physical) to your machine. Let’s pretend you do. In this pretend
> scenario you have /dev/sda1, /dev/sda2, and /dev/sda3, but have not used
> all of your space. Load fdisk:
>
> sudo /sbin/fdisk /dev/sda
>
> Now create a new partition: n
> It will ask you what type (primary for now), what number (4), what size
> (just use the defaults) and may ask you the type (83, Linux). Within
> fdisk type ‘p’ to print the current partition table. Did I mention you
> should have a backup before doing any of this? It’s not too late; use ‘q’
> to quit without saving changes. If you like your changes use ‘w’ to write
> your changes to the disk. If you did everything properly you should not
> do any harm.
>
> Next you need to “format” the new partition with a filesystem. For ext3:
>
> sudo /sbin/mkfs.ext3 /dev/sda4
>
> Once done you need to mount it:
>
> mkdir /database
> mount /dev/sda3 /database
>
> To make it stick modify your /etc/fstab file adding something like the
> following:
>
> /dev/sda4 /database ext3 defaults 1 1
>
> Good luck.
>
>
>
>
>
> crayes5735 wrote:
>> Hi, i’m kinda new so please advice and teach/guide me ok?
>> Thx in advance… ^^
>
>> Ok i need to configure a new partition on the hard disk ( tried with
>> yast and yast2 it’s success… ) but totally clueless just by using
>> command line… i tried but failed…
>
>> below is the partition details :
>
>> -i wan to create a new linux primary logical partition. size = 2GB
>
>> -and then create a new ext3 file system on the new logical partition.
>
>> -After that mount the new ext3 file system to the new mount point
>> named/database
>
>> -and lasty make the new mount points as permanent so when the pc is
>> reboot the mount point will mount automaticly.
>
>> Please guide me with me all the step/procedure to configure the network
>> card here? ( Yast and Yast2 are disable this time. )want to learn it by
>> using just command line?
>
>> I’m new and trying to learn here so thanks in advance ^^
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJK6QwnAAoJEF+XTK08PnB5XjsQAI7iYAj9OH7m65aKIJ5mlbMl
0iP9DML6xek+9aDHRofQXFfuqrmNF7MuokbS7XA9Zyrw5mEknc7XxCVL2qokyThw
o/H02/V+ANX4e87ScJby3pQn5xKz08stgr8Fnh3N1Fa5cpu4UbA1wNgo/owcvTQd
ifkkeKs0T3B0fKZL5p0RgqGfdhHBsH4Op0xZK/hrA/fcy2dF+Vn7syuxcUQZtQLb
Kt53rcjdRviQXnSOBBJzo5h3zq+52ZdhT7b5MsmbtRDz/dJaKi5dvcupMFk7eH2Z
UcS9UyCz8PuVPLI3j1nNP5Z4nMLS8LmN/VOqWpbqtpETKpXlNOG/5oRTZslppBOP
uI7gqBSGLooIwWNcLTCgWVSx0qtNcSMnChrndIA8NaxGkQaUBreVoj0sZ8t8tZI3
lRlHygsPe1igCKxOBn1tIy4H1XDm+lZmd7LzGnYg7d3/M+femlfEsfOReuH6VIPJ
tI6+arB+1Nl2N+AvT0y2lLzdGSqJWsBFef7E+UV7IhtX+8IMgUwgbCrPN/kT1zSM
sJBYdA8JLqgtWhBJcgNuBzQ+tF/xBgnVh+JKNq2S7o2kpEhdV+Vgb0T9Z/kMJLWk
mlYLbF4hfh/Xi9TCER6CS5ohRj8h7MuInKTE80cu5JOnVSThtxIGu8o2jhCZ6ehh
vdOxSawmsMjWx7yRcZcY
=6B2X
-----END PGP SIGNATURE-----

On Thu, 29 Oct 2009 02:56:01 +0000, crayes5735 wrote:

> below is the partition details :
>
> -i wan to create a new linux primary logical partition. size = 2GB
>
> -and then create a new ext3 file system on the new logical partition.
>
> -After that mount the new ext3 file system to the new mount point
> named/database
>
> -and lasty make the new mount points as permanent so when the pc is
> reboot the mount point will mount automaticly.

Have a look at the man pages for fdisk, mkfs, and fstab.

You’ll tend to learn better if you aren’t just fed the answers. :slight_smile:

Jim


Jim Henderson
openSUSE Forums Moderator

As caf said, you are missing some important background here. Aarat from his information you could read SDB:Basics of partitions, filesystems, mount points - openSUSE.