Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] I can never get USBs to work with Linux...

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
User avatar
Chiefahol2
Posts: 110
Joined: 2016-08-06 22:49

[Solved] I can never get USBs to work with Linux...

#1 Post by Chiefahol2 »

2019, usbs are pretty much becoming outdated, Debian still struggles immensely just to format and use usb drives. :( I'm just trying to use the inbuilt gnome desktop tools to format a drive with NTFS, i get this error:

Code: Select all

'Error formatting volume

Error synchronizing after initial wipe: Timed out waiting for object (udisks-error-quark, 0)'
Wasn't able to copy/paste this error (why gnome?), anyway how do you resolve it?

Edit: It was a broken USB!
Last edited by Chiefahol2 on 2019-09-13 02:22, edited 1 time in total.

User avatar
Chiefahol2
Posts: 110
Joined: 2016-08-06 22:49

Re: I can never get USBs to work with Linux...

#2 Post by Chiefahol2 »

Just tried formatting it for FAT32, same error

User avatar
Chiefahol2
Posts: 110
Joined: 2016-08-06 22:49

Re: I can never get USBs to work with Linux...

#3 Post by Chiefahol2 »

Trying and failing to install gparted:

Code: Select all

dpkg: error processing archive /var/cache/apt/archives/libgtkmm-2.4-1v5_1%3a2.24.5-4_amd64.deb (--unpack):
 unable to clean up mess surrounding './usr/lib/x86_64-linux-gnu/libgdkmm-2.4.so.1.1.0' before installing another version: Read-only file system
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../gparted_0.32.0-2_amd64.deb ...
Unpacking gparted (0.32.0-2) ...
dpkg: error processing archive /var/cache/apt/archives/gparted_0.32.0-2_amd64.deb (--unpack):
 unable to clean up mess surrounding './usr/sbin/gparted' before installing another version: Read-only file system
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libgtkmm-2.4-1v5_1%3a2.24.5-4_amd64.deb
 /var/cache/apt/archives/gparted_0.32.0-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

User avatar
Chiefahol2
Posts: 110
Joined: 2016-08-06 22:49

Re: I can never get USBs to work with Linux...

#4 Post by Chiefahol2 »

I get this error when attempting to delete the existing partition via gnome-disks:

Code: Select all

Error deleting partition /dev/sda1: Failed to commit changes to device '/dev/sda' (Partition map has no partition map entry!) (udisks-error-quark, 0)
I check fdisk and it definitely does have a partition entry. :oops:

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: I can never get USBs to work with Linux...

#5 Post by p.H »

Chiefahol2 wrote:unable to clean up mess surrounding './usr/lib/x86_64-linux-gnu/libgdkmm-2.4.so.1.1.0' before installing another version: Read-only file system
Looks like /usr is mounted read-only. Is this expected ? If yes, you must remount /usr read-write before installing, upgrading or removing packages. If no, this may be the cause of your trouble, especially if the whole / filesystem has unexpectedly become read-only.

User avatar
Chiefahol2
Posts: 110
Joined: 2016-08-06 22:49

Re: I can never get USBs to work with Linux...

#6 Post by Chiefahol2 »

Rebooted.

Installed gparted. (Why is gnome-disks even packaged if it's broken?)

Formatted usb to NTFS.

Copied files.

Press eject...

Now it's just hanging. :P Said not to remove the disk and that it was still writing... then the notification disappeared, i don't see the new notification that it is safe to unplug?

How do i simply eject a usb from Debian 10?

'Unable to eject Volume

An operation is already pending'

User avatar
Chiefahol2
Posts: 110
Joined: 2016-08-06 22:49

Re: I can never get USBs to work with Linux...

#7 Post by Chiefahol2 »

After powering down the systemd job for mounting/unmounting filesystems was still running for several minutes. I have no idea if the data is copied properly. :P

I guess I'll find out tomorrow...

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: I can never get USBs to work with Linux...

#8 Post by stevepusser »

Have you tried a different pendrive to see if your problem is hardware-based? They do get borked once in a while.
MX Linux packager and developer

User avatar
Chiefahol2
Posts: 110
Joined: 2016-08-06 22:49

Re: I can never get USBs to work with Linux...

#9 Post by Chiefahol2 »

I believe that USB was defective, it seems to work fine with others, cheers steve. :lol:

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: I can never get USBs to work with Linux...

#10 Post by phenest »

Chiefahol2 wrote:2019, usbs are pretty much becoming outdated, Debian still struggles immensely just to format and use usb drives.
Where did you get that information from? USB is not outdated. And Debian has never struggled with formatting USB drives in the 10+ years I've been using it regardless of whether I use CLI or GUI.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

reinob
Posts: 1198
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: I can never get USBs to work with Linux...

#11 Post by reinob »

Chiefahol2 wrote:I believe that USB was defective, it seems to work fine with others, cheers steve. :lol:
You might want to update the first post and/or title of the thread to avoid people wasting time reading about your defective USB drive...

User avatar
Chiefahol2
Posts: 110
Joined: 2016-08-06 22:49

Re: [Solved] I can never get USBs to work with Linux...

#12 Post by Chiefahol2 »

agreed, cheers :mrgreen:

Post Reply