[Bug 1120608] Mounting external USB disk with udisks2 causes internal disk to spin-up from standby
http://bugzilla.suse.com/show_bug.cgi?id=1120608
http://bugzilla.suse.com/show_bug.cgi?id=1120608#c2
Michele Cherici
(In reply to Michele Cherici from comment #0)
I have an openSUSE Tumbleweed system with this hard disk setup:
- SSD disk with Tumbleweed - Seagate BarraCuda ST3320620AS 320G with two partition for data (not mounted)
Mounting or unmounting an external USB disk with udisks2 version 2.7.6 causes internal disk (ST3320620AS) to spin-up from standby. It happens using a file manager like KDE Dolphin or from command line with udisksctl. Mounting the external USB disk with standard mount command instead works and the internal disk does not wakeup from standby. Downgrading udisks2 to 2.6.5 version (I've used the package from Leap for the test) solves the problem.
Hm, I'm not really sure how a mount command can work without spinning up the root disk. When executing the mount command, it loads some shared libraries and unless they are already in memory, they need to be fetched from the root disk, so it needs to spin up. Could you provide straces from the mount with udisks2 version 2.7.6 and version 2.6.5?
The disk that spin up is not the root disk, the OS is installed into the SSD disk (sda), the disk that wake up from standby is the other one (sdb), it's a Seagate BarraCuda ST3320620AS and it contains two partitions that are not mounted. Seagate disk is configured to spin down with a systemd service: [Unit] Description=Set disks sleep timeout After=default.target hibernate.target suspend.target hybrid-sleep.target [Service] Type=oneshot ExecStart=-/sbin/hdparm -S 60 /dev/disk/by-id/ata-ST3320620AS_5QF177F6 [Install] WantedBy=default.target hibernate.target suspend.target hybrid-sleep.target This is my fstab: UUID=ea3f74c0-56aa-4c13-b9c2-23ca4f0b2a3a / ext4 acl,user_xattr,discard,noatime 1 1 UUID=e070dea7-88d5-4cfd-9656-e016fd739b03 swap swap discard 0 0 UUID=3d386d3d-dc36-4f78-86ca-a0be410bf430 /opensuse-clone ext4 acl,user_xattr,discard,noatime 1 2 UUID=05f70c43-420f-4a49-806b-b5e7ec11bffc /opensuse-alt ext4 user,noauto,acl,user_xattr,exec,dev,suid 1 2 UUID=94eda58b-133a-4a8b-ad2a-3c76a1ac1c60 /disco-B ext4 user,noauto,acl,user_xattr,data=ordered,exec,dev,suid 0 2 Partitions / swap and /opensuse-clone are on sda (SSD disk), instead /opensuse-alt and /disco-B are on sdb (Seagate disk, the one that spin up). /disco-B is an encripted partition but I think this has no impact on this specific bug, anyway the content of crypttab is: cr_ata-ST3320620AS_5QF177F6-part1 UUID=3eb902ac-7f47-4499-b0bd-faac662bfe39 none noauto,nofail If I insert an USB disk it is mapped to sdc and if I try to mount it with udisksctl mount -b /dev/sdc1 then the Seagate disk wake up. If I repeat the same operation (awaiting that the Seagate disk spin down after the usual timeout) and try to mount with mount /dev/sdc1 /mnt/ than the Seagate disk remain in suspend status and do not spin up. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com