In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the relevant knowledge of "what are the differences between disk partitions under windows and linux". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
After factory initialization, if we want to use the computer disk, we have to partition it. Due to the limitation of MBR partition table, it can be divided into 4 main partitions at most. If we want more partitions, we can divide them into 3 primary partitions and 1 extended partition, and the extended partition can be divided into multiple logical partitions.
Next, if the windows system and the linux system are going to access the partition of the disk, you need to do the following:
1.windows wants to visit
(1) assign the file system type to the partition, such as FAT16, or FAT32, or NTFS.
(2) assigning a drive letter to the partition, such as D disk, can also be thought of as mounting one of the partitions to my computer / D disk directory.
Next, the operation on disk D, such as writing a file, is actually done in the corresponding disk partition.
2.Linux wants to visit
(1) assign the file system type to the partition, for example, set to ext2, ext3, etc.
(2) since we cannot directly access the disk partition, we need to mount the corresponding partition to a directory. Under windows, you can see each partition in the graphical interface (disk Manager), so you can assign drive letters, but you can't see the partition under linux. Instead, you give each partition a name, which exists in the form of a file, such as (sda1, where sd represents the disk of sata interface, hd represents the disk of IDE interface; a represents the first disk, and if there is another disk, then b) 1 represents the first primary partition of the disk, 2, 3 and 4 represent the 2nd, 3rd and 4th partition, and 5 represents the first logical partition. You can then mount a partition of the disk to a specific directory, such as mounting sda2 to the / home directory.
Next, the operation on / home, such as writing a file, is actually done in the corresponding disk partition.
By the same token, if the computer is connected to another flash drive, then:
(1) windows can access it by assigning it a drive letter, and its specific device can be viewed in device Manager.
(2) linux can mount it under the / media directory and access it, and its specific device can be found in the / dev directory.
In short, in windows, you don't need to think deeply to understand, but under linux, you can understand everything (mouse, hard disk, USB disk, process, etc.) as a file.
This is the end of the content of "what is the difference between the expression of disk partitions under windows and linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.