1. view the new disk [root @ brief top61desktop] fdisk-culdevsdcDiskde I. view the new disk
[Root @ mongotop61 Desktop] # fdisk-cul/dev/sdc
Disk/dev/sdc: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1*512 = 512 bytes
Sector size (logical/physical): 512 bytes/
hard disk (in fact, the compatibility with the hard disk is indeed considered at the beginning of the design of the nand flash memory), its performance is also similar to the hard disk: the operation of small data blocks is very slow, the speed of big data blocks is very fast. This difference is far greater than that of other storage media. This performance feature deserves our attention.
Technical Features of nand flash memory
The basic storage unit of memory and nor flash memory is bit. Users
To create an extended partition:[Email protected] init.d]# Fdisk/dev/sdbWarning:dos-compatible mode is deprecated. It ' s stronglyrecommended toSwitch off the mode (command ' C ') and change display units toSectors (Command ' u ').Command (M for help):Command (M for help): Pdisk/dev/sdb:5368 MB, 5368709120 bytes255 heads, Sectors/track, 652 cylindersUnits = Cylinders of 16065 * 8225280 bytesSector size (logical/physical): bytes/512 bytesI/O size (mini
Liunx Adding a new hard drive is actually the same as windows, but one is graphical and the other is command-line action, but the steps are the same, and the following is a hands-on demonstration and explanationLinux mount new Hard drive 1, view hard disk information
Command: Fdisk-l
[[emailprotected] ~]# fdisk -lDisk /dev/vda: 21.5 GB, 21474836480 bytes #第一块硬盘的信息和分区信息255 heads, 63 sectors/track, 2610 cylindersUnits = cylinders of 16065 *
so on.
Listing 1. Memory sample (test1.c)
# Include
# Include
# Include "memwatch. h"
Int main (void)
{
Char * ptr1;
Char * ptr2;
Ptr1. = malloc (512 );
Ptr2 = malloc (512 );
Ptr2 = ptr1;
Free (ptr2 );
Free (ptr1 );
}
The code in Listing 1 allocates two 512-byte memory blocks, and the pointer to the first memory
array) are some common problems that may be difficult to detect. This section will discuss several debugging tools that greatly simplify the process of detecting and identifying memory problems.
MemwatchMemwatch, written by Johan Lindh, is an open-source C-language memory error detection tool. You can download it by yourself (see references later in this article ). After adding a header file in the Code and defining memwatch in the GCC statement, you can track memory leaks and errors in the pro
some common problems that may be difficult to detect. This section will discuss several debugging tools that greatly simplify the process of detecting and identifying memory problems.
MEMWATCHMEMWATCH, written by Johan Lindh, is an open-source C-language memory error detection tool. You can download it by yourself (see references later in this article ). After adding a header file in the Code and defining MEMWATCH in the gcc statement, you can track memory leaks and errors in the program. MEMWA
RAID5 disk array technology requires at least 3 disks to do, plus 1 backup disks (this hard drive device is usually idle, and will automatically be replaced if there is a hard drive in the RAID array group), a total of 4 hard disk devices that need to be emulated into the virtual machine.[[emailprotected] ~]# fdisk-ldisk/dev/sdb:2147 MB, 2147483648 bytes, 4194304 sectorsunits = sectors of 1 * 512 = Bytessector size (logical/physical): bytes/
amount of space per data chunk, default is 4KiB, minimum is 512, 64KiB Max
-F
Forcibly overwrite a file system that already exists
-Q
Silent mode
Example
1. Mount the ISO image file
[[email protected] ~] # ll * .iso
-rw-rw-r--. 1 root root 4470079488 June 20 21:04 CentOS-7.5-x86_64-DVD-1804.iso
# Create a mount point
[[email protected] ~] # mkdir -p / tmp / CDROM
[[emai
installed: ntfs-3g.x86_64 2:2017.3.23-1.el7Step 2:After the download is complete, check the disk information firstCommand:Fdisk-lThe complete situation is as follows:As can be seen below, there are SDA and SDB two disks.My SDB 250GB is a solid state drive, and the storage disk under my weindows is a few of the SDA disks, so I'll put a part of SDA[[emailprotected] sxd]# fdisk-l disk/dev/sda:1000.2 GB, 1000204886016 bytes, 1,953,525,168 sectors units = Sector of 1 * total = by TES sector siz
I. fat12
Fat12 is a file system used in the DOS era. It is still used on a floppy disk until now. After the fat12 floppy disk is formatted, it has two heads, each head has 80 cylinder (track), each cylinder has 18 sectors, and each sector has 512 bytes of space. Therefore, the total space of the standard floppy disk is:
2*80*18*512 = 1474560b = 1440 K = 1.44 m
The structure of fat12 is as follows:
1. Boot S
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.