again # mount/dev/sdb/data -- mount the disk to the created mount directory # vi /etc/fstab -- modify the Automatic startup Mount entry/dev/sdb/data ext3 defaults 0 0*************************
Description
*************************
1. the above operations are a summary. If you can understand them, you do not need to browse the following content;
2. The following are two examples to illustrate the operation process.
**************************************** ****************************************
information appears disk/dev/sda:21.5 GB, 21474836480 bytes 255 heads, Sectors/track, 2610 cylinders Units = cylinders of 16065 * 8225280 bytes Sector size (logical/physical): bytes/512 bytes I/o size (minimum/optimal): Bytes/ Bytes Disk identifier:0x000b604c Device Boot Start End Blocks Id System /dev/sda1 * 1 523 4194304, Linux P Artition 1 does not end on cylinder boundary. /dev/sda2 523 784 2097152 for Linux Swap/solaris Partition 2 does n
In the case of KVM or Xen virtualization, it is often necessary to use the mirror files (image file), we can start the guest system, and then modify the mirrored file, but this is sometimes more cumbersome, in fact, can be the image file directly mount, There are two ways to do this.method One: Find the starting position of the partition, and use the offset parameter of the Mount command to offset the unwanted before you can get the real partition. the specific steps are as follows:1. Use "Fdisk
recovery.
Disadvantage: write performance is slightly worse than RAID 0 + 1 (same read performance)
My ideas
The newly added hard disks are divided into four 1G areas, namely 1, 2, 3, and 5.
Convert each two to a RAID 1 volume/dev/md {1, 2}
Convert the two RAID 1 volumes into a RAID 0 volume/dev/md0
Convert RAID 0 to pv and vg
Then create your own space through lv
This space is RAID 1 + 0.
Detailed implementation process
Here we add a hard disk 2 for the experiment.
We do not want to resta
be displayed directly, but it is not mounted, you can click the USB flash drive with the mouse to display the file.++ ++Format a USB flash drive as an example:# Sudo umount/dev/sda1 // You must uninstall the partition first.
Format as a FAT partition# Sudo mkfs. vfat-F 32/dev/sdb1 //-F parameters must be capitalized. The parameters include and 32, which correspond to FAT12, FAT16, and FAT32 respectively.++ ++
Disk/dev/sda: 250.1 GB, 250059350016 bytes255 heads, 63 sectors/track, 30401 cylinders
integrated with the motherboard, it has become a choice for players, especially those who need large storage space, such as video and audio production.
The initial RAID is divided into different levels, each of which has its own theoretical advantages and disadvantages. Different Levels strike a balance between the two targets, increasing data reliability and increasing storage (group) read/write performance. Over the years, applications with different RAID concepts have emerged.How to Create a
disk, seeRational Planning of your hard disk partition
Iii. fdisk-lView hard disk and partition information;
Plan your hard disk partition properly, We know that the total number of primary partitions (including extended partitions) cannot exceed four, nor can we enclose extended Partitions between primary partitions. According to this principle, it is easier to divide hard disk partitions and reduce unnecessary troubles in the future;1. Use fdisk-L to view the number of hard disks mounted
1. Shut down the VM, select Settings, add the hard disk, create a virtual disk, select the SCSI type, set the disk capacity, and specify the name of the stored operating system file.
2. log on to the VM and switch to the root user,
Root @ openstack :~ # Fdisk-l
Disk/dev/SDB: 42.9 GB, 42949672960 bytes255 heads, 63 sectors/track, 5221 cylinders, total 83886080 sectorsUnits = sectors of 1*512 = 512 bytesSecto
hard disk partitions, we know that the total number of primary partitions (including extended partitions) cannot exceed four, nor can we enclose extended Partitions between primary partitions. According to this principle, it is easier to divide hard disk partitions and reduce unnecessary troubles in the future;
1. Use fdisk-L to view the number of hard disks mounted to the machine and the partition information;
[Root @ localhost beinan] # fdisk-l
Disk/dev/hda: 80.0 GB, 80026361856 bytes
255 hea
. 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/] # fdisk-l
Disk/dev/sda: 73 dot 4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Device Boot Start End Blocks Id System
/Dev/sda1 1 4 32098 + de Dell Utility
/Dev/sda2*5 2554 20482875 7 HPFS/NTFS
/Dev/sda3 2555 7904 42973875 83 Linux
/De
Linux tips 5-format a USB flash drive and linux tips 5 --
Generally, it is very easy to format a partitioned USB flash disk. You only need to use The mkfs command to specify the target file system. The example is as follows:
$ sudo fdisk -l$ sudo mkfs -t vfat /dev/sdb1
The-t parameter is the target file format. Other parameters include ext3 and msdos. The default value is ext2.We can also use the following simple command to do this:
mkdosfs(8), mke2fs(8), mkfs.bfs(8), mkfs.ext2(8), mkfs.ext
the terminal and run
sudo gparted
The gparted tool will be opened, right-click the gray unallocated area, create and format a file system in ntfs format (after the operation is complete, remember to click the application above the interface), and shut down.Install win7
Plug in the boot disk of Windows 7 after shutdown. Similar to opening the boot disk of ubuntu, install Windows 7 in the new partition.
After the installation is complete, the system will automatically enter the windows system. If
Create a USB disk for Windows Startup and installation in Ubuntu Linux
Recently, I want to burn a Windows Installation USB flash drive on Ubuntu and read some information on the Internet. However, many of them are vague, so I have taken a lot of detours. I want to help you.
First, you have a USB. Here we assume that USB is/dev/sdb In ubuntu.
1. Partition the USB device/dev/sdb. Note that if the primary partition is used,
Sudo fdisk/dev/sdbCommand (m for help): nPartition type:P primary (0 primar
How to partition in linux
Lab environment: ubuntu 12.04 LTS
1. Disconnect the VM and add a hard disk.
Scsi recommended
2. view the new Hard Disk:
Fdisk-l includes a USB flash disk.
brave@ubuntu:~$ sudo fdisk -l
Disk/dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders, total 83886080 sectors here there are 255 heads, 63 sectors, each sector has 5221 cylinders
Units = sectors of 1*512 =
capacity and partition size; for how to plan partitions for a hard disk, please refer to the following documents. Thank you;Rational Planning of your hard disk partition3. fdisk-l view the hard disk and partition information;
Through rational planning of your hard disk partitions, we know that the total number of primary partitions (including extended partitions) cannot exceed four, nor can we enclose extended Partitions between primary partitions. According to this principle, it is easier to d
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.