Professional Documents
Culture Documents
Formatare Si Partitionare in Linux
Formatare Si Partitionare in Linux
Overview
This article presents the commands used to partition and format a second hard dr
ive in Linux using the ext3 file system. For the purpose of this example, I inst
alled a second hard drive in a Red Had Linux system where the drive is recognize
d as /dev/hdb. I want to make only one partition on this hard drive which will b
e /dev/hdb1.
fdisk
First, you will need to run the fdisk command in order to partition the disk. Fo
r this example, I only want to create one ext3 partition. Here is an example ses
sion:
[root@linux2 etc]# fdisk /dev/hdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklab
el
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.