#fdisk /dev/sdb
Enter fdisk mode:
Command (m for help):p //View the partition of the new hard disk
Command (m for Help):n //Create a new partition
Command action
e extended //Enter e to create an extended partition
p primary partition (1-4) //Enter p to create the primary partition, here we choose p
Partion number (1-4): 1 //the first extended partition, according to your needs can be divided into up to 4 primary partition < Br>
First Cylinder(1-1014,default 1): 1 //The number of disk blocks starting from the first primary partition
Last cylindet or +siza or +sizeM or +sizeK: +1024MB //Can be a number in MB or a number of
disk blocks, input +1024MB to indicate that the partition size is 1G.
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
#mkfs -t ext3 -c /dev/sdb1 //If there are multiple partitions, the partition is modified to sdb2
< BR>#mkdir www //Create /www directory, we will hang the new partition to www
#mount /dev/sdb1 /www //mount /dev/sdb1 to /www
# df //View with df command
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 3771316 1388956 2190788 39% /
/dev/sda1 101089 9463 86407 10% /boot
none 62988 0 62988 0% /dev/shm
/dev/sdb1 485906 8239 452580 2% /www //
I saw this, this is the newly mounted partition.
#vi /etc/fstab
/dev/sdb1 /www ext3 defaults 1 2
tcpdump is a commonly used capture tool under the Linux command line, record the usual way, the test
#ls -l | Wc -l Note: The total usage also takes 1 row, so the statistics are 14 instead of 13 Other
Using a Linux terminal is more than just entering commands. After learning these b
Computer Store News: first Linux systems for flat panel launch For those who have tired of the N
Linux system management and maintenance - cpio command
A dual Linux system approach on a hard disk
Use the nohup command to let the linux program run in the background
Get the current system time with C under Linux
How to clear the old Linux kernel
Linux Standard Input/Output Tutorial
Nfs optimization configuration test tutorial
Steps to modify the original Linux hostname
Various Linux common fault solutions
Disk partitioning under Linux, file system formatting and raid device
How to solve IE browser can not open HTTPS?
Win10 transform window border and taskbar color method
How to manually switch the tablet mode of Windows10 system win10 switch tablet mode graphic tutorial
Win7 system to achieve 3D window browsing and switching method
What should I do if the official version of Win10 is blacklisted for the first time?
Win8 method of installing XenServer
How does Win8 fix the icon to the start screen?
WP8.1 officially supported by Bing Rewards
Windows 7 IIS installation and configuration tutorial (graphic)