Linux disk operation commands (dh du fdisk mkfs. ext3), dhmkfs. ext3
Thank you for your support of this blog. You are welcome to discuss and exchange ideas. Due to your limited ability and time, mistakes are inevitable. please correct me!
If the source author's blog information is reprinted, keep the source author's blog information.Better Me blog: blog.csdn.net/tantexian
If you need to contact us, you are welcome to leave a message on your blog.
How to Use the quot; fdisk-l quot; command in Ubuntu? -- Linux general technology-Linux technology and application information. For details, refer to the following section. I can use fdisk-l to view the information under the red flag,
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick
Tags: view system c51 FFFFFF Linu partition help share picture exit typefdisk可以对硬盘进行分区,采用传统的问答式界面。能划分磁盘成为若干个区,同时也能为每个分区指定分区的文件系统,比如linux 、fat32、 linux 、linux swap 、fat16 以及其实类Unix类操作系统的文件系统等。下面为大家介绍分区管理工具fdisk的使用。1. View partitions:Fdisk-l [-u] [device ...] list specified device disk partition information2. Manage Partition steps:First step: FIDSK/DEV/SDA: Select the disk to be operated on, this is the SDA mobile disk operationStep Two: Enter [option]
Tags: cylinder FST linu get two BSP using EXT3 problemKnowledge Points:Mbr:master boot record master boot recorded on hard disk 0 cylinder 0 head of the first sector, accounting for 512 bytes (3 part of the Master Boot program 446 bytes, hard disk partition table Dpt[disk partion table]16*4 Bytes, partition valid flag 55AA has 2 bytes) , so the maximum manageable 2T hard drive.Steps to add a hard disk:Add device--partition--format (create file system)--name--Modify configuration file (/etc/tab)-
11.2.0.3 the database crashed due to damage to the asm disk header block and encountered an incorrect ORA-15196.More detailed error: ORA-15196: invalid ASM block header [kfc. c: 26076] [endian_kfbh] [256] [0! = 1]Further checks have found that the primary and standby databases are also damaged. This makes everyone confused. Why is the primary and standby databases damaged at the same time?
After careful inspection, we found that:SA finds that a disk on the host is useless, and
To add a hard disk for linux, you need to partition the disk before formatting it, and mount the partition before using it.
Disk Partition
A hard disk can have a maximum of four primary partitions. the larger partitions need to be placed in the extended partition. The information is stored in the MBR (master boot recorder) of the disk, that is, the primary boot partition;
MBR is located in the hard disk's 0-track, the first hard disk to be read. when the MBR is damaged, the entire hard disk will
A description of some numerical values of fdisk-l;disk/dev/hda:80.0 GB, 80026361856 bytes255 heads, Sectors/track, 9729 cylindersUnits = Cylinders of 16065 * 8225280 bytesThis hard drive is 80G, has 255 magnetic surface, 63 sectors, 9,729 magnetic columns, each cylinder (magnetic column) capacity is 8225280 bytes=8225.280 K (about) =8.225280m (about);Partition sequence boot start terminating capacity partition type ID partition type/DEV/HDA1 * 1 765 6
11.2.0.3 the database crashed due to damage to the ASM disk header block and encountered an incorrect ORA-15196.More detailed error: ORA-15196: Invalid ASM block header [KFC. C: 26076] [endian_kfbh] [256] [0! = 1]Further checks have found that the primary and standby databases are also damaged. This makes everyone confused. Why is the primary and standby databases damaged at the same time?
After careful inspection, we found that:Sa finds that a disk on the host is useless, and
Yesterday friend encountered a database failure case:The 11.2.0.3 database crashed due to an ASM disk header block, and an error ORA-15196 occurred.More detailed errors are as follows: Ora-15196:invalid ASM block Header [kfc.c:26076] [ENDIAN_KFBH] [256] [0!= 1]Further inspection found that the Dataguard was also damaged. This is confusing to everyone, why is the primary and the repository corrupted at the same time?
Finally after careful examination found:Is that the SA found a disk on the host
I can not use the Chinese input method, so bad, but I had to memorize some stuff about using Ubuntu, Yesterday I found I can not login to my Ubuntu system, I donnot know why, so search all q/a in website, some advice listed: 1. Environment is wrong, directory in Etc/profile, etc/env, ETC/BASHRC 2.system disk is full I am pretty sure my question is 2. So I went to recovery mode to check my diskspace,but under root user no file and command can not use, file is ReadOnly, Command no authority,fuck.s
Fdisk is a high-risk operation and should not be easily tried and used.Manage disk partition tables-b Specifies the minimum sector size is 512 the other value must be a multiple of 512, the maximum is 4096-c Specifies the compatibility mode parameter is Nondos, if you want to modify the parameters, then there is no space between the options and parameters-c=dos the system does not recommend modifying parameters-c specifies that the cylinder system is
Disk-related knowledge:
1, the hard disk has several platters, each disc two faces each has a head
2, the disc is divided into multiple sectors
3. Concentric circle with different radius of the same disc as the track
4, the same radius of different discs of the cylindrical surface is cylindrical
FDISK command:
1. View the disk devices that have been identified:
[Email protected] ~]# f
Turn http://www.cnblogs.com/chenmh/p/5096592.htmLOverviewThe server we manage may be running out of disk space as the volume of traffic grows, and at this point we need to increase disk space, this chapter mainly describes how to use the Fdisk partitioning tool to create disk partitions and mount partitions, two cases, one is to the original disk of the remaining space to increase the partition, The second is to partition the newly added disk.Extended
suspension.
3. usage of the partitioning tool fdiskFdisk Command ParametersP. Print the partition table.N. Create a New partition.D. delete a partition.Q. Exit and do not save.W. Write the partition into the partition table, save and exit.Instance:[Root @ localhost ~] # Fdisk/dev/HDD
Press "p" to print the Partition Table
This hard disk has not been partitionedPress "N" to create a partition.
Two menu e is displayed, indicating the
All Machine Hardware information:DMESG |moreCPU Information:Cat/proc/cpuinfo See how many coresMEM Memory:Cat/proc/meminfoFree-mTopDisk Information:Df-th viewing the size of each directory on a diskFdisk-h view disk partition and size information, including USB flash driveCat/proc/partitionsNET NIC information:Ethtool em1 Specify to view NIC informationIfconfigCat/etc/sysconfig/network-scripts/ifcf-em1Motherboard information:LspciCENTOS7 Hardware information Query Cpu,mem,
Thank you for your friends to support this blog, welcome to discuss the exchange, due to limited capacity and time, mistakes are unavoidable, please correct me! Better Me blog : Blog.csdn.net/tantexian If you need to communicate, welcome to blog message.FDISK/DEV/SDA can be partitioned on SDA. mkfs.ext4/dev/sda1 the SDA1 partition in the appeal can also be formatted directly MKFS.EXT4/DEV/SDA the entire SDA partitionMount /dev/sda1/mnt mounts/dev/sda1 to/mnt Linux disk Operations related
Annotations:Command (M for help): pressing m here will output assistance:Command ActionA toggle a bootable flagb Edit BSD DisklabelC Toggle the DOS compatibility flagD Delete a partition note: This is the action of deleting a partition;L list Known partition types Note: L is a list of partition types for us to set the corresponding partition type;M Print this menu note: M is a list of help information;n Add a new partition note: Add a partition;o Create a new empty DOS partition tableP Print the
To ensure the integrity of the file system, the system every few days or restart a few times after the complete inspection, which is really necessary for workstations and servers. However, for personal and household systems, some adjustments can be made using TUNE2FS tools. Suppose the root file system is on a/dev/hda1, such as an adjustment to check the root file system for a full load of 100 times every 2 times:
The code is as follows
Copy Code
# tune2fs-c 100/DEV/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.