logo
logo
Sign in

Step 1: Develop a partition

avatar
Weiss Steenberg
root # fdisk / dev / hadà in to the newly added really hard disk
Thenumberofcylindersforthisdiskissetto10402.
Thereisnothingwrongwiththat, butthisislargerthan1024,
andcouldincertainsetupscauseproblemswith:
1) softwarethatrunsatboottime (e.g., oldversionsofLILO)
2) bootingandpartitioningsoftwarefromotherOSs
(e.g., DOSFDISK, OS / 2FDISK)
Command (mforhelp): nà generate a brand new partition
Commandaction
eextended
pprimarypartition (1-4)
pà build a principal partition
Partitionnumber (1-4): 1à the newly produced primary partition quantity
Firstcylinder (1-10402, default1):
Usingdefaultvalue1
Lastcylinderor + sizeor + sizeMor + sizeK (1-10402, default10402): + 500Mà Generate key partition size
Command (mforhelp): wà save the designed primary partition
Step 2: Make the newly produced partition effective straight away within the system
root # partprobe
Step three: Format the newly produced partition
[root @ server ~] # mkfs.ext3 / dev / hda1
mke2fs1.39 (29-May-2006)
Filesystemlabel =
OStype: Linux
Blocksize = 1024 (log = 0)
Fragmentsize = 1024 (log = 0)
122400inodes, 488848blocks
24442blocks (five.00%) reservedforthesuperuser
Firstdatablock = 1
Maximumfilesystemblocks = 67633152
60blockgroups
8192blockspergroup, 8192fragmentspergroup
2040inodespergroup
Superblockbackupsstoredonblocks:
8193,24577,40961,57345,73729,204801,221185,401409
Writinginodetables: done
Creatingjournal (8192blocks): done
Writingsuperblocksandfilesystemaccountinginformation: carried out
Thisfilesystemwillbeautomaticallycheckedevery27mountsor
180days, whichevercomesfirst. https://download.cnet.com/Idoo-File-Encryption-Pro/3000-2092_4-75628416.html -cor-itooverride.
[root @ server ~] #
Step 4: Mount the newly designed partition in the / mnt / rhce01 directory
Root # mount / dev / hda1 / mnt / rhce01
Step 5: Make the mount still valid soon after the technique restarts
root # vim / etc / fstabà edit this file, add the following line to create the mount successful after restart;
LABEL = / 1 / ext3defaults11
tmpfs / dev / shmtmpfsdefaults00
devpts / dev / ptsdevptsgid = 5, mode = 62000
sysfs / syssysfsdefaults00
proc / procprocdefaults00
LABEL = SWAP-sda3swapswapdefaults00
/ dev / hda1 / mnt / rhce01ext3defaults00
a different:
Just before adding a really hard disk for the host, we must 1st have an understanding of the best way to name challenging disks and partitions beneath the Linux program. Beneath Linux, the SCSI device is named sd, the first scsi device is sda, along with the second is sdb. So on and so forth
Typically, you will find two SCSI interfaces around the motherboard, as well as a total of four SCSI devices could be installed. The two devices around the main SCSI correspond to sda and sdb, respectively, and also the two devices around the second SCSI port correspond to sdc and sdd.
Typically, the hard disk is installed on the most important interface from the main SCSI, so it really is sda or sdb, plus the optical drive is frequently installed on the primary interface on the second SCSI, so it truly is sdc.
(IDE interface device is named with hd, the first device is hda, the second is hdb. And so on.)
The partition is named just after the device name plus a quantity. As an example, hda1 represents the initial partition on the challenging disk device hda.
Each and every tough disk can have as much as four major partitions, the role is 1-4 to name the principal partition with the really hard disk. file encryption system begins from 5, and for every single further partition, the number is often increased by 1.
1. Partition the really hard drive
fdisk / dev / sda
Command (mforhelp): n
Commandaction
eextended
pprimarypartition (1-4)
Enter: e
Partitionnumber (1-4): 1
Firstcylinder (1-9729, default1): Enter
Lastcylinderor + sizeor + sizeMor + sizeK (1-9729, default9729): Enter
Command (mforhelp): w (save and exit)
2. Format the tough drive
fdisk-l
mkfs-text3 / dev / sda1
Writingsuperblocksandfilesystemaccountinginformation: Enter directly.
three. Mount
mount / dev / sda1 / test
4. Mount straight at boot
Edit / and so forth / fstab file
Add: / dev / sda1 / testext3defaults11
Soon after restarting, the distribution is already mounted. This short article is from the 'RichardShen O \u0026 M / Architecture' weblog, please keep this supply http://lxsym.weblog.51cto.com/1364623/321643
collect
0
avatar
Weiss Steenberg
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more