(Linux)Command (M for help): w//Save partitionThe partition table has been altered!Calling IOCTL () to re-read partition table.Warning:re-reading the partition table failed with error 16:device or resource busy.The kernel still uses the old table.The new table is used at the next reboot.Syncing disks.[[email protected] ~]# PARTPROBE/DEV/SDB//Let the kernel reread the partition table[[email protected] ~]# cat/proc/partitions//Ensure kernel reread partition table completeMajor Minor #blocks name8
Linux dd command to create a USB flash drive
As the boot Disk of the USB flash drive, Ubuntu has a graphical interface tool Startup Disk Creator, which is easy to use, but the disadvantage is that it can only be used to create the boot Disk of Ubuntu, which is not supported by other systems. What should I do if I want to create a Fedora system boot disk under Ubuntu? It doesn't matter. What about dd command
in the in Linux, the ability to read and write disks is a very necessary task. Although there are some very professional software to do this, but in some cases, due to technical limitations, or users do not need to be professional, it is necessary to consider the Linux Embedded command DD, it is an easy-to-use, and the function of a slightly powerful command. First, the first thing to know about two special devices/dev/null : Recycle Bin, bottomless p
.
-X: only the files and directories on the device where the specified path is located are traversed.
-H: the size of the disk usage plus the unit suffix is displayed as a form that is easier to understand.
Example
Total directory size in KB units:
$ du -sk * 152304 directoryOne 1856548 directoryTwo
More easily read the total directory size format (Byte, KB, MB, GB, TB, PB ):
$ du -sh * 149M directoryOne 1.8G directoryTwo
The current directory contains hidden files, and the disk usage of subd
Div ID = "Divcityframe" > Span Onmouseover = "Showdivcity ();" Onmouseout = "Hiddendivcity ();" > A Href = "Javascript: void (0 )" > Show City A > Span > Div ID = "Divcity" Onmouseover = "Showdivcity ();" Onmouseout = "Hiddendivcity ();" > Ul > Li > A Href = "11" > A A > Li > Li > B Li > Li > C Li > Li > D Li > Ul > Div > Div >
Body { Margin :0 auto ; Width : 500px ;} #
+ "','" + Mytechnical + "', to_date ('" + mybirthday + "', 'yyyy-MM-DD'), '" + myemail + "', '"+ mytelephone
To_date ('','') does not need to be added to an SQL statement, but the preceding format must be used to obtain the variable.
1. Use Oracle functions:
To_timestamp_tz ('2017-3-9 17:51:23. 23-05:00 ', 'yyyy-MM-D hh24: MI: Ss. FF tzh: tzm ')
To_date (yourdate, 'yyyy-MM-D hh24: MI: ss'); // string to date
T0_char (yourdate, 'yyyy-MM-D hh24: MI: ss
Please indicate the original source (http://blog.sina.com.cn/wyw1976) and author's email (wyw1976@gmail.com)
DD is a commonly used command on Linux. For example: DD if=/1.txtof=/tmp/2.txt(where the if represents the input file;of on behalf of output file, the result of the command is to copy the 1.txt contents of the root directory to 2.txt in the/tmp directory.) )
Of course, it's obviously a lot more to
entire disk. However, I tried for a long while, there is no way to achieve the recovery of one or several partitions.G4L, still too weak, can not meet my requirements!The Magic fdisk and DD commandsDeep distress, the epiphany: what is the principle of magical ghost? Is it data replication? The DD command under Linux is not the most powerful data replication tool!So why should I use a complex tool like g4l?
] ~]# partprobe partprobe notify kernel Reread partition table, let kernel recognize new partition[Email protected] ~]# cat/proc/partitionsMajor Minor #blocks name8 0 20971520 SDA8 1 204800 sda18 2 8192000 Sda28 3 4096000 Sda38 4 1 SDA48 5 2048000 Sda58 6 2048000 Sda68 7 1536000 Sda78 8 1024000 The SDA8 kernel has identified the new partition, only the partition can be formatted, mounted, and so on. [[email protected] ~]# mke2fs-t ext4/dev/sda8 format/dev/sda8 partition as EXT4 type[[emailprotec
A few days ago to see brother Liao about using JavaScript check YYYY-MM-DD format of the article, debugging a bit, found wrong, now give the correct source code, welcome to advise.
Program under the PWIN98,PWS, but there are two points do not understand, please enlighten us!
1, if using var Date1 = new Date (2000,12,31); , Date1 will get 2001,1,31.
The month automatically adds 1.
2, the format of new date (2000,12,31) is different from the new date (1
function timestamp2string (time) {var datetime = new Date ();Datetime.settime (time);var year = Datetime.getfullyear ();var month = Datetime.getmonth () + 1 var date = Datetime.getdate () var hour = datetime.gethours () var minute = Datetime.getminutes () var second = Datetime.getseconds () Return year + "-" + month + "-" + Date + "" + Hour + ":" + Minute + ":" + second;}JSON date format converted to Yyyy-mm-dd-hh-mm-ss
This command notifies the system to replicate data from the underlying, not through the file system.If source file of target fileBS Specifies how much data is copied each time during the copy processCOUNT specifies how many times (each BS data amount) is copied during the copy processThe second operation is just a copy of the source file part of the contentCopy DiskDD IF=/DEV/SDB1 OF=/DEV/SDB2Backup MBRDD If=/dev/sdb Of=/tmp/a/mrb.bak bs=512 count=1How to quickly delete a disk partition tableDD
ArticleDirectory
Table data list
Data list of DL, DT, and dd
In the past, many web designers liked to use table layout to form a Web page. However, it would be quite difficult to debug and maintain the web page later. Nowadays, more and more front-end developers begin to use XHTML + CSS to replace the original table layout to complete the overall layout of the webpage, which not only reduces the development and maintenance costs
In this chapter, we will build a more complex drop-down menu based on the previous two chapters. When the content of the site is relatively rich, the structure is more complex, the first level of navigation menu is often not enough, then need a multilevel menu to achieve hierarchical structure. In fact, anyone using a computer will not be unfamiliar with the dropdown menu, and almost all the software will provide the user with an operational command interface through the menu.On the early web si
Use rights: All user dd This instruction is defined in manual as convert and copy a file
How to use: DD [option]
If you want to see manual online, try it: DD--help or info DD
If you want to see how this version is: DD--version
Input or output
How to view the copy progress of dd
In Linux, the DD command can be easily used for Binary copying, for example, hard disk cloning.The general usage is as follows:
Dd If =/src/device/Name of =/DST/device/Name
... Then wait until it completes and the process exits.
However, this process is very painful when we need to copy a lot of things.Many pe
[OPTION]-a enables the switching device defined in the/etc/fstab file.#swapoff DEVICE#free [OPTION] To view the use of physical memory and swap space in the system.[OPTION]-M displays the size in m units. The default is KDD commandThe difference between DD and CP: DD is a block-bound copy, and CP is a copy of the file interface. DD than CP for the system,
1. Create a bootable USB drive system with ISO.1.0. Format USB flash drive to FAT32 formatCommands can be used under Linux:Mkfs.vfat device path for USB flash driveLike what:Mkfs.vfat/dev/sdbThe path of the U disk can be viewed by command DF (DF-H)extension: mkfs command usage : Format the partition with a specific file system, the file system is specified by adding a dot to the command and the file system name (the command line can double-click the TAB key to see if the current system supports
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.