disk partition:Guide flag, 1BStarting physical location 3BOperating System ID, 1BPhysical location of the end, 3BThe relative fan ID at the beginning, 4BTotal number of available sectors. 4b3. Primary guide sector ID: 55aah (2b) 1feh-1ffhHard drive with 0 heads, 0 channels, 1 Sector (512b), and primary Boot Sector0-445: (000-1bdh) 446b primary Boot Record primary boot program446-461 :( 1beh-1cdh) 16B first partition information462-477 :( 1ceh-1ddh) 16B second partition information478-493 :( 1de
outages, can also cause data loss in the primary boot partition of the hard disk. If the partition is damaged, the system immediately becomes paralyzed and cannot be moved. Therefore, the partitioning restoration and backup techniques must be mastered:
First, if the computer cannot detect the hard disk and the hardware problems are eliminated, we should start to check the partition. In general, if one of the primary boot area, boot program, or partition table is damaged, the hard disk will be l
0xaa55 [1] 2MBR, total size: 446 + 64 + 2 = 512
MBR is a 512-byte Boot Sector ("LBA 0") that contains program code and a Small Partition Table. MBR not on Hard DiskThe Boot Sector located before the first partition.The first 446 bytes (0x0000 to 0x01bd) of MBR. The primary Boot Loader contains executable code and error messages.Text.
The next 64 bytes (0x01be to 0x01fd) of MBR record the basic partition information of the disk. The primary Partition Table is dividedEach item contains 16 bytes o
tables. After apt-get fails (the cause is unknown), I manually downloaded version 6.14, run, select hard disk, scan, after a period of time, seven or eight D ed partitions with the D mark are all the products of the previous tossing partitions. Find the Linux ext4 partition in which start and end can be connected to the existing partition, press the P key to view the list of partition files. Then, press the left and right keys to change the partition mark from D to * (
Command action a toggle a bootable flag B edit bsd disklabel c toggle the dos compatibility flag d dele Te a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra fu
Encountered quite a few problems while install the RHEL7, with the Windows system already installed.
Problem 1:/dev/root does not exist
Downloaded the Redhat 7 ISO file and generate the bootable USB drive by using software 'rufus-1.4.9.exe '.
In the installation menu, press tab key, and enter to modify the install command, change the "hd :...... "To" hd:/dev/sdb # ", and then press enter, problem solved.
Problem 2: cannot boot both system
Modified th
config and then checked again.
19. How do I install multiple NICs?
1) When two NICs are installed, append = "ether =, eth1" is added to lilo. conf"
2) if three blocks are inserted, append = "ether =, eth1 ether =, eth2"
Example:
Boot =/dev/hda
# Compact # faster, but won't work on all systems.
Delay = 50
Vga = normal # force sane state
Append = "ether =, eth1" # When the ENI irq and iobase are unknown
[Append = "ether = 9, 0xfce0, eth0 ether = 5, 0xfcc0, eth1" # When you know the NIC irq and io
For code analysis on recovery, see another article
AndroidRecovery Pipeline Code Analysis
Make an upgrade program that supports SD card, USB flash drive, and Flash.
This upgrade application must be used together with the recovery under/recovery/sbin,
Firmware includes boot. IMG, recovery. IMG, system. IMG,
System. IMG is empty, and the packaging format of system. IMG must match recovery. IMG.
Use this program:
First, add librecovery. So to the rootfs file system library,
Add the application re
First, format the new hard disk.
Step 1:
Copy codeCode example: [root @ rac1 ~] # Fdisk/dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
Until you decide to write them. After that, of course, the previous
Content won't be recoverable.
The number of cylinders for this disk is set to 1305.
There is nothing wrong with that, but this is larger than 1024,
And coshould in certain setups cause pr
*512 = 512 bytes
Sector size (logical/physical): 512 bytes/512 bytes
I/O size (minimum/optimal): 512 bytes/512 bytes
Disk identifier: 0x00000000
Disk/dev/sdb doesn' t contain a valid partition table
Here we can see that sdb is a new hard disk and there is no partition yet. Next we will start partitioning and executing fdisk/dev/sdb (your own disk)
3 fdisk/dev/sdb start partitioning
A toggle a bootable flag Set boo
storagectl win08 -- name ide -- add ide -- controller piix4 -- bootable on# Add a hard diskVboxmanage storageattach win08 -- storagectl ide -- type HDD -- Port 0 -- device 0 -- medium/var/vbox/win08/win08.vdi# Add an optical driveVboxmanage storageattach win08 -- storagectl ide -- Port 1 -- device 0 -- type dvddrive -- medium/root/CDROM/win2008-64.iso# Hardware boot settingsVboxmanage modifyvm win08 -- boot1 DVD# After the system is done, set the boo
Format the hard disk in Linux:
Fdisk-l // The default hard disk partition is fdisk/dev/SDA-L. You may also be able to view it through a specified device, such as fdisk/dev/SDB-l (if this hard disk exists)
Fdisk/dev/SDA and go to the command line to manage partitions.
Command (M for help): m // a working prompt appears. Enter m to view all the commands.
Command action
A toggle a bootable flag
B edit BSD disklabel
C toggle the DOS compatibility flag
D d
23438835 155268224 63 131829390 Linux (83) None
6 logical 155268225 156296384 63 1028160 Linux swap (82) None
We only use the parameter-PS to list the disk partitions. Currently, cfdisk exists in mainstream releases such as slackware Debian manrake, and Fedora 4.0 removes this tool. A pity; this is what I operate in slackware;
If you do this, it will be more intuitive;
[Root @ localhost beinan] cfdisk disk device name
Example:
[Root @ localhost beinan] cfdisk/dev/hda
What you see is the fol
use the parameter-PS to list the disk partitions. Currently, cfdisk exists in mainstream releases such as slackware Debian manrake, and Fedora 4.0 removes this tool. A pity; this is what I operate in slackware; if you do this, it will be more intuitive;[Root @ localhost beinan] cfdisk disk device name
Example:[root@localhost beinan]cfdisk /dev/hda
What you see is the following pattern:
cfdisk 2.12a Disk Drive: /dev/hda Size: 80026361856 bytes, 80.0 GB Heads: 255 Sectors per Track: 63 Cylinder
MBR boot program. This is why we need to switch back to the "original Windows boot mode". We only need to use DOS to boot fdisk/MBR. Note that 0000: 7c00 appears in two places in step 1-11. Whether it is dos boot sector or NT loader, it runs from 0000: 7c00. In fact, this small program for developing partition management in MS is equivalent to inserting it in BIOS Boot Sector. Grub is also written as a subroutine starting from memory 0000: 7c00, so it is easy to understand that grub can be load
I. Main problems:How does the system load DTS at startup;Lk And kernel should be investigated.Ii. ReferencesShows the DTs loading process:During the boot process, bootloader (bootable/bootloader/LK by default) selects the appropriate devicetree to load the device into the memory based on the hardware information, and sends the address and other related information to the kernel. In the kernel, a device is created based on the input information.1. Star
Android Recovery support adb shellThe recent development process noted that recovery does not support adb shell. For ease of debugging, decide to add this feature.We started with the user version number system and entered recovery after entering the ADB shell command. Tip "Error:no devices/emulators found". We first confirm whether RECOVERY.IMG includes ADB, see if Out\debug\target\product\xxx\recovery\root\sbin has adb file (source \system\core\adb), and then check \
Android5.1 shutdown charging Interface Size modificationBecause the screen size of the project and the general phone screen is not the same, so the shutdown charging interface in the device after the serious deformation, you need to modify this interface, nonsense said, open to fight!first of all to explain this is the Android 5.1 source code, the other version of the source code may be different. Power off the interface and the Android upper layer of the application, is the resolution of the di
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.