-----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-----