Hey, tonight got a problem with fresh system. Sorry me noob in *nix systems.
ext4 drive with 2x6 tb wd6efrx drives in raid1 mirror.
After router reboot usb drive gone from system.
After physical cable replug it's ok
How to fix it or make a script to automate rescan of usb drive?
ext4 drive with 2x6 tb wd6efrx drives in raid1 mirror.
After router reboot usb drive gone from system.
Code:
Jan 1 03:00:39 kernel: Initializing USB Mass Storage driver...
Jan 1 03:00:39 kernel: usbcore: registered new interface driver usb-storage
Jan 1 03:00:39 kernel: USB Mass Storage support registered.
Jan 1 03:00:40 kernel: Tuxera FAT 12/16/32 driver version 3014.7.30 [Flags: R/W MODULE].
Jan 1 03:00:40 kernel: Tuxera NTFS driver 3014.7.29 [Flags: R/W MODULE].
Jan 1 03:00:40 kernel: Tuxera HFS+ driver 3014.7.28
Jan 1 03:00:40 kernel: xhci_hcd 0000:00:0c.0: xHCI Host Controller
Jan 1 03:00:40 kernel: xhci_hcd 0000:00:0c.0: new USB bus registered, assigned bus number 1
Jan 1 03:00:40 kernel: xhci_hcd 0000:00:0c.0: irq 112, io mem 0x18023000
Jan 1 03:00:40 kernel: xhci_hcd 0000:00:0c.0: Failed to enable MSI-X
Jan 1 03:00:40 kernel: xhci_hcd 0000:00:0c.0: failed to allocate MSI entry
Jan 1 03:00:40 kernel: usb usb1: No SuperSpeed endpoint companion for config 1 interface 0 altsetting 0 ep 129: using minimum values
Jan 1 03:00:40 kernel: hub 1-0:1.0: USB hub found
Jan 1 03:00:40 kernel: hub 1-0:1.0: 1 port detected
Jan 1 03:00:40 kernel: [xhci-hub] usb2mode:[0]
Jan 1 03:00:40 kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Jan 1 03:00:40 kernel: ehci_hcd 0000:00:0b.1: EHCI Host Controller
Jan 1 03:00:40 kernel: ehci_hcd 0000:00:0b.1: new USB bus registered, assigned bus number 2
Jan 1 03:00:40 kernel: ehci_hcd 0000:00:0b.1: irq 111, io mem 0x18021000
Jan 1 03:00:40 kernel: ehci_hcd 0000:00:0b.1: USB 0.0 started, EHCI 1.00
Jan 1 03:00:40 kernel: hub 2-0:1.0: USB hub found
Jan 1 03:00:40 kernel: hub 2-0:1.0: 2 ports detected
Jan 1 03:00:40 kernel: ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Jan 1 03:00:40 kernel: ohci_hcd 0000:00:0b.0: OHCI Host Controller
Jan 1 03:00:40 kernel: ohci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 3
Jan 1 03:00:40 kernel: ohci_hcd 0000:00:0b.0: irq 111, io mem 0x18022000
Jan 1 03:00:40 kernel: hub 3-0:1.0: USB hub found
Jan 1 03:00:40 kernel: hub 3-0:1.0: 2 ports detected
Jan 1 03:00:40 kernel: usbcore: registered new interface driver usblp
Jan 1 03:00:41 kernel: usbcore: registered new interface driver asix
Jan 1 03:00:41 kernel: usbcore: registered new interface driver cdc_ether
Jan 1 03:00:41 kernel: usbcore: registered new interface driver rndis_host
Jan 1 03:00:41 kernel: cdc_ncm: 14-Mar-2012
Jan 1 03:00:41 kernel: usbcore: registered new interface driver cdc_ncm
Jan 1 03:00:41 kernel: usbcore: registered new interface driver cdc_wdm
Jan 1 03:00:41 kernel: usb 1-1: new SuperSpeed USB device using xhci_hcd and address 2
Jan 1 03:00:41 kernel: usbcore: registered new interface driver qmi_wwan
Jan 1 03:00:41 kernel: xhci_hcd 0000:00:0c.0: WARN: short transfer on control ep
Jan 1 03:00:41 kernel: xhci_hcd 0000:00:0c.0: WARN: short transfer on control ep
Jan 1 03:00:41 kernel: xhci_hcd 0000:00:0c.0: WARN: short transfer on control ep
Jan 1 03:00:41 kernel: xhci_hcd 0000:00:0c.0: WARN: short transfer on control ep
Jan 1 03:00:41 kernel: xhci_hcd 0000:00:0c.0: disable burst on ep 1
Jan 1 03:00:41 kernel: xhci_hcd 0000:00:0c.0: WARN no SS endpoint bMaxBurst
Jan 1 03:00:41 kernel: cdc_mbim: loaded
Jan 1 03:00:41 kernel: usbcore: registered new interface driver cdc_mbim
Jan 1 03:00:41 kernel: xhci_hcd 0000:00:0c.0: disable burst on ep 2
Jan 1 03:00:41 kernel: xhci_hcd 0000:00:0c.0: WARN no SS endpoint bMaxBurst
Jan 1 03:00:41 kernel: scsi0 : usb-storage 1-1:1.0
Jan 1 03:00:41 start_nat_rules: apply the nat_rules(/tmp/nat_rules_ppp0_eth0)!
Jan 1 03:00:42 kernel: scsi 0:0:0:0: Direct-Access JMicron RAID-1 0100 PQ: 0 ANSI: 5
Jan 1 03:00:42 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
Jan 1 03:00:42 kernel: sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
Jan 1 03:00:42 kernel: sd 0:0:0:0: [sda] 11721045152 512-byte logical blocks: (6.00 TB/5.45 TiB)
Jan 1 03:00:42 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
Jan 1 03:00:42 kernel: sd 0:0:0:0: [sda] Write Protect is off
Jan 1 03:00:42 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jan 1 03:00:42 kernel: sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
Jan 1 03:00:42 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
Jan 1 03:00:42 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jan 1 03:00:42 kernel: sda: unknown partition table
Jan 1 03:00:42 kernel: sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
Jan 1 03:00:42 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
Jan 1 03:00:42 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jan 1 03:00:42 kernel: sd 0:0:0:0: [sda] Attached SCSI disk
Jan 1 03:00:42 rc_service: asus_sd 735:notify_rc restart_xhcimode 2
Code:
Jun 15 02:51:30 kernel: usb 2-1: new high speed USB device using ehci_hcd and address 2
Jun 15 02:51:31 kernel: scsi1 : usb-storage 2-1:1.0
Jun 15 02:51:32 kernel: scsi 1:0:0:0: Direct-Access JMicron RAID-1 0100 PQ: 0 ANSI: 5
Jun 15 02:51:32 kernel: sd 1:0:0:0: Attached scsi generic sg0 type 0
Jun 15 02:51:32 kernel: sd 1:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
Jun 15 02:51:32 kernel: sd 1:0:0:0: [sda] 11721045152 512-byte logical blocks: (6.00 TB/5.45 TiB)
Jun 15 02:51:32 kernel: sd 1:0:0:0: [sda] Write Protect is off
Jun 15 02:51:32 kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through
Jun 15 02:51:32 kernel: sd 1:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
Jun 15 02:51:32 kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through
Jun 15 02:51:32 kernel: sda: unknown partition table
Jun 15 02:51:32 kernel: sd 1:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
Jun 15 02:51:32 kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through
Jun 15 02:51:32 kernel: sd 1:0:0:0: [sda] Attached SCSI disk
Jun 15 02:51:33 hotplug[1503]: USB ext4 fs at /dev/sda mounted on /tmp/mnt/HDD
Jun 15 02:51:33 usb: USB ext4 fs at /dev/sda mounted on /tmp/mnt/HDD.
Jun 15 02:51:33 kernel: EXT4-fs (sda): mounted filesystem with ordered data mode. Opts: user_xattr
Jun 15 02:51:34 admin: sh /opt/S95transmission.1 start
How to fix it or make a script to automate rescan of usb drive?