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
First, input fdisk-l/DEV/SDA, observe the hard disk entity use case.Second, input FDISK/DEV/SDA, can enter the partition hard disk mode.1. Enter m to display all the commands listed below.2. Enter p to display the hard disk segmentation situation.3. Enter a to set the boot area of the hard drive.4. Enter N to set a new hard disk partition.4.1. Enter the E-drive as the [extended] partition (extend).4.2. Enter the P drive as [primary] partition (primary).5. Enter T to change the drive partition pr
, $errstr, $timeout);//Open Sock network connectionif (! $fp) {return ' 1. The SMTP service is not set up ';}Stream_set_blocking ($fp, true);//set to blocking mode, this mode will stop when the data is not read$mail _return=fgets ($FP, 512);//read 512 bytes of contentif (substr ($mail _return, 0, 3)! = ' 220 '){return $host. ' -2. Return the answer code to '. substr ($mail _return, 0, 3);} Refer to the "SMT
hard drive, the DISK/DEV/SDA 4T hard drive is required to be mounted.
#fdisk –l
Device Boot Start End Blocks Id System
/DEV/SDB1 * 1 512000 Linux
Partition 1 does not end on cylinder boundary.
/DEV/SDB2 36405 291908608 8e Linux LVM
disk/dev/sda:4000.8 GB, 4000787030016 bytes
255 heads, Sectors/track, 486401 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/
1, the creation of a 10G file system, the type of EXT4, requires the boot can be automatically mounted to a separate data/data directory;#fdisk/dev/sda Welcome to fdisk (util-linux2.23.2). The changes will remain in memory until you decide to write the changes to disk. Think twice before you use the Write command. Command (input m get help): P disk /dev/sda:128.8GB,128849018880 byte,251658240 sector units = sector of1*512=512bytes sector size (logical
To add a disk expansion operation:1. Add a physical disk to the server to restart the server, #fdisk-L View the identification disk (take/DEV/SDB as an example)[Email protected] ~]# fdisk-ldisk/dev/sda:42.9 GB, 42949672960 bytes255 heads, Sectors/track, 5221 cylindersUnits = Cylinders of 16065 * 8225280 bytesSector size (logical/physical): bytes/512 bytesI/O size (minimum/optimal): bytes/512 bytesDisk IDENT
number of threads in the block supported by my GPU is 512, that is, the Maxthreadsperblock attribute in Cudagetdeviceproperties. How to get this property, see the introduction to GPU programming to Master (ii) the chapter on running the first program. We use 512 threads to achieve parallel acceleration.
Well, then it's time to write a program. 1.1. Modify Code
First, add a macro definition of the number of
developed a MD2 algorithm in 1989. In this algorithm, the data is first made to complement the information, so that the byte length of the information is 16 multiples. Then, with a 16-bit check and append to the end of the message. And the hash value is computed based on the newly generated information. Later, Rogier and Chauvaud found that if the test was omitted and a MD2 conflict would arise. The MD2 algorithm's encryption results are unique-there is no duplication.
In order to enhance the
production. For the Docker storage drive, there are a lot of explanations on the Internet, if sufficient time, will translate a few comparative documents on this.
Next, we change the Docker storage to DIRECT-LVM. 03 Configuration Docker DIRECT-LVM Mode 03.01 HDD Check
Let's look at the hard drive information first.
[Root@yds-dev-svc02-node01 ~]# fdisk-l disk/dev/sda:128.8 gigabyte, 128849018880 bytes, 251658240 sectors Units = sectors of 1 * bytes = sector size (logical/physical): bytes/
To test the iSCSI service is normal
[Root@focusbackup ~]# service iSCSI Restart
Stop iSCSI: [OK]
[Root@focusbackup ~]# Chkconfig iSCSI on
[Root@focusbackup ~]# iscsiadm-m discovery-t sendtargets-p 10.5.83.131
Starting iscsid: [OK]
10.5.83.131:3260,1 Iqn.2006-01.com.openfiler:tsn.vmlocalbackup
[Root@focusbackup ~]# iscsiadm-m node-t iqn.2006-01.com.openfiler:tsn.vmlocalbackup-p 10.5.83.131-l
Logging in to [Iface:default, Target:iqn.2006-01.com.openfiler:tsn.vmlocalbackup, portal:10.5.83.1
Chown commandChown is a command used to set file owners and file associations in Unix systems. Super User Permissions are required to execute this command. OnlyOnly the file owner of a Super User and a group can change the file association group. Non-privileged users (non-Super Users) may need to set an association groupUse the chgrp command.Usage
# chown root /var/run/httpd.pid
Set the owner of/var/run/httpd. pid to root.
# chown rob:developers strace.log
Set strace. log owner to rob and the fi
The USB interface reads and writes files, that is, the USB large-capacity storage device, that is, the USB flash disk. The project mainly reads data from the SD card of the Development Board as a USB flash drive.
The knowledge involved includes the USB protocol, SCSI interface, and BOT protocol.
This article briefly records the debugging process as follows:
I. Data Analysis on serial port printing: (LBA is the fan area code, Len is the slice length, and one slice is
: not presentBSD: not presentAPM: not presentGPT: not presentCreating new GPT entries.Disk /dev/sdd: 10485760 sectors, 5.0 GiBLogical sector size: 512 bytesDisk identifier (GUID): 5ECA06B5-A105-4DCB-B6DD-96A13D0C1A93Partition table holds up to 128 entriesFirst usable sector is 34, last usable sector is 10485726Partitions will be aligned on 2048-sector boundariesTotal free space is 10485693 sectors (5.0 GiB)Number Start (sector) End (sector) Size Code
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.