In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to use virtiope+colinux to realize dynamic lossless multi-partition of linux system disk? in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
Use colinx+virtio winpe to customize aliyun multi-partition linux system disk, run colinux in winpe xp winpe, really operate linux partition under windows pe, use colinux to expand the capacity of single hard disk partition, install grub2-00 to hard disk by bootice, and install custom image in CVM jailbreak.
In this way, a brand-new system can be restored with the help of virtiope and the double partition setting of one system and one data area. We will explore the goal and possibility of "freely operating linux partitions under winpe" in the field of installation. -at the end of the article, the linux of a CVM under a single hard disk and a single partition is split into two partitions to create a recoverable rom mechanism similar to PC and mobile recovery. As long as this is the case, some kind of "co-disk and practical windows,linux fusion solution" can be completed during the installation and practical phase, and the idea mentioned in this article can basically become "like that", which can also be regarded as a technical reference direction.
The difficulty of operating linux partitions under winpe is that it is not as good as ntfs supported by disk tools such as diskgen,pqmaigc in windows. Using such tools to operate EXT3 under windows is either not supported (specific drivers are required and such drivers are often primitive), can read and write ext partitions, or can write but blue screens frequently, not to mention dynamically resizing them and restoring images in a gho-like way (diskgen493 starts to support formatting EXT3 No, I'll talk about it later. Even formatted for a long time.
There is a scheme such as LVM for single partition linux to dynamically extend a new partition, but it needs to be done when the partition format identified as 8e has been sorted out.
Our overall goal is to create a windows,linux two-in-one pe maintenance disk (to ensure that everything is complete under the xp based winpe, and there is no need for secondary access to different ISO environments, such as integrated windows+linux pe). We will do all this on a machine with 1g of memory pre-installed with ubuntu14.04 32bit in Aliyun. Here's how to start:
Using noimagecolinux to realize dynamic partition expansion of linux system disk on Ali Cloud
The additional virtiope tools we use here (in addition to the four originally packaged in virtiope: showdriver,ext234reader,bootice,ramdisk), and the winpm 7 server version of for winpe, which is used to separate the new ext3 zone. And colinux noimage (the tools we can use for busybox are mount,tar,cp, etc.) to rebuild the system: as we all know, colinux, according to my "publish colinux", it is located in guestos, but it is also a tool, colinux can be run in nomiage configuration, you can load the windows directory as a partition or you can load a local hard disk as a partition. Without loading any mirrored colinux with its own busybox, you can operate the linux hard disk partition under windows to achieve real reformatting, partition, expansion and other effects. Finally, you need to find a new grub boot package from the Internet to rebuild grub2.0.
1) prepare to upload the above tools and boot packages to boot/tools, and then tar the entire root directory
Cd / tar-cvpzf backup.tar.gz-exclude=/backup.tar.gz-one-file-system /
See that the size of the package is 570m, this is the original system image.
2) then, boot into virtiope and use ramdisk to create a 590m memory disk (size=0000250 hex). Use 234extreader to put / boot/tools and backup.tar.gz into the temporary disk here is T: (in order to operate 234extreader you'd better have a keyboard with a right menu), use winpm to delete the entire 40G partition and then divide it into two small ext3 partitions, one 10G is used as a new system disk, and the other 30G is used as a free space for data and mirror storage in the future. Open the colinux conf folder and set the following settings in noimage.conf:
Cobd0= "\ Device\ Harddisk0\ Partition1" cofs0= "..\" (because tools and backup.tar.gz are placed side by side in T:, rewind 3 levels to see the T disk root) keep mem=128 to facilitate replication and decompression later, and do not open too much, because 1G of memory is almost used.
Now that portable_colinux.bat is open, when prompting enter to activate busybox, mount 2 disks to noimage colinux:
Mount / dev/cobd0 / mnt/temp (10g disk) mount-t cofs 0 / mnt/win (notice a space between cofs and 0)
(the above two mnt points are included in colinux)
3) then, use the tools in busybox:
Cp mnt/win/backup.tar.gz mnt/temp/backup.tar.gzchdir mnt/temptar-xvpzf backup.tar.gz-C /-- numeric-owner decompression
Install a new mbr grub2.0 to your hard drive with bootice, and download grub's boot package from the Internet to replace the existing boot folder (except for keeping the 10 kernel files under boot).
4), finally restart, and enter the linux after partition adjustment.
If you see the new grub2 startup interface, it means it's almost done.
Set root= (hd0,msdos1) linux / boot/vmlinuz-4.4.0-85-generic ro root=/dev/vda1 (note that Ali Cloud is vda) initrd / initrd.imgboot
Enter the new system, success!
Build a winpe installation and maintenance scheme based on the combination of linux and windows
Some failed attempts:
I have tried to extract 7zip directly or gnu windows tar into the partition formed by ext2sd, but the screen will be blue, which is why I said at the beginning that the processing of linux partition under windows is non-native. Most of the time it's just for auxiliary use. It is said that Paragon_ExtFS is better than ext2sd,ext2ifs, but it can't run after uploading, and I have no intention to try it. But this is another great way to try it (not if virtiope integrates ext2sd directly in the future).
I have also tried that diskgen is 4.9.3 (the beginning of 4.9.3 supports partitioning of ext2/3, although it is relatively large, but it integrates all of bootice,234extreader, and the mouse operates well. As above, they don't even run on xp winpe. Only this winpm 7 server version of for winpe supports handmarking very well.
I have tried mount-t tmpfs-o size=590m tmpfs / mnt/tmp, internal fdisk, direct DD, etc., all of which are not intuitive or unworkable.
This is the answer to the question about how to use virtiope+colinux to achieve dynamic lossless multi-partition of linux system disk. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.