[Ubuntu] Resizing an Exfat Partition


Recommended Posts

Hi all,

I've got a 2TB external hard drive that I formatted to Exfat. Now I want to create a new partition that will allow me to install Ubuntu, rather than just running it off my USB key. The problem is that Gparted doesn't recognise the Exfat filesystem so it won't allow me to resize the current partition, only format it. I don't want to do this because there is already data on the HDD.

Does anyone have any suggestions? I've thought about moving all the data from the external and putting it on another drive temporarily while I format it, but that would be quite a long process so I'd prefer not to if I can help it.

Link to comment
https://www.neowin.net/forum/topic/1036073-ubuntu-resizing-an-exfat-partition/
Share on other sites

I highly doubt that GParted has the ability to safely read/write to ExFat, these instructions should enable at least reading the drive, it's complicated, but hey, welcome to Linux.

Installing and mounting

To install ExFat support in Ubuntu, pull up a console (?Applications > Accessories > Terminal?) and run:

sudo -s

apt-add-repository ppa:relan/exfat

apt-get install fuse-exfat

The driver uses the FUSE (filesystem in userspace) framework. For it to work, FUSE needs to be enabled in the kernel. If you use the stock Ubuntu kernels then this is the default, so you don't have to do anything else. If you roll your own drill down to ?Filesystems > FUSE? and either compile it in statically or enable it as a 'M'odule, then compile and install your kernel.

While available as a module, Ubuntu won't know to automatically use the driver when you insert an exFAT device. For now you'll need to manually mount the device and specify the exFAT filesystem. Plug in your device and run:

cat /proc/partitions

Chances are your USB device will be the last partition listed. You can also check by looking at its size and seeing if it matches the size of your USB key.

Next make a temporary directory where you can mount the device. Ubuntu by default attaches removable media under the /media directory, so you might as well do the same. Enter the following:

cd /media

sudo -s

mkdir usbdrive

mount -t exfat /dev/sdd1 usbdrive

The drive will appear on your desktop, and you can read and write to it like any other. To safely unmount it before removing, use 'sudo umount usbdrive' from the same directory.

I highly doubt that GParted has the ability to safely read/write to ExFat, these instructions should enable at least reading the drive, it's complicated, but hey, welcome to Linux.

Thanks, but I've already got exfat support on Ubuntu using almost identical instructions to the ones that you've provided. It doesn't seem to have allowed Gparted to modify the HDD though.

  • Jim K locked this topic
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • It depends, but it's also going to push more adoption of open source AI models that can run locally, I'm seeing a pattern among the US and China when it comes to closed and open source AI models, they close when they feel they have the advantage, open up when they feel they don't. This has little to do with security and everything to do with control, the irony is that the ones that do go open and get the community behind them are the ones that have the real control, hence why we keep seeing this seesaw from closed to open. Ultimately, it's far too dangerous to let any one country or corporation to control AI, which is why open source AI or AI you can run locally on your hardware is very likely going to be the future of AI over the long run, this is especially the case as AI becomes more powerful and useful for user, privacy, security and censorship will become more of an issue for users and businesses.
    • A person should only be required to click through to an article if they want to know more details. The headline should give basic facts. A basic fact would include the name of the service being shut down.
    • That would probably be a good outcome, but it would also require other "features" be changed to comply, such as Auto play, scrolling, and advertising. Having the laws shift these platforms back to a socially responsible and useful places is a benefit for everyone. The addictive nature is the problem, and while many blame the individual, psychologists would suggest the platform is using a well trodden playbook to hook in more revenue..
    • It is in fact being discontinued in the US in July.
    • It was a rather nice rant as I rather dislike when people support the shitifcation of the Internet. My comment also factually applied the definition of "clickbait' to this headline unlike your comment. I have been reading this site for some 20 years now so I will call them out when they are doing carp they shouldn't be doing but thanks for your concern. You can't even do a search by headline anymore to do a quick search to find something because most of the titles lack all the relevant keywords that should be there.
  • Recent Achievements

    • One Year In
      Console General earned a badge
      One Year In
    • One Year In
      Twozo Technologies earned a badge
      One Year In
    • One Month Later
      Twozo Technologies earned a badge
      One Month Later
    • Week One Done
      Twozo Technologies earned a badge
      Week One Done
    • Veteran
      branfont went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      523
    2. 2
      +Edouard
      207
    3. 3
      PsYcHoKiLLa
      114
    4. 4
      Steven P.
      90
    5. 5
      Nick H.
      71
  • Tell a friend

    Love Neowin? Tell a friend!