In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "what is the representation of storage devices in Linux system". In the operation of actual cases, many people will encounter such a dilemma, so 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!
The second representation of hard disk partition (hd [0Murn], y)
As we have mentioned earlier, there are two ways to represent the whole hard disk, one is / dev/hd [a murz], and the other is hd [0murn]
A hard disk partition must first confirm which hard drive it is in, and then confirm its location; for example, if I live in the YYY room of the XXX Hotel, I just tell someone that I am not enough in the XXX Hotel, but also tell him the YYY room, so that the person who comes to me can find me. So if we want to know a hard disk partition, we should not only know / dev/hd [a murz], but also know where he is, that is, the aforementioned statement of / dev/hd [a murz] X, after confirming that the partition is / dev/hd [a murz], we also need to use X to confirm the specific location.
In this title, we are talking about another representation (hd [0murn], y), hd [0murn] We know that this is one of the representations of hard disk, if you don't understand, please take a look at the previous thing; what does y mean here? The value of y is Xmur1 in / dev/hd [a murz] X
Use examples to understand it.
[root@localhost] # fdisk-l Disk / dev/hda: 80.0 GB, 80026361856 bytes 255heads, 63 sectors/track 9729 cylinders Units = cylinders of 16065 * 8225280 bytes Device Boot Start End Blocks Id System / dev/hda1 * 1,970 7791493 + 7 HPFS/NTFS / dev/hda2 971 9729 70356667 + 5 Extended / dev/hda5 971 2915 15623181 b W95 FAT32 / dev/hda6 2916 4131 9767488 + 83 Linux / Dev/hda7 4132 5590 11719386 83 Linux / dev/hda8 5591 6806 9767488 + 83 Linux / dev/hda9 6807 9657 22900626 83 Linux / dev/hda10 9658 9729 578308 + 82 Linux swap / Solaris
/ dev/hda1 equivalent (hd0,0)
/ dev/hda2 equivalent (hd0,1) Note: look, this is an extended partition. It cannot be mounted in Linux or Windows.
/ dev/hda5 equivalent (hd0,4)
/ dev/hda6 equivalent (hd0,5)
/ dev/hda7 equivalent (hd0,6)
/ dev/hda8 equivalent (hd0,7)
......
/ dev/hda10 is the same (hd0,9)
If there is only one hard disk in the machine, whether through / dev/hda or / dev/hdb in Linux, the method represented by hd [0murn] is hd0;, so if you list on the hard disk is
[root@localhost] # fdisk-l Disk / dev/hdb: 80.0 GB, 80026361856 bytes 255heads, 63 sectors/track 9729 cylinders Units = cylinders of 16065 * 8225280 bytes Device Boot Start End Blocks Id System / dev/hdb1 * 1,970 7791493 + 7 HPFS/NTFS / dev/hdb2 971 9729 70356667 + 5 Extended / dev/hdb5 971 2915 15623181 b W95 FAT32 / dev/hdb6 2916 4131 9767488 + 83 Linux / Dev/hdb7 4132 5590 11719386 83 Linux / dev/hdb8 5591 6806 9767488 + 83 Linux / dev/hdb9 6807 9657 22900626 83 Linux / dev/hdb10 9658 9729 578308 + 82 Linux swap / Solaris
For only one hard disk in the machine, if the partition table listed by fdisk-l is the partition table of / dev/hdb, the corresponding relationship is the same as the partition table listed by / dev/hda
/ dev/hdb1 equivalent (hd0,0)
/ dev/hdb2 equivalent (hd0,1) Note: look, this is an extended partition. It cannot be mounted in Linux or Windows.
/ dev/hdb5 equivalent (hd0,4)
/ dev/hdb6 equivalent (hd0,5)
/ dev/hdb7 equivalent (hd0,6)
/ dev/hdb8 equivalent (hd0,7)
......
/ dev/hdb10 equivalent (hd0,9)
Note: if there are two hard drives in the machine, another representation of / dev/hda is hd0,/dev/hdb, which is hd1;, so we understand the writing of (hd [0Mutual], y); so that the machine only has a single hard disk or multiple hard drives.
This is the end of the content of "what is the representation of storage devices in the Linux system". 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: 240
*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.