Advanced Cpanel partitions

Good evening I have a dedicated server with two 480 GB SSD hard drives. I am using the following partition in the RAID1 software.
I wonder if it would be better … | Read the rest of

Nokia 8 – boot loader unlocked, but can not yet boot or flash partitions

I just got lucky by unlocking the boot manager on my Nokia 8.1. But it seems that I have not achieved anything yet. Previously, when I tried to flash a partition through fastboot or boot a boot image, I used to see:

it is not allowed to flash in locked state

Now that I have successfully unlocked the boot loader (I can confirm this through the deviceinfo command and also through the 5 seconds warning before boot), I find another obstacle:

the flashing is not rooted for the merged device

It seems to be a kind of extra check. The device shows on the screen (fastboot mode) that Fuse = enable. It seems that this is an additional check of the devices that have been unlocked to prevent unauthorized use. I have no idea how to turn it off. Probably comes from the Kernel level or probably somewhere else. Can someone guide me to an address I should take next?
There should be some way to deactivate the fuse.

Is it possible to use two partitions for Windows-10 so that the software of the system and the programs (applications) are separated?

I will install Windows 10 and I would like to do 2 partitions (for example, C: and D :). My wand my Windows system is located in the "C" drive (that is, all the programs when Windows-10 was installed) and all the other applications installed after Windows-10 that will be installed in the "D" drive.

Modified Mal-ware partitions (visible in Linux, not Windows) – Is there more?

When using diskpart in Windows 10, I can see only one partition that I created and installed Windows in a .vhdx file, but this is the only visible partition that is seen using that utility when booting from the installation media. I decided to see what a CD / USB rescue of Dr. Web showed and what I found does not make sense. First, I used the fdisk / dev / sda command and the results matched with diskpart, but when I ran fdisk / dev / sda1, it seems that there are four additional partitions and they are sized (in some way) much larger than the 500G hard drive that I have in the machine

What has been done with the partition and how is it possible to have partitions that are significantly larger than the capacity of the physical unit?

How can I check if there are other partitions on the disk that are not visible?

Disk / dev / sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Size of the sector (logical / physical): 512 bytes / 512 bytes
I / O size (minimum / optimal): 512 bytes / 512 bytes
Type of disk label: gpt
Disk identifier: 9603D5A0-AAEE-41B0-96E0-813FB368B872

Type of size of the start sectors
/ dev / sda1 2048 204802047 204800000 97.7G Basic data from Microsoft

Command (m for help):

root @ drweb: ~ # fdisk / dev / sda1

Welcome to fdisk (util-linux 2.27.1).
The changes will remain in the memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): p
Disk / dev / sda1: 97.7 GiB, 104857600000 bytes, 204800000 sectors
Units: sectors of 1 * 512 = 512 bytes
Size of the sector (logical / physical): 512 bytes / 512 bytes
I / O size (minimum / optimal): 512 bytes / 512 bytes
Type of disc label: two
Disk identifier: 0x6e697373

Device start start size Sectors ID size Type
/ dev / sda1p1 1936269394 3772285809 1836016416 875.5G 4f QNX4.x 3rd part
/ dev / sda1p2 1917848077 2462285169 544437093 259.6G 73 unknown
/ dev / sda1p3 1818575915 2362751050 544175136 259.5G 2b unknown
/ dev / sda1p4 2844524554 2844579527 54974 26.9M 61 SpeedStor

The entries in the partition table are not in disk order.

Command (m for help): v
Partition 1: partition 2 overlaps.
Partition 1: partition 3 is superimposed.
Partition 2: partition 3 is superimposed.
Partition 1: partition 4 is superimposed.
Total assigned sectors 3463497636 greater than the maximum of 204800000.

Command (m for help): i
Partition number (1-4, default 4): 1

Device: / dev / sda1p1
Start: 1936269394
End: 3772285809
Sectors: 1836016416.
Cylinders: 114287
Size: 875.5G
Id: 4f
Type: QNX4.x 3rd part
Home-C / H / S: 335/2/10
End C / H / S: 327/13/84
Attrs: 0d

Command (m for help): i
Partition number (1-4, default 4): 2

Device: / dev / sda1p2
Start: 1917848077
End: 2462285169
Sectors: 544437093
Cylinders: 33890
Size: 259.6G
Id: 73
Type: unknown
Home-C / H / S: 371/37/114
End C / H / S: 256/36/101
Attrs: 70

Command (m for help): i
Partition number (1-4, default 4): 3

Device: / dev / sda1p3
Start: 1818575915
End: 2362751050
Sectors: 544175136
Cylinders: 33874
Size: 259.5G
Id: 2b
Type: unknown
Home-C / H / S: 364/50/116
End C / H / S: 372/44/65
Attrs: 43

