Disk shutdown

Bug #507412 reported by Giorgos Logiotatidis
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ricardo Marmolejo García

Bug Description

Wiithon should provide a button to shutdown the wbfs disk before unplugging them from the computer. This will help prolong the life of drives.

I suggest a button that:
1. syncs all data so nothing remains on disk buffers
2. sends "suspend" to /sys/bus/usb/devices/<usb-device>/power/level
e.g. echo suspend > /sys/bus/usb/devices/1-4/power/level

You can find more information on shutting down the disks here:

Changed in wiithon:
importance: Undecided → Wishlist
Revision history for this message
Ricardo Marmolejo García (makiolo) wrote :


Does this work without root, or only with permission r/w on /dev/sdxX?

Changed in wiithon:
status: New → Incomplete
assignee: nobody → Ricardo Marmolejo García (makiolo)
Revision history for this message
Giorgos Logiotatidis (seadog) wrote :

I don't know if this works without root, I always sudo to execute the commands. Maybe you can set the signal using a dbus to service that has permission. Tip: You can check how nautilus "ejects" usb disks

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers