Copy Code code as follows:
Fdisk–l
----------------------------------------------------------------------------
disk/dev/sda:10.7 GB, 10737418240 bytes
255 heads, Sectors/track, 1305 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Disk identifier:0x000af383
Device Boot Start End Blocks Id System
/DEV/SDA1 * 1 1244 9992398+ Linux
/dev/sda2 1245 1305 489982+ 5 Extended
/dev/sda5 1245 1305 489951 Linux Swap/solaris
disk/dev/sdb:5368 MB, 5368709120 bytes
255 heads, Sectors/track, 652 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Disk identifier:0x00000000
Disk/dev/sdb doesn ' t contain a valid partition table
----------------------------------------------------------------------------
1
See the newly added hard drive is/deb/sdb, but there are no partitioned tables
3. Zoning
Copy Code code as follows:
There are many options, select M
Then select n
Then select P
Then select 1
Then there are two more options
Copy Code code as follows:
The Cylinder (1-1014,default 1):
Last Cylindet or +siza or +sizem or +sizek:
I have chosen the default, then enter W, save, exit
4. Format the partition
Copy Code code as follows:
sudo mkfs-t ext3/dev/sdb1
5. Mount Partition
Copy Code code as follows:
sudo mkdir/www//Create new mount point, install MATLAB with
sudo mount/dev/sdb1/www
sudo df
6. Automatic mount on Boot
Copy Code code as follows:
Vi/etc/fstab//Modify this file, or use Gedit.
And then add to the end
Copy Code code as follows:
Dev/sdb1/www ext3 Defaults 1 2
This boot, you can mount the WWW!