fedora 27 system unresponsive when writing to usb drive

asked 2018-01-17 14:43:28 -0600

billwilliams gravatar image

Hi,

I am backing up a large quantity of data to a USB drive. I was using exfat and vfat and the system became unresponsive for long periods of time but from my experience with Linux on other hardware I understood anything going through FUSE is much slower and often makes the system unresponsive.

The last few days I decided to format the drive ext2 and try it. It is running at approximately the rated speed for the drive (30 Mb/s) but the system goes away for an hour at a time before becoming responsive for a short time before it goes away again. Today as I was looking it took literally over an hour while the clock on gnome was not updating, no apps could get focus.. only the cursor responded to the mouse but no other signs of life from the box. I did not expect this to happen with a filesystem supported by the kernel.

Some oddities which may or may not be normal, mount says the filesystem is mounted ext2 but dmesg says it's ext4 without a journal. I realize ext3 is ext2 with a journal and ext4 is an enhancement of ext3 so maybe this is ok.

I also got several messages in dmesg saying systemd-journald corrupted or uncleanly shut down renaming and replacing, so maybe some unintended journaling is going on which is killing performance. I am running rsync as root to copy the data because the directory tree being backed-up is owned by root and has 550 permissions.

Any suggestions guys?

Thank you,

Bill

edit retag flag offensive close merge delete

Comments

Bill, anything odd in the logs given that journald is corrupted? I'd be curious what if anything it is logging. I've seen this a bad disk, but your situation doesn't seem to match the scenarios that I've seen that occurring in.

Mordoc gravatar imageMordoc ( 2018-01-17 23:26:43 -0600 )edit

@Mordoc I'm sorry, I am new to systemd Linux and Fedora so I have no experience with most of the things about troubleshooting in this environment. I understand logs are no longer in /var/log, so how do I get the info?

I don't know what to expect from dmesg since I have not had a USB 3.0 device until recently but it looks like USB 3.0 drives are being used in USB 2.0 mode... any way to double-check? Thank you.

billwilliams gravatar imagebillwilliams ( 2018-01-17 23:44:30 -0600 )edit

Bill, no worries. We're all new at something. Jump out to a terminal session by starting the terminal app in Gnome or whatever desktop you use. When you are at the prompt try the following:

su -c journalctl | grep /dev/sd

You'll need to enter your root user's password. That will show all the activity of all the drives on the system. More likely than not your USB drive when plugged in will be /dev/sdb or /dev/sdc and should it be logging an error to the logs.

Hope this gets you further down the road, and glad to have you in Fedora land!

Mordoc gravatar imageMordoc ( 2018-01-20 15:09:29 -0600 )edit