Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange error for loop devices like /dev/loop0: "You must specify exactly one existing device." #15

Closed
mikebdp2 opened this issue Apr 3, 2020 · 2 comments

Comments

@mikebdp2
Copy link

mikebdp2 commented Apr 3, 2020

As I don't have a physical device for my floppy image (see #14), I've created a /dev/loop0 device with a command

sudo losetup /dev/loop1 ./floppy.img

However, when I try to use a command like

sudo fatresize -s 2880k /dev/loop1

I get this output:

fatresize 1.0.3 (03/05/20)
You must specify exactly one existing device.

Perhaps this has to do with /dev/loop1 device having one more letter than i.e. /dev/sdd1

@mikebdp2 mikebdp2 mentioned this issue Apr 3, 2020
@ya-mouse
Copy link
Owner

ya-mouse commented Apr 4, 2020

I'm going to add a logic to handle loop-devices as well. Thank you for reporting.

ya-mouse added a commit that referenced this issue Apr 5, 2020
 - drop support for libparted older than 2.4 (#16)
 - introduce `-n, --partition` to set a partition number when
   dealing with file dumps, /dev/loop and /dev/ram devices (#15)
 - ask confirmation for operations (e.g. FAT32 -> FAT16 conversion),
   add `-f, --force` option to not prompt (#13)
 - do not limit FAT32 usage on small partitions (#11)
 - update changelog (#10)
ya-mouse added a commit that referenced this issue Apr 5, 2020
Grand update:
 - drop support for libparted older than 2.4 (#16)
 - introduce `-n, --partition` to set a partition number when
   dealing with file dumps, /dev/loop and /dev/ram devices (#15)
 - ask confirmation for operations (e.g. FAT32 -> FAT16 conversion),
   add `-f, --force` option to not prompt (#13)
 - do not limit FAT32 usage on small partitions (#11)
 - update changelog (#10)
@ya-mouse ya-mouse closed this as completed Apr 5, 2020
@Xses-1
Copy link

Xses-1 commented Nov 18, 2023

I still have this error.

# fatresize -s 256M /dev/loop1
fatresize 1.1.0 (20201114)
You must specify exactly one existing device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants