Original article: ext2/ext3 Structure Analysis (Part 1)
Http://bbs.chinaunix.net/thread-3669811-1-1.html
Ext2/ext3 Structure Analysis
The number of words is 2-20 000 ..Certificate ---------------------------------------------------------------------
UUID (Universally unique IDentifiers), a globally unique identifier. It is a string that identifies the storage device in the system so that it determines all the storage devices in the system.
Why should I use UUID? Because the system
The focus of the previous blog post is actually the overall organizational framework of ext2. We know that the ext2 file system is composed of block groups, and the organizational structure of each block group is as follows. We even directly present
Write in front: when the partition needs to be formatted, the operating system can use the partition. will be formatted according to the file attributes/permissions set by the operating system as supported by the operating system.The cousin Linux
In linux, any file has an inode corresponding to it. That is to say, in a file system, a file has a unique ino to mark it, in the ext4 system, how does ino determine?
When we create a new file or directory, the ext4_create function is called. The
Method One:
First, view the current system partition situation:
>free-m
Create a file for the swap partition:
>dd If=/dev/zero of=/whatever/swap bs=block_size (10M) count=number_of_block (3000)
Third, set up swap partition files:
Method 1:
1. view the current partition of the system:
> Free-m
2. Create a file for swap partition:
& Gt; dd if =/dev/zero of =/whatever/swap bs = block_size (10 M) count = number_of_block (3000)
3. Set swap partition files:
> Mkswap/export/swap/
Linux disk and file system
Formatting
Because each file system settings set the file attributes/permissions are not the same, in order to store the data, you need to format the partition, such as in the Linux file system, there is,,
In the previous three articles, we briefly introduced the Linux system user management, file operation and so on, are relatively superficial basic operations. We're going to go into this section, from the filesystem we want to see the disk system.
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.