Linux device and corresponding document name, hard disk partition and related knowledge

Source: Internet
Author: User
Tags ide hard drive
Linux devices and their corresponding document names, hard disk partitions, and related knowledge (1) in Linux systems, each device is treated as a file. First of all, emphasize that in Linux systems, almost all hardware device files are in the/dev directory, so you will see/dev/hda,/d...
Linux devices and their corresponding document names, hard disk partitions, and related knowledge (1) in Linux systems, each device is treated as a file. First of all, emphasize that in Linux systems, almost all hardware device files are in the/dev directory, so you will see the file names of/dev/hda,/dev/fd0, and so on. The file name of the device on www.2cto.com in Linux is IDE hard drive/dev/hd [a-d] SCSI/SATA/U disk hard drive/dev/sd [a-p] USB Flash Drive/dev /sd [a-p] (same as SATA) disk/dev/fd [0-1] printer 25-pin:/dev/lp [0-2] U disk:/dev/usb/lp [0-15] usb flash drive: /dev/usb/mouse [0-15] PS2:/dev/psaux current CDROM/DVDROM/dev/cdrom current mouse/dev/mouse tape drive IDE:/dev/ht0SCSI: /dev/st0 for the IDE interface, because an IDE cable can be connected to two IDE devices, and generally the host provides two IDE interfaces, it can be connected to up to four IDE devices. That is to say, if you already have a CD device, you can only connect three more IDE interfaces to the disk. These two IDE interfaces are usually called IDE1 (primary) and IDE2 (secondary), and the IDE devices on each cable can be divided into Master and Slave. The four IDE devices are named:
IDE \ Jumper Master SlaveIDE1 (Primary)/dev/hda/dev/hdbIDE2 (Secondary)/dev/hdc/dev/hdd (II) splitting www.2cto.com main partitions, extended partitions, and logical partitions features mainly split and extended distribution can have up to four (hard disk restrictions) extended distribution can have up to one (operating system restrictions) logical split is the split slot that is continuously cut out by the extended distribution;
After being formatted, it is divided into logical partitions as the segmentation slot for data access. Extended allocation cannot be formatted. the number of logical partitions varies according to the operating system. In Linux, the IDE hard disk can have a maximum of 59 logical partitions (numbers 5 to 63 ), the SATA hard drive has 11 logical partitions (numbers 5 to 15 ). (3) the hard drive consists of www.2cto.com sectors (Sector) as the smallest physical storage unit, with each slice 512 bytes. the slice is a circle, that is, Cylinder ), the magnetic column is the smallest unit of partition. The first sector is the most important, including: (1) Master boot record, MBR, and partition table ), MBR occupies 446 bytes, while partition table occupies 64 bytes. (4) BOOT mode: linux dd drive disk linux ks unattended installation (5) mountmount-t vfat/dev/sdb/mnt (loading USB flash drives) mount-t iso9660/dev/cdrom/mnt (load cdrom) mount-t cifs-o username = administrator // 192.168.0.1/tools/mt (mount windows with cifs) www.2cto.com mount 192.168.0.2: /var/ftp/pub/mnt (mounted to linux) cat/dev/cdrpm>. iso (made into an iso file) mount-t iso9660-o loop. iso/mt (iso file loading must be-o) umount
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.