Jump to content

Linux: Usb Light Does Not Turn Off After Umounting


klain

Recommended Posts

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. :rolleyes:

Do you know any way to cut the power off ?

Link to comment
Share on other sites

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. :huh:

Anyway :blink:

Link to comment
Share on other sites

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. :huh:

Anyway :blink:

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 by digip
Link to comment
Share on other sites

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. :rolleyes:

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...