the hard drive because of misoperation.
Correct way to partition hard disk
After understanding the proper installation and use of the hardware, let's take a look at how to partition the hard disk and how to properly partition it.
The new hard drive will not boot the system until it is partitioned and formatted. We can boot the system through bootable discs, such as the win98/me boot CD, or floppy disks with bootable features. If your system does not yet support this startup mode, go to the
to log on to the root account and start HyperTerminal, and after the system prompt "#", use the fdisk–l command to view the partition of the local disk, to determine the presence of the new disk in the system (that is,/dev/sdb), and if not, check that the hard drive is properly installed.
The second step is to use the FDISK command to create a new file system partition on the new disk (/DEV/SDB) (Specific
disc image file/home/sunky/mydisk.iso, the disc is labeled: Mydisk3. Mounting of the disc image file (Mount)#mkdir/mnt/vcdromNote: Create a directory to use as a mount point#mount-O loop-t iso9660/home/sunky/mydisk.iso/mnt/vcdromNote: You can access all the files in the disk image file Mydisk.iso using/mnt/vcdrom.Hooking up a removable hard diskFor Linux systems, the USB interface's removable hard disk is treated as a SCSI device. Before inserting a removable hard disk, you should first use
,it does not belong to any partition, it is used to identify the partition information we created, etc.0 Track 0 sector size is not counted in the partition446bytes:boot Loader master boot record 64bytes: Partition table 16bytes: Identify a Partition " so a mechanical hard disk can only be divided into 4 primary partitions, or 3 primary partitions + extended partitions (n logical partitions)" 2bytes:5 5AA to identify the endPractical Walkthrough: (To Know what "DD" command is)# backup MBRDD if
Detect and confirm a new hard driveExecute the "fdisk-l" command to view and confirm the device name and location of the new drive.The purpose of the FDISK-L command is to list information about all hard disk devices and their partitions in the current system.For example: [[email protected] ~] #fdisk-LOmitted...........Device Boot Start End Blocks Id System/DEV/S
partition processing.
Partition:
Method 1: Mount
Fdisk command: fdisk-L: print the current disk partition table. At this time, we can see that the total number of disks has indeed increased to 4 GB, but the partitions are only those original partitions.
Run the following command: fdisk/dev/SDA. "SDA is the resized hard disk, which is a SCSI hard disk, and an ide
How do I create partitions for Red Hat Linux?
Linuxman
[Back] [forward 〗
How do I create partitions for Red Hat Linux?How to Create partitions for Red Hat LinuxWhen I first installed Linux, I had a lot of detours, especially in hard disk partitioning.Druid is a hard disk management tool used for installation in Red Hat Linux. It can create and delete hard disk partitions according to user requirements. It can also manage loading points for each partition.Fdisk is a traditional Linux har
attaching www.2cto.com. This is a problem we encounter when playing linux servers. According to the initial plan, you have a GB hard disk on linux, after a while, it is not enough. What should I do? Replace a 1 TB hard disk, reload the system, and copy the original data to the new hard disk. This method is acceptable, but too stupid. Simply add a hard disk to the original system. What we need to know now is how to let the newly added hard disk work for us.Settings --- Add a new virtual hard dis
disk capacity ). Finally, it is the specific file of the Virtual Machine disk to be operated. If there is a space in the path name, it must be enclosed in double quotation marks. Press enter to start execution. After the execution is complete, exit the Command Prompt window and restart VMware. The hard disk space of the virtual machine is 4 GB. After the VM is restarted, it is found that the hard disk of the VM is 4 GB, but after entering the Linux system, use "df-ah" to check whether the hard
directories and files under the/home/sunky/mydir Directory into a CD image file/home/sunky/mydisk. ISO, and the disc volume is marked as mydisk.
3. Mount the disk image file)
# Mkdir/mnt/vcdrom
Note: create a directory for mount point)
# Mount-o loop-T iso9660/home/sunky/mydisk. ISO/mnt/vcdrom
Note: You can use/mnt/vcdrom to access all files in the disk image file mydisk. ISO.
Mount a mobile hard drive
For Linux systems, mobile hard disks with USB interfaces are treated as SCSI devices. Before
Article Title: a good way to view disk space in Linux. Linux is a technology channel of the IT lab in China. Includes desktop applications, Linux system management, kernel research, embedded systems and open source, and other basic classification I. df commands;
Df comes from the coreutils software package and comes with it during system installation. We can use this command to view the disk usage and the location where the file system is mounted;
Example:
[Root @ localhost beinan] # df-lh
been partitioned, the specified file system, so the Linux operating system cannot be identified (in fact, it is equivalent to your physical hard disk, although large, but you didn't partition it ). Next we will perform partition processing. Www.2cto.com 3. partition: fdisk command: fdisk-l: print the current disk partition table. at this time, we can see that the total number of disks has indeed increased
disk image file mount # mkdir/mnt/vcdrom note: create a directory for mount point) # mount-o loop-t iso9660/home/sunky/mydisk. iso/mnt/vcdrom Note: Use/mnt/vcdrom to access the disk image file mydisk. all the files in iso. For linux systems, USB-connected mobile hard disks are treated as SCSI devices. Before inserting a mobile hard disk, use fdisk-l or more/proc/partitions to view the system's hard disk and hard disk partition. [Root at pldyrouter/]
use another "file name" to read the correct file data. In addition, no matter which "file name" is used for editing, the final result will be written to the same inode and block, so data can be modified. Restriction: you cannot connect to directories across file systems. Symbolic link (symbolic link, or shortcut) creates an independent file, which allows data reading to point to the file name connected to it. After the source file is deleted, the symbolic link file cannot be opened: the symboli
/home/sunky/mydir Directory into a CD image file/home/sunky/mydisk. iso, and the disc volume is marked as mydisk.3. mount the disk image file)# Mkdir/mnt/vcdromNote: create a directory for mount point)# Mount-o loop-t iso9660/home/sunky/mydisk. iso/mnt/vcdromNote: You can use/mnt/vcdrom to access all files in the disk image file mydisk. iso. Mount a mobile hard driveFor linux systems, mobile hard disks with USB interfaces are treated as SCSI devices. Before inserting a mobile hard disk, use
Command for creating a partition:
Command Format: fdisk + device type can create up to 15 partitions12 # fdisk-l ------ // list the partition information of all disks # fdisk-l/dev/sda ---- // view the partition information of the sda Disk
Figure 1
123456 Linux: Sda [1-4] S (interface type) da1: first primary partition Sda2: Second Primary partition Sda3: Thir
/vcdromDescription: Create a directory to use as a mount pointCopy CodeThe code is as follows:#mount-O loop-t iso9660/home/sunky/mydisk.iso/mnt/vcdromDescription: Use the directory/mnt/vcdrom to access all files in the disk image file Mydisk.iso.Third, mount the removable hard driveFor Linux systems, the USB interface's removable hard disk is treated as a SCSI device.Before inserting a removable hard disk, you should first use Fdisk–l or more/proc/par
directories and files in the/home/sunky/mydir directory into a disc image file/home/sunky/mydisk.iso, the disc is labeled: Mydisk3. Mounting of the disc image file (Mount)#mkdir/mnt/vcdromNote: Create a directory to use as a mount point#mount-O loop-t iso9660/home/sunky/mydisk.iso/mnt/vcdromNote: You can access all the files in the disk image file Mydisk.iso using/mnt/vcdrom. Hooking up a removable hard diskFor Linux systems, the USB interface's removable hard disk is treated as a SCSI device
, the disc is labeled: Mydisk3. Mounting of the disc image file (Mount)#mkdir/mnt/vcdromNote: Create a directory to use as a mount point#mount-O loop-t iso9660/home/sunky/mydisk.iso/mnt/vcdromNote: You can access all the files in the disk image file Mydisk.iso using/mnt/vcdrom. Hooking up a removable hard diskFor Linux systems, the USB interface's removable hard disk is treated as a SCSI device. Before inserting a removable hard disk, you should first use F
mount pointThe code is as follows:#mount-o loop-t iso9660/home/sunky/mydisk.iso/mnt/vcdromDescription: Use the directory/mnt/vcdrom to access all files in the disk image file Mydisk.iso.Third, mount the removable hard driveFor Linux systems, the USB interface's removable hard disk is treated as a SCSI device.Before inserting a removable hard disk, you should first use Fdisk–l or more/proc/partitions to view the system's hard disk and hard disk partit
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.