Author Topic: Ubuntu GParted Question  (Read 4029 times)

0 Members and 1 Guest are viewing this topic.

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 6762
  • Country: fi
    • My home page and email address
Re: Ubuntu GParted Question
« Reply #25 on: March 02, 2021, 03:01:31 pm »
Quote
Run
    sudo sync
to ensure changes are written to the device, and
    sudo partx --add /dev/sdX
to ensure the kernel knows about the partitions on that device.  The latter may cause the partition(s) to be automounted, so before detaching the device, unmount the partitions either via your desktop (ejecting the drive), or by running
    sudo umount /dev/sdX*

I followed your steps but forgot to do the above.
No harm done, I believe: Linux partition managers I know all do an fsync on the device (a more targeted sync), so the sync command is optional.  And if you detached the drive, there was no reason for the Linux kernel to know about the partitions anyway.  (The reason I included partx in the steps is that if one uses it, one does not need to detach and reattach the drive.)  And because the modified partition didn't get automounted, there was no need to unmount anything.

Happy to see the drive booted in Windows, and is now working; thanks for the screenshot!
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 2021
  • Country: us
Re: Ubuntu GParted Question
« Reply #26 on: March 02, 2021, 03:58:24 pm »
Thanks for all the help!

I’m guessing since it booted that I won’t get any odd behavior at some point later, so I’m assuming this has been resolved. :)
 

Offline PKTKS

  • Super Contributor
  • ***
  • Posts: 1766
  • Country: br
Re: Ubuntu GParted Question
« Reply #27 on: March 02, 2021, 04:45:51 pm »

    sudo sync
to ensure changes are written to the device, and
    sudo partx --add /dev/sdX


this is absolute right
each one syncs a target..

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf