Flash Game

Showing posts with label common. Show all posts
Showing posts with label common. Show all posts

Thursday, October 27

simple learn how to create a partition after install new hdd in linux

step1: Create the Partition
The first command we want to run is fdisk /dev/sdb.
To create a new partition enter the command n to create a new partition. This is going to be a primary partition p, and the first partition number 1.
Then want to write the partition table with the new partition just created so enter the command w which writes the new table and exits fdisk.




step 2: Format the partition and create file on new disk
To format the new partition enter the command mkfs -t ext3 /dev/sdb1. This command makes a new files system with the type t ext3 on the /dev/sdb1 partition, this is the first partition on the sdb disk.
That command will make the file system on the sdb drive with extend 3 as the file system type.



step 3: Create the mount point
Run mount -t ext3 /dev/sdb1 /software. To break down this command we run mount with the ext3 filesystem type, the partition /dev/sdb1 to the directory /software.
To check that the partition is properly mounted run df -k which shows us the mounted partitions and the amount of available space.