klain Posted August 25, 2011 Share Posted August 25, 2011 Hi hak5ers. In windows when i do safe remove for some usb drive the system cuts off the power going to the device. In linux, umounting any usb device it will still have the current running on this. Since i do backup with usb drives, i'm afraid to unplug the usb drive with power on it and i just reboot the pc. Do you know any way to cut the power off ? Quote Link to comment Share on other sites More sharing options...
iisjman07 Posted August 25, 2011 Share Posted August 25, 2011 I don't know how to stop powering the device, but as long as the file system is unmounted then you shouldn't suffer data corruption Quote Link to comment Share on other sites More sharing options...
Sparda Posted August 25, 2011 Share Posted August 25, 2011 Vista and 7 no longer unpower the devices. <Insert windows bashing comment about it only just catching up> Quote Link to comment Share on other sites More sharing options...
klain Posted August 26, 2011 Author Share Posted August 26, 2011 Sparda, i'm (still) using windows xp and debian. Windows xp will be my last windows installation, i'm trying to get things working only with linux. --- mount|grep -i sdb /dev/sdb1 on /media/usb0 type vfat (rw,noexec,nosuid,nodev) lsusb Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 003: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive Bus 001 Device 002: ID 0ac8:c002 Z-Star Microelectronics Corp. Visual Communication Camera ********** Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub umount /dev/sdb1 mount|grep -i sdb cd /sys/bus/usb/devices/usb3/power ll total 0 drwxr-xr-x 2 root root 0 Aug 26 11:50 ./ drwxr-xr-x 5 root root 0 Aug 26 2011 ../ -r--r--r-- 1 root root 4.0K Aug 26 11:50 active_duration -rw-r--r-- 1 root root 4.0K Aug 26 11:50 autosuspend -r--r--r-- 1 root root 4.0K Aug 26 11:50 connected_duration -rw-r--r-- 1 root root 4.0K Aug 26 11:50 level -rw-r--r-- 1 root root 4.0K Aug 26 11:50 wakeup echo suspend > level etc. --- Still can't figure out. Wrong-strange number devices, what's the meaning of each file etc. Anyway Quote Link to comment Share on other sites More sharing options...
digip Posted August 26, 2011 Share Posted August 26, 2011 (edited) Sparda, i'm (still) using windows xp and debian. Windows xp will be my last windows installation, i'm trying to get things working only with linux. --- mount|grep -i sdb /dev/sdb1 on /media/usb0 type vfat (rw,noexec,nosuid,nodev) lsusb Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 003: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive Bus 001 Device 002: ID 0ac8:c002 Z-Star Microelectronics Corp. Visual Communication Camera ********** Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub umount /dev/sdb1 mount|grep -i sdb cd /sys/bus/usb/devices/usb3/power ll total 0 drwxr-xr-x 2 root root 0 Aug 26 11:50 ./ drwxr-xr-x 5 root root 0 Aug 26 2011 ../ -r--r--r-- 1 root root 4.0K Aug 26 11:50 active_duration -rw-r--r-- 1 root root 4.0K Aug 26 11:50 autosuspend -r--r--r-- 1 root root 4.0K Aug 26 11:50 connected_duration -rw-r--r-- 1 root root 4.0K Aug 26 11:50 level -rw-r--r-- 1 root root 4.0K Aug 26 11:50 wakeup echo suspend > level etc. --- Still can't figure out. Wrong-strange number devices, what's the meaning of each file etc. Anyway The root hubs are from what hardware is seen on the motherboard, with some of the devices being usb 1.1 and 2.0 compatible, more than likely, same device that can do both 1.1 and 2.0 The first 4 could even be like front usb ports on the machine, that share 1 port on the board split like a hub. My case for instance has two front usb ports, that share a single connection to the mother board. Also, some boards have internal usb buses that might not have connections on the exterior of the case, depending on the design and manufacturer, they may have ports n the mobo, but the oem built them without the extra ports on the case and wires, in an effort to cut costs on equipment and parts. Trivial in price to the consumer, but multiply that thousands of times for stock, and it helps them keep overhead down. Edited August 26, 2011 by digip Quote Link to comment Share on other sites More sharing options...
Sitwon Posted August 29, 2011 Share Posted August 29, 2011 Hi hak5ers. In windows when i do safe remove for some usb drive the system cuts off the power going to the device. In linux, umounting any usb device it will still have the current running on this. Since i do backup with usb drives, i'm afraid to unplug the usb drive with power on it and i just reboot the pc. Just unplug it. If it's unmounted then there's no harm in unplugging it even if the light is on. Millions of Linux users do this every day. The file system is already flushed so there's no change of data loss. Do you know any way to cut the power off ? You do realize that cutting the power to the port would be exactly the same as unplugging it, right? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.