Command (m for help): i
Partition number (1-4, default 4): 4

Device: / dev / sda1p4
Start: 2844524554
End: 2844579527
Sectors: 54974
Cylinders: 4
Size: 26.9M
Id: 61
Type: SpeedStor
Home-C / H / S: 372/51/101
End C / H / S: 269/52/114
Attrs: 72

beginner – Generating whole partitions

I tried to implement the integer partition algorithm as described in blogpost below (the author implemented it in Python):
Generating whole partitions

I am still trying to learn the best practices in the production of clean code. I would also be grateful for any performance advice.

My code:

Structure NumberPartition {
to: vec,
k: i32,
and: i32,
x: i32,
l: i32,

imply NumberPartition {
pub fn new (n: i32) -> Self {
NumberPartition {
a: vec![0; (n + 1) as usize],
k: 1,
and: n - 1,
x: 0,
l: 0

fn partition (& mut self) -> Option <Vec <Vec>> {
let mut buff: vec <vec> = Vec :: new ();
while self.k! = 0 {
self.x = self.a[(self.k - 1) as usize] + 1;
self.k - = 1;
whereas 2 * self.x <= self.y {
auto.a[self.k as usize] = self.x;
self.y - = self.x;
self.k + = 1;
self.l = self.k + 1;
while self.x <= self.y {
auto.a[self.k as usize] = self.x;
auto.a[self.l as usize] = self.y;
buf.push (auto.a[..(self.k + 2) as usize].to_vec ());
self.x + = 1;
self.y - = 1;
auto.a[self.k as usize] = self.x + self.y;
self.y = self.x + self.y - 1;
buf.push (auto.a[..(self.k + 1) as usize].to_vec ());
Some (buf)

fn main () {
be b = NumberPartition :: new (6) .partition ();
for i in b.iter () {
println! ("{:?}", i);

partition – dual boot – correct procedure to resize partitions with ubuntu 18.10 and windows 10

I have a dual boot configured with ubuntu 18.10 and Windows 10. This is my partition scheme

I want to reduce the Ubuntu partition in 10 GB and add them to Windows. I have backed up my data for both systems. My plan is to start Ubuntu Live from an external usb and use gparted to reduce the ubuntu partition. How can I transfer that unallocated space to the windows? I imagine that the unallocated space will be to the right of the ubuntu partition, can I drag it to the left and then expand the Windows partition? Should I take any additional measures to avoid data loss?

partitions: run on faulty clusters after chkdsk on the exFat micro SD card

This is a 128 gb Sandisk (leave this link, it is not an announcement.) The specific card indicates other parameters, such as memory channels, writing speed, etc., card that I am using in a Nougat from Android device.

This is the second time that the card had corruption problems. The first one I bought has Write Locked. Replacement present was provided
The card has a lot of bad groups. 2 things made me smell this:

  • Whatsapp directory (which had a link to Whatsapp dir on internal): the image directory can no longer be written to
  • The phone restarts randomly and next time. exFat partition is not mounted (I used app2sd and parted the card to ext4 10gb to link my applications and rest if exfat )

ran a Chkdksk in Windows 7 and it would automatically stop at the initial execution and persist in the execution it gave me the repeated message "# cluster moved by the file "(can not remember the exact verbiage.) It could never be completed, but it was canceled with the message." corruption found on the card "


  • How can I know if there is a bad logical or physical cluster? Any tool / test?

    Here is something I did, that made me think logically. I removed the image directory (which was locked to write and, therefore, while the link was activated, the WhatsApp images could not be downloaded. folder assembly tool that enforced this, would work) after moving the contents to dir2 and renaming dir2 to original dir. After the original dir Now, for some time, the WhatsApp link would work and the same problem arose again. So I tend to think but I need confirmation.
  • I'm thinking about saving the contents of exfat partition and then format partition and instead create 2 ext4 partitions (or FF2S. Tell me which is better). One is for less writing applications. My photos, etc., here and a smaller one just for WhatsApp and then re-copy the content to the relevant partitions.

If I do this. There is no support out of the box for ext4 partitions for android (is not it, pl confirm)? How can I mount automatically without third party utils ( fstab ? )
How can I automatically mount the extra ext4 - fstab ?
Will this help avoid the previous problem?

  • While I still have the partition of the corrupt block is there is some other tool It will run to the end and identify all the defective blocks so they can be kept aside. I tried pulled apart for android which runs fsck (exFat sub) and the report arrived normal at <1 min.

What UUID of what devices change after the installation of the new operating system with the creation of new partitions?

I'm trying to figure out what the UUIDs change as described above, the uuid partitions obviously change, but what others affected by the new operating system (re) install?

Thanks for all the answers.

How to access other partitions from android-x86 on dual boot with ubuntu-16.04

I have android-x86 beside ubuntu-16.04 I installed Android on a 16GB partition on my hard drive. I was wondering if it's possible to access other partitions from Android, since it just does not show anything in the records the application would be useless because all my photos, videos or other files are in those other partitions. I am not an expert, please let me know if additional information is needed.

montage: why udev does not activate the elimination event of mounted sdcard partitions?

For an SD card with multiple partitions, how to get at least one "change" event for the mounted nodes of udev, when you remove an uSD or SD card from a USB-SD reader, without disconnecting the USB cable from your PC?

Bonus: get the "add / remove" event for the "partition" nodes (for example, "/ dev / sdh2")

When a partition is mounted, udev does not generate any event for the partition node, when the card is removed.

  • You need a USB-SD reader (I highly recommend: But I tried on many other USB-SD readers (like those based on GenesysLogic), the situation is the same.
  • You need a uSD or SD card, with at least 1 or 2 partitions.

Step 1:

Create a new udev rule, named as: /etc/udev/rules.d/98-test.rules

KERNEL! = "Sd *", SUBSYSTEM! = "Block", GOTO = "END"
ACTION == "add", RUN + = "/ usr / bin / logger ***** The add event was received for% k *****"
ACTION == "remove", RUN + = "/ usr / bin / logger ***** An elimination event was received for% k *****"
ACTION == "change", RUN + = "/ usr / bin / logger ***** Change event received for% k *****"


Step 2:

Install ccze (sudo apt install ccze). This will give you a beautiful color registration for events.

Open a terminal, execute the following command:

journalctl -f | ccze -A


Mar 09 23:01:32 Ev-Turbo kernel: sd 6: 0: 0: 3: [sdh] 30408704 logical blocks of 512 bytes: (15.6 GB / 14.5 GiB)
Mar 09 23:01:32 Ev-Turbo kernel: sdh: sdh1 sdh2
March 9 23:01:33 Ev-Turbo Root[19519]: ***** Change event received for sdh *****
March 9 23:01:33 Ev-Turbo Root[19523]: ***** Change event received for sdh *****
March 9 23:01:33 Ev-Turbo Root[19545]: ***** Received add event for sdh2 *****
March 9 23:01:33 Ev-Turbo Root[19552]: ***** Received add event for sdh1 *****

Step 3:

Now remove the uSD card from the slot, but do not disconnect the USB cable from your PC. Look at the record:

March 09 23:06:56 Ev-Turbo Root[21220]: ***** Change event received for sdh *****
March 09 23:06:56 Ev-Turbo Root[21223]: ***** An elimination event has been received for sdh2 *****
March 09 23:06:56 Ev-Turbo Root[21222]: ***** An elimination event has been received for sdh1 ***** 

Stage 4:

Now, insert your uSD card again, you will see:

March 9 23:11:21 Ev-Turbo kernel: sd 6: 0: 0: 3: [sdh] 30408704 logical blocks of 512 bytes: (15.6 GB / 14.5 GiB)
March 09 23:11:21 Ev-Turbo core: sdh: sdh1 sdh2
March 09 23:11:21 Ev-Turbo Root[22652]: ***** Change event received for sdh *****
March 09 23:11:21 Ev-Turbo Root[22653]: ***** Change event received for sdh *****
March 09 23:11:21 Ev-Turbo Root[22679]: ***** Received add event for sdh2 *****
March 09 23:11:21 Ev-Turbo Root[22682]: ***** Received add event for sdh1 *****

And now, try to mount one of the partitions somewhere in your system:

sudo mount / dev / sdh2 / media / uSD2

You can check if it is really mounted (execute the commands: lsblk, mount … etc)

Step 5:

Now, while the partition is mounted, remove your uSD card from the slot. Look at the record:

March 09 23:12:32 Ev-Turbo Root[23049]: ***** Change event received for sdh *****

Nothing more … Why is there no longer an "eliminate" event?

BONUS NOTES (irrelevant to the previous question):

1) Most of the information on the web related to udev / systemd / systemd-udevd and the assembly scripts are obsolete. Especially, for systemd v239, many of the "resolved / working" responses are not usable (working on the problem for 2 weeks, read most of the solutions on the web, tested on Debian 9.7, Linux Mint 18.3, Ubuntu 18.04)

2) For versions of systemd> 212, you need service files to mount your removable devices. Example:

3) Especially for systemd v239, you must disable PrivateMounts to achieve automatic mounting through systemd drives. For more details:

4) The files of the assembly unit do not fit in all cases, for example, when you want to mount in some specific directories based on a USB host, port, numbers of Mon … But for some cases, this approach is very simple: https: / /