You are not logged in.

#1 2012-10-23 14:37:24

canaldin
Member
Registered: 2012-10-23
Posts: 3

Write on USB a CD image in less than a second

Hello, this is my first post, some months ago I switched from ubuntu to archlinux and I'm loving it.

Problem: arch completes the write operation to usb/SD medium in less than a second even if it actually writes at a normal speed.


I never noticed that on my pc the write speeds are totally off until I had to transfer photos on the fly after a shooting. Almost all files where corrupted even if I checked them in the SD card in linux. Sadly my boss handled me a mac air the next day to do the same job sad

The behavior persists in different DEs Gnome, openbox, cinnamon, xfce

Hardware: Lenovo w520, i7-2830, 8gb RAM, up to date arch

P.S. May it be related to the IO Scheduller?

Offline

#2 2012-10-23 14:41:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Write on USB a CD image in less than a second

Mount with 'flush' option.

Offline

#3 2012-10-23 14:42:55

canaldin
Member
Registered: 2012-10-23
Posts: 3

Re: Write on USB a CD image in less than a second

how do I make it persistent?

Offline

#4 2012-10-23 14:47:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Write on USB a CD image in less than a second

I have no idea how do you mount it in the first place.
I can be e.g.

/dev/sde on /media/disk type vfat (rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower)

if it's a fat32 filesystem.

Pendrives usually have a LED and you should know you don't remove a pendrive when the LED is still blinking. No such stuff for the SD cards.

Offline

#5 2012-10-23 14:51:46

canaldin
Member
Registered: 2012-10-23
Posts: 3

Re: Write on USB a CD image in less than a second

I'm using udisks2 inside openbox

Offline

#6 2012-10-23 14:55:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Write on USB a CD image in less than a second

https://bbs.archlinux.org/viewtopic.php … 5#p1115035
Try a different way:

sync && umount /media/disk && echo "It is now safe to remove the USB drive (/dev/sde)."

Offline

Board footer

Powered by FluxBB