second network card with same driver

I do own three network cards with a RTL 8139 chipset and finally managed to get them work with my installation by simply adding a new file:

/etc/modprobe.d/8139too.config

alias eth1 8139too
alias eth2 8139too

The interface eth0 is reserved for the internal network card of the board.

cubieboard 4 boot log

dmesg
d
[ 11.439987] mmcblk1boot1: unknown partition table
[ 11.441793] mmcblk1boot0: unknown partition table
[ 11.442148] *******************mmc init ok *******************
[ 11.517693] registered taskstats version 1
[ 11.529095] [LCD]lcd_module_init
[ 11.539863] [LCD]lcd_module_init finish
[ 11.551706] [HDMI] debug to check 111 !!
[ 11.562820] [DISP] disp_get_hdmi,line:41: screen_id 0 do not support HDMI TYPE!
[ 11.577698] [DISP] bsp_disp_set_hdmi_func,line:1316: get hdmi0 failed!
[ 11.592387] axp15_bldo2: incomplete constraints, leaving on
[ 11.605623] axp15_bldo1: incomplete constraints, leaving on
[ 11.618686] axp15_aldo1: incomplete constraints, leaving on
[ 11.631655] axp15_dcdc4: incomplete constraints, leaving on
[ 11.644556] axp15_dcdc1: incomplete constraints, leaving on
[ 11.657322] axp22_ldoio1: incomplete constraints, leaving on
[ 11.670145] axp22_dc5ldo: incomplete constraints, leaving on
[ 11.682952] axp22_eldo3: incomplete constraints, leaving on
[ 11.695088] usb 7-1: reset SuperSpeed USB device number 3 using xhci-hcd
[ 11.709757] axp22_eldo2: incomplete constraints, leaving on
[ 11.715476] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 11.715487] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 11.735375] sd 1:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 11.769094] axp22_dldo2: incomplete constraints, leaving on
[ 11.781993] axp22_aldo3: incomplete constraints, leaving on
[ 11.794739] axp22_aldo2: incomplete constraints, leaving on
[ 11.807489] axp22_rtc: incomplete constraints, leaving on
[ 11.820045] axp22_dcdc5: incomplete constraints, leaving on
[ 11.832722] axp22_dcdc4: incomplete constraints, leaving on
[ 11.845235] axp22_dcdc3: incomplete constraints, leaving on
[ 11.857699] axp22_dcdc1: incomplete constraints, leaving on
[ 11.870299] otg_wakelock_init: No USB transceiver found
[ 11.882602] rtc_gettime(323): read time 1970-1-2 1:34:40
[ 11.894765] rtc0 rtc0: setting system clock to 1970-01-02 01:34:40 UTC (92080)
[ 11.909685] input: sunxi-ths as /devices/virtual/input/input2
[ 11.923122] suxi_ths: Kernel Thermal management registered
[ 11.936149] suxi_ths: Kernel Thermal management registered
[ 11.949374] sunxi_ths_bind : thermal-budget-0
[ 11.954160] ths_zone trip = 60, adjust lower = 0, upper = 1
[ 11.972754] ths_zone trip = 75, adjust lower = 1, upper = 2
[ 11.984968] ths_zone trip = 85, adjust lower = 2, upper = 5
[ 11.997026] ths_zone trip = 95, adjust lower = 5, upper = 9
[ 12.008985] ths_zone trip = 105, adjust lower = 0, upper = 0
[ 12.020994] sunxi_ths_bind : thermal-budget-0
[ 12.025790] ths_zone trip = 105, adjust lower = 0, upper = 9
[ 12.043501] CPU Budget:Register notifier
[ 12.053559] CPU Budget:register Success
[ 12.063455] sunxi-budget-cooling sunxi-budget-cooling: Cooling device registered: thermal-budget-0
[ 12.084640] ALSA device list:
[ 12.093596] #0: snddaudio
[ 12.102211] #1: sndhdmi
[ 12.139930] sdb: sdb1
[ 12.148989] sd 1:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 12.163368] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 12.174579] EXT3-fs (mmcblk0p2): error: couldn’t mount because of unsupported optional features (240)
[ 12.335673] EXT2-fs (mmcblk0p2): error: couldn’t mount because of unsupported optional features (244)
[ 13.033739] EXT4-fs (mmcblk0p2): ext4_orphan_cleanup: deleting unreferenced inode 442
[ 13.048007] EXT4-fs (mmcblk0p2): 1 orphan inode deleted
[ 13.058949] EXT4-fs (mmcblk0p2): recovery complete
[ 13.089856] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 13.104004] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 13.117889] devtmpfs: mounted
[ 13.127275] Freeing init memory: 384K
[ 13.766695] udevd[1291]: starting version 175
[ 15.132877] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 17.735103] usb 7-1: reset SuperSpeed USB device number 3 using xhci-hcd
[ 17.765545] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 17.780232] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 18.368390] usb 7-1: Device not responding to set address.
[ 18.584995] usb 7-1: Device not responding to set address.
[ 18.804979] usb 7-1: device not accepting address 3, error -71
[ 18.995084] usb 7-1: reset SuperSpeed USB device number 3 using xhci-hcd
[ 19.026582] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 19.042398] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 19.245842] axp15_cldo1: Failed to create debugfs directory
[ 19.261345] axp22_ldoio1: Failed to create debugfs directory
[ 19.598058] gmac0: probed
[ 19.607602] gmac0 gmac0: eth0: eth0: PHY ID 001cc915 at 0 IRQ poll (gmac0-0:00)
[ 19.875144] usb 7-1: reset SuperSpeed USB device number 3 using xhci-hcd
[ 19.905564] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 19.921042] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 21.815118] usb 7-1: reset SuperSpeed USB device number 3 using xhci-hcd
[ 21.845629] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 21.862887] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 23.044991] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 23.052964] usb 7-1: USB disconnect, device number 3
[ 23.067619] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[ 23.073675] sd 1:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 23.084634] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 23.093926] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 23.505100] usb 7-1: new SuperSpeed USB device number 4 using xhci-hcd
[ 23.530952] scsi2 : usb-storage 7-1:1.0
[ 23.605041] PHY: gmac0-0:00 – Link is Up – 100/Full
[ 24.535587] scsi 2:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 24.548689] sd 2:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 24.558695] sd 2:0:0:0: [sdb] Write Protect is off
[ 24.568858] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 24.575115] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 24.587405] sd 2:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 24.597398] sdb: sdb1
[ 24.604656] sd 2:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 24.615587] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 30.194941] eth0: no IPv6 routers present
[ 34.145095] usb 7-1: reset SuperSpeed USB device number 4 using xhci-hcd
[ 34.165582] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c1bc0
[ 34.174657] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c1bec
[ 34.545064] usb 7-1: reset SuperSpeed USB device number 4 using xhci-hcd
[ 34.565485] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c1bc0
[ 34.574552] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c1bec
[ 34.995094] usb 7-1: reset SuperSpeed USB device number 4 using xhci-hcd
[ 35.015479] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c1bc0
[ 35.024552] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c1bec
[ 35.034152] usb 7-1: can’t restore configuration #1 (error=-71)
[ 35.041179] usb 7-1: USB disconnect, device number 4
[ 35.055573] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[ 35.061634] sd 2:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 35.530516] usb 7-1: Device not responding to set address.
[ 35.744974] usb 7-1: Device not responding to set address.
[ 35.954964] usb 7-1: device not accepting address 5, error -71
[ 37.035006] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 37.043010] hub 7-0:1.0: unable to enumerate USB device on port 1
[ 37.435038] usb 7-1: new SuperSpeed USB device number 7 using xhci-hcd
[ 37.460866] scsi3 : usb-storage 7-1:1.0
[ 38.465556] scsi 3:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 38.479721] sd 3:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 38.489223] sd 3:0:0:0: [sdb] Write Protect is off
[ 38.494703] sd 3:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 38.502111] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 38.513844] sd 3:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 38.523764] sdb: sdb1
[ 38.527913] sd 3:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 38.537345] sd 3:0:0:0: [sdb] Attached SCSI disk
[ 38.785062] usb 7-1: reset SuperSpeed USB device number 7 using xhci-hcd
[ 38.810778] usb 7-1: device descriptor read/8, error -71
[ 38.924944] usb 7-1: reset SuperSpeed USB device number 7 using xhci-hcd
[ 38.952977] usb 7-1: device descriptor read/8, error -71
[ 39.245084] usb 7-1: reset SuperSpeed USB device number 7 using xhci-hcd
[ 39.265439] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 39.274515] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 45.474981] usb 7-1: device not accepting address 7, error -22
[ 46.824968] usb 7-1: device not accepting address 7, error -22
[ 47.694955] usb 7-1: device not accepting address 7, error -22
[ 48.294964] usb 7-1: device not accepting address 7, error -22
[ 48.301672] usb 7-1: USB disconnect, device number 7
[ 48.316579] sd 3:0:0:0: [sdb] Synchronizing SCSI cache
[ 48.322584] sd 3:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 48.333784] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 48.343334] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 48.965044] usb 7-1: new SuperSpeed USB device number 8 using xhci-hcd
[ 49.001123] scsi4 : usb-storage 7-1:1.0
[ 50.015553] scsi 4:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 50.036437] sd 4:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 50.053548] sd 4:0:0:0: [sdb] Write Protect is off
[ 50.066435] sd 4:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 50.079449] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 50.098012] sd 4:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 50.115066] sdb: sdb1
[ 50.125887] sd 4:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 50.142555] sd 4:0:0:0: [sdb] Attached SCSI disk
[ 50.945091] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 50.975463] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 50.991544] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 52.825087] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 52.855126] usb 7-1: device descriptor read/8, error -71
[ 52.974952] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 53.005117] usb 7-1: device descriptor read/8, error -71
[ 53.320769] usb 7-1: Device not responding to set address.
[ 53.544987] usb 7-1: Device not responding to set address.
[ 53.764959] usb 7-1: device not accepting address 8, error -71
[ 53.955056] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 53.985493] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 54.001274] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 54.265073] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 54.295536] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 54.311364] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 54.755090] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 54.785496] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 54.801380] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 56.205078] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 56.235438] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 56.251404] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 56.755084] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 56.785516] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 56.801427] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 57.265064] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 57.295440] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 57.311411] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 62.205098] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 62.235478] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 62.251410] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 63.285076] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 63.315517] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 63.331304] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 63.805090] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 63.835485] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 63.851273] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 64.365059] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 64.395512] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 64.411227] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 64.895097] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 64.925127] usb 7-1: device descriptor read/8, error -71
[ 65.044945] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 65.075106] usb 7-1: device descriptor read/8, error -71
[ 65.645068] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 65.675554] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 65.691592] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 66.165147] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 66.196887] usb 7-1: device descriptor read/8, error -71
[ 66.314955] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 66.345098] usb 7-1: device descriptor read/8, error -71
[ 66.645058] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 66.675606] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 66.692491] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 67.095081] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 67.125445] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 67.141635] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 68.915063] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 68.945504] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 68.961645] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 69.245076] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 69.275505] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 69.291488] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 70.655107] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 70.685469] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 70.701843] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 71.035074] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 71.070996] usb 7-1: device descriptor read/8, error -71
[ 71.184954] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 71.215101] usb 7-1: device descriptor read/8, error -71
[ 71.515065] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 71.545464] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 71.561490] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 75.225127] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 75.255457] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 75.271656] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 81.235010] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 81.664970] usb 7-1: device not accepting address 8, error -22
[ 82.274961] usb 7-1: device not accepting address 8, error -22
[ 82.884991] usb 7-1: device not accepting address 8, error -22
[ 83.494957] usb 7-1: device not accepting address 8, error -22
[ 83.508485] usb 7-1: USB disconnect, device number 8
[ 83.529653] sd 4:0:0:0: [sdb] Synchronizing SCSI cache
[ 83.542747] sd 4:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 83.560502] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 83.576706] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 84.195062] usb 7-1: new SuperSpeed USB device number 9 using xhci-hcd
[ 84.230736] scsi5 : usb-storage 7-1:1.0
[ 85.245556] scsi 5:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 85.265675] sd 5:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 85.283763] sd 5:0:0:0: [sdb] Write Protect is off
[ 85.297986] sd 5:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 85.311351] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 85.331098] sd 5:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 87.697369] sdb: sdb1
[ 87.712377] sd 5:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 87.737526] sd 5:0:0:0: [sdb] Attached SCSI disk
[ 96.085162] usb 7-1: reset SuperSpeed USB device number 9 using xhci-hcd
[ 96.115504] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117d40
[ 96.131945] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117d6c
[ 98.884962] usb 7-1: device not accepting address 9, error -22
[ 99.495003] usb 7-1: device not accepting address 9, error -22
[ 100.525018] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 100.540115] usb 7-1: USB disconnect, device number 9
[ 100.561464] sd 5:0:0:0: [sdb] Synchronizing SCSI cache
[ 100.574477] sd 5:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 100.592361] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117d40
[ 100.608169] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117d6c
[ 100.905041] usb 7-1: new SuperSpeed USB device number 10 using xhci-hcd
[ 100.940429] scsi6 : usb-storage 7-1:1.0
[ 101.945545] scsi 6:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 101.965776] sd 6:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 101.983880] sd 6:0:0:0: [sdb] Write Protect is off
[ 101.999120] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 102.012255] sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 102.031064] sd 6:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 102.048300] sdb: sdb1
[ 102.064900] sd 6:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 102.084181] sd 6:0:0:0: [sdb] Attached SCSI disk
[ 104.214971] usb 7-1: device not accepting address 10, error -22
[ 105.094962] usb 7-1: device not accepting address 10, error -22
[ 105.704957] usb 7-1: device not accepting address 10, error -22
[ 106.314983] usb 7-1: device not accepting address 10, error -22
[ 106.328772] usb 7-1: USB disconnect, device number 10
[ 106.349721] sd 6:0:0:0: [sdb] Synchronizing SCSI cache
[ 106.362626] sd 6:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 106.380184] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edac5740
[ 106.396263] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edac576c
[ 106.685043] usb 7-1: new SuperSpeed USB device number 11 using xhci-hcd
[ 106.720818] scsi7 : usb-storage 7-1:1.0
[ 107.735544] scsi 7:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 107.755404] sd 7:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 107.773495] sd 7:0:0:0: [sdb] Write Protect is off
[ 107.788390] sd 7:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 107.801328] sd 7:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 107.819883] sd 7:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 107.836849] sdb: sdb1
[ 107.850575] sd 7:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 107.868681] sd 7:0:0:0: [sdb] Attached SCSI disk
[ 110.165119] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 110.195481] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 110.211161] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 110.585062] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 110.615467] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 110.631149] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 111.005115] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 111.035504] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 111.052209] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 113.805064] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 113.835462] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 113.851653] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 118.385082] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 118.415515] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 118.431722] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 118.995076] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 119.025563] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 119.041713] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 120.585086] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 120.615114] usb 7-1: device descriptor read/8, error -71
[ 120.734946] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 120.765103] usb 7-1: device descriptor read/8, error -71
[ 121.335061] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 121.365497] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 121.381652] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 135.115091] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 135.145507] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 135.161518] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 140.525104] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 140.555488] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 140.571456] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 141.245072] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 141.275569] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 141.291721] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 141.697507] usb 7-1: Device not responding to set address.
[ 141.914977] usb 7-1: Device not responding to set address.
[ 142.134966] usb 7-1: device not accepting address 11, error -71
[ 142.595077] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 142.625489] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 142.641556] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 145.925094] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 145.955469] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 145.971412] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 151.924957] usb 7-1: device not accepting address 11, error -22
[ 152.534961] usb 7-1: device not accepting address 11, error -22
[ 153.144964] usb 7-1: device not accepting address 11, error -22
[ 153.754956] usb 7-1: device not accepting address 11, error -22
[ 153.768399] usb 7-1: USB disconnect, device number 11
[ 153.789321] sd 7:0:0:0: [sdb] Synchronizing SCSI cache
[ 153.802285] sd 7:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 153.820044] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 153.836227] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 154.265057] usb 7-1: new SuperSpeed USB device number 12 using xhci-hcd
[ 154.301100] scsi8 : usb-storage 7-1:1.0
[ 154.505108] usb 7-1: reset SuperSpeed USB device number 12 using xhci-hcd
[ 154.535505] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edac5b40
[ 154.551502] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edac5b6c
[ 155.315567] scsi 8:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 155.335703] sd 8:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 155.355119] sd 8:0:0:0: [sdb] Write Protect is off
[ 155.369800] sd 8:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 155.383073] sd 8:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 155.402249] sd 8:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 186.175028] sd 8:0:0:0: Device offlined – not ready after error recovery
[ 186.191010] sd 8:0:0:0: [sdb] Unhandled error code
[ 186.203189] sd 8:0:0:0: [sdb] Result: hostbyte=0x05 driverbyte=0x00
[ 186.217049] sd 8:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
[ 186.232031] end_request: I/O error, dev sdb, sector 0
[ 186.244347] Buffer I/O error on device sdb, logical block 0
[ 186.257286] sd 8:0:0:0: rejecting I/O to offline device
[ 186.270550] sd 8:0:0:0: rejecting I/O to offline device
[ 186.283492] sdb: unable to read partition table
[ 186.295996] sd 8:0:0:0: [sdb] Attached SCSI disk
[ 186.365034] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 188.575015] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 190.755019] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 192.965018] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 192.978499] usb 7-1: USB disconnect, device number 12
[ 192.996172] sd 8:0:0:0: [sdb] Synchronizing SCSI cache
[ 193.008693] sd 8:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 193.308974] usb 7-1: new SuperSpeed USB device number 13 using xhci-hcd
[ 193.340583] scsi9 : usb-storage 7-1:1.0
[ 194.355546] scsi 9:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 194.375849] sd 9:0:0:0: [sdb] Spinning up disk…..ready
[ 196.402909] sd 9:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 196.418560] sd 9:0:0:0: [sdb] Write Protect is off
[ 196.430414] sd 9:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 196.442807] sd 9:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 196.461592] sd 9:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 197.963698] sdb: sdb1
[ 197.978132] sd 9:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 198.002362] sd 9:0:0:0: [sdb] Attached SCSI disk
[ 199.335097] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 199.365458] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 199.381793] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 205.585090] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 205.615483] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 205.631129] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 205.895060] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 205.925103] usb 7-1: device descriptor read/8, error -71
[ 206.045008] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 206.075138] usb 7-1: device descriptor read/8, error -71
[ 206.375080] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 206.405506] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 206.421179] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 206.645077] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 206.675491] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 206.691126] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 206.935060] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 206.965452] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 206.981144] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 208.966764] usb 7-1: Device not responding to set address.
[ 209.185022] usb 7-1: Device not responding to set address.
[ 209.404957] usb 7-1: device not accepting address 13, error -71
[ 209.595070] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 209.625534] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 209.641368] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 209.895054] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 209.925501] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 209.941327] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 209.957158] usb 7-1: can’t restore configuration #1 (error=-71)
[ 209.970566] usb 7-1: USB disconnect, device number 13
[ 209.988846] sd 9:0:0:0: [sdb] Synchronizing SCSI cache
[ 210.001937] sd 9:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 210.435086] usb 7-1: new SuperSpeed USB device number 14 using xhci-hcd
[ 210.465114] usb 7-1: device descriptor read/8, error -71
[ 210.584949] usb 7-1: new SuperSpeed USB device number 14 using xhci-hcd
[ 210.615107] usb 7-1: device descriptor read/8, error -71
[ 210.917608] usb 7-1: Device not responding to set address.
[ 211.134978] usb 7-1: Device not responding to set address.
[ 211.354950] usb 7-1: device not accepting address 15, error -71
[ 211.557216] usb 7-1: Device not responding to set address.
[ 211.774988] usb 7-1: Device not responding to set address.
[ 211.994958] usb 7-1: device not accepting address 16, error -71
[ 212.185075] usb 7-1: new SuperSpeed USB device number 17 using xhci-hcd
[ 212.220666] scsi10 : usb-storage 7-1:1.0
[ 213.755357] usb 7-1: device not accepting address 17, error -22
[ 214.634962] usb 7-1: device not accepting address 17, error -22
[ 215.514955] usb 7-1: device not accepting address 17, error -22
[ 216.124971] usb 7-1: device not accepting address 17, error -22
[ 216.138391] usb 7-1: USB disconnect, device number 17
[ 216.169427] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee39e940
[ 216.185008] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee39e96c
[ 216.635044] usb 7-1: new SuperSpeed USB device number 18 using xhci-hcd
[ 216.670840] scsi11 : usb-storage 7-1:1.0
[ 217.135061] usb 7-1: reset SuperSpeed USB device number 18 using xhci-hcd
[ 217.165455] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bc0
[ 217.181117] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bec
[ 217.675569] scsi 11:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 217.695541] sd 11:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 217.714675] sd 11:0:0:0: [sdb] Write Protect is off
[ 217.729304] sd 11:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 217.742224] sd 11:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 217.761118] sd 11:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 217.778122] sdb: sdb1
[ 217.791809] sd 11:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 217.808514] sd 11:0:0:0: [sdb] Attached SCSI disk
[ 218.505131] usb 7-1: reset SuperSpeed USB device number 18 using xhci-hcd
[ 218.535486] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bc0
[ 218.551078] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bec
[ 224.445081] usb 7-1: reset SuperSpeed USB device number 18 using xhci-hcd
[ 224.475542] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bc0
[ 224.491247] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bec
[ 228.545085] usb 7-1: reset SuperSpeed USB device number 18 using xhci-hcd
[ 228.575462] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bc0
[ 228.591169] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bec
[ 230.424958] usb 7-1: device not accepting address 18, error -22
[ 231.034961] usb 7-1: device not accepting address 18, error -22
[ 231.644987] usb 7-1: device not accepting address 18, error -22
[ 232.254975] usb 7-1: device not accepting address 18, error -22
[ 232.268205] usb 7-1: USB disconnect, device number 18
[ 232.288751] sd 11:0:0:0: [sdb] Synchronizing SCSI cache
[ 232.301350] sd 11:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 232.318679] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bc0
[ 232.333980] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bec
[ 233.584989] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 233.599224] hub 7-0:1.0: unable to enumerate USB device on port 1
[ 234.255056] usb 7-1: new SuperSpeed USB device number 20 using xhci-hcd
[ 234.290683] scsi12 : usb-storage 7-1:1.0
[ 234.575076] usb 7-1: reset SuperSpeed USB device number 20 using xhci-hcd
[ 234.605510] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5940
[ 234.620853] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad596c
[ 235.295552] scsi 12:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 235.315341] sd 12:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 235.334405] sd 12:0:0:0: [sdb] Write Protect is off
[ 235.348741] sd 12:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 235.361602] sd 12:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 235.380488] sd 12:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 235.397337] sdb: sdb1
[ 235.410996] sd 12:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 235.427613] sd 12:0:0:0: [sdb] Attached SCSI disk
[ 239.054989] usb 7-1: device not accepting address 20, error -22
[ 239.934960] usb 7-1: device not accepting address 20, error -22
[ 240.544969] usb 7-1: device not accepting address 20, error -22
[ 241.154958] usb 7-1: device not accepting address 20, error -22
[ 241.168093] usb 7-1: USB disconnect, device number 20
[ 241.188872] sd 12:0:0:0: [sdb] Synchronizing SCSI cache
[ 241.201659] sd 12:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 241.223279] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5940
[ 241.238887] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad596c
[ 241.535043] usb 7-1: new SuperSpeed USB device number 21 using xhci-hcd
[ 241.570534] scsi13 : usb-storage 7-1:1.0
[ 242.575592] scsi 13:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 242.595581] sd 13:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 242.613649] sd 13:0:0:0: [sdb] Write Protect is off
[ 242.628695] sd 13:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 242.641825] sd 13:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 242.660880] sd 13:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 242.678105] sdb: sdb1
[ 242.695163] sd 13:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 242.713430] sd 13:0:0:0: [sdb] Attached SCSI disk
[ 245.605082] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 245.635502] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 245.651327] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 247.845088] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 247.875486] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 247.891537] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 253.603750] usb 7-1: Device not responding to set address.
[ 253.824974] usb 7-1: Device not responding to set address.
[ 254.044973] usb 7-1: device not accepting address 21, error -71
[ 254.235069] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 254.265516] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 254.281134] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 257.285100] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 257.315526] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 257.331381] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 257.585060] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 257.615635] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 257.631379] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 258.275083] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 258.305504] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 258.321075] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 258.615122] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 258.645446] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 258.661158] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 260.375083] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 260.405488] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 260.421633] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 261.665077] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 261.695498] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 261.711649] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 261.955088] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 261.985464] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 262.001589] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 262.295361] usb 7-1: Device not responding to set address.
[ 262.514978] usb 7-1: Device not responding to set address.
[ 262.734982] usb 7-1: device not accepting address 21, error -71
[ 262.925044] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 262.955520] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 262.971719] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 265.494959] usb 7-1: device not accepting address 21, error -22
[ 266.104981] usb 7-1: device not accepting address 21, error -22
[ 266.714960] usb 7-1: device not accepting address 21, error -22
[ 267.328777] usb 7-1: device not accepting address 21, error -22
[ 267.342396] usb 7-1: USB disconnect, device number 21
[ 267.363861] sd 13:0:0:0: [sdb] Synchronizing SCSI cache
[ 267.376689] sd 13:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 267.394856] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 267.411006] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 267.775042] usb 7-1: new SuperSpeed USB device number 22 using xhci-hcd
[ 267.810528] scsi14 : usb-storage 7-1:1.0
[ 268.815629] scsi 14:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 268.835715] sd 14:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 268.853823] sd 14:0:0:0: [sdb] Write Protect is off
[ 268.868861] sd 14:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 268.881939] sd 14:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 268.900718] sd 14:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 299.145121] sd 14:0:0:0: Device offlined – not ready after error recovery
[ 299.161014] sd 14:0:0:0: [sdb] Unhandled error code
[ 299.173282] sd 14:0:0:0: [sdb] Result: hostbyte=0x05 driverbyte=0x00
[ 299.187272] sd 14:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
[ 299.202223] end_request: I/O error, dev sdb, sector 0
[ 299.214539] Buffer I/O error on device sdb, logical block 0
[ 299.227418] sd 14:0:0:0: rejecting I/O to offline device
[ 299.240660] sd 14:0:0:0: rejecting I/O to offline device
[ 299.253650] sdb: unable to read partition table
[ 299.265955] sd 14:0:0:0: [sdb] Attached SCSI disk
[ 299.365008] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 301.545017] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 301.558245] usb 7-1: USB disconnect, device number 22
[ 301.575764] sd 14:0:0:0: [sdb] Synchronizing SCSI cache
[ 301.588185] sd 14:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 301.945040] usb 7-1: new SuperSpeed USB device number 23 using xhci-hcd
[ 301.980430] scsi15 : usb-storage 7-1:1.0
[ 302.335093] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 302.365469] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dc0
[ 302.381105] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dec
[ 302.655122] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 302.685122] usb 7-1: device descriptor read/8, error -71
[ 302.804949] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 302.835103] usb 7-1: device descriptor read/8, error -71
[ 303.675066] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 303.708451] usb 7-1: device descriptor read/8, error -71
[ 303.824945] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 303.855092] usb 7-1: device descriptor read/8, error -71
[ 304.155136] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 304.185461] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dc0
[ 304.201102] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dec
[ 304.221355] scsi 15:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 304.241804] sd 15:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 304.261187] sd 15:0:0:0: [sdb] Write Protect is off
[ 304.275798] sd 15:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 304.289213] sd 15:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 304.308113] sd 15:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 306.642205] sdb: sdb1
[ 306.656622] sd 15:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 306.672669] sd 15:0:0:0: [sdb] Attached SCSI disk
[ 316.575098] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 316.605499] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dc0
[ 316.621261] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dec
[ 316.995087] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 317.025565] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dc0
[ 317.041437] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dec
[ 318.644967] usb 7-1: device not accepting address 23, error -22
[ 319.524964] usb 7-1: device not accepting address 23, error -22
[ 320.134959] usb 7-1: device not accepting address 23, error -22
[ 320.744962] usb 7-1: device not accepting address 23, error -22
[ 320.758475] usb 7-1: USB disconnect, device number 23
[ 320.779454] sd 15:0:0:0: [sdb] Synchronizing SCSI cache
[ 320.792399] sd 15:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 320.810219] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dc0
[ 320.826336] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dec
[ 325.835093] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 331.794984] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 404.275020] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 404.705074] usb 7-1: new SuperSpeed USB device number 24 using xhci-hcd
[ 404.740689] scsi16 : usb-storage 7-1:1.0
[ 405.745584] scsi 16:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 405.765468] sd 16:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 405.783515] sd 16:0:0:0: [sdb] Write Protect is off
[ 405.798173] sd 16:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 405.811159] sd 16:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 405.829996] sd 16:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 436.135027] sd 16:0:0:0: Device offlined – not ready after error recovery
[ 436.149628] sd 16:0:0:0: [sdb] Unhandled error code
[ 436.161800] sd 16:0:0:0: [sdb] Result: hostbyte=0x05 driverbyte=0x00
[ 436.175819] sd 16:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
[ 436.190781] end_request: I/O error, dev sdb, sector 0
[ 436.203154] Buffer I/O error on device sdb, logical block 0
[ 436.216101] sd 16:0:0:0: rejecting I/O to offline device
[ 436.229109] sd 16:0:0:0: rejecting I/O to offline device
[ 436.242065] sdb: unable to read partition table
[ 436.254440] sd 16:0:0:0: [sdb] Attached SCSI disk
[ 436.335044] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 436.348716] usb 7-1: USB disconnect, device number 24
[ 436.366353] sd 16:0:0:0: [sdb] Synchronizing SCSI cache
[ 436.379411] sd 16:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 436.735065] usb 7-1: new SuperSpeed USB device number 25 using xhci-hcd
[ 436.770539] scsi17 : usb-storage 7-1:1.0
[ 437.255076] usb 7-1: reset SuperSpeed USB device number 25 using xhci-hcd
[ 437.285472] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee3d8140
[ 437.301101] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee3d816c
[ 437.775602] scsi 17:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 437.796090] sd 17:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 437.814662] sd 17:0:0:0: [sdb] Write Protect is off
[ 437.829032] sd 17:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 437.841822] sd 17:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 437.860800] sd 17:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 468.105122] sd 17:0:0:0: Device offlined – not ready after error recovery
[ 468.119871] sd 17:0:0:0: [sdb] Unhandled error code
[ 468.132187] sd 17:0:0:0: [sdb] Result: hostbyte=0x05 driverbyte=0x00
[ 468.146362] sd 17:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
[ 468.161415] end_request: I/O error, dev sdb, sector 0
[ 468.173591] Buffer I/O error on device sdb, logical block 0
[ 468.187095] sd 17:0:0:0: rejecting I/O to offline device
[ 468.200313] sd 17:0:0:0: rejecting I/O to offline device
[ 468.213239] sdb: unable to read partition table
[ 468.225543] sd 17:0:0:0: [sdb] Attached SCSI disk
[ 468.265003] usb 7-1: USB disconnect, device number 25
[ 468.282584] sd 17:0:0:0: [sdb] Synchronizing SCSI cache
[ 468.295512] sd 17:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 502.784053] EXT4-fs (sda1): recovery complete
[ 502.797699] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 533.145018] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 533.435051] usb 7-1: new SuperSpeed USB device number 26 using xhci-hcd
[ 533.471280] scsi18 : usb-storage 7-1:1.0
[ 535.135018] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 535.564966] usb 7-1: device not accepting address 26, error -22
[ 536.174961] usb 7-1: device not accepting address 26, error -22
[ 537.265017] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 537.694966] usb 7-1: device not accepting address 26, error -22
[ 538.304960] usb 7-1: device not accepting address 26, error -22
[ 538.318791] usb 7-1: USB disconnect, device number 26
[ 538.349449] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 538.365489] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 538.715066] usb 7-1: new SuperSpeed USB device number 27 using xhci-hcd
[ 538.750698] scsi19 : usb-storage 7-1:1.0
[ 539.055131] usb 7-1: reset SuperSpeed USB device number 27 using xhci-hcd
[ 539.085722] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee174cc0
[ 539.101602] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee174cec
[ 539.125704] usb 7-1: can’t restore configuration #1 (error=-71)
[ 539.139788] usb 7-1: USB disconnect, device number 27
[ 539.555041] usb 7-1: new SuperSpeed USB device number 28 using xhci-hcd
[ 539.590423] scsi20 : usb-storage 7-1:1.0
[ 540.335081] usb 7-1: reset SuperSpeed USB device number 28 using xhci-hcd
[ 540.365508] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee14ff40
[ 540.381312] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee14ff6c
[ 540.401877] usb 7-1: can’t restore configuration #1 (error=-71)
[ 540.415241] usb 7-1: USB disconnect, device number 28
[ 540.885038] usb 7-1: new SuperSpeed USB device number 29 using xhci-hcd
[ 540.924234] scsi21 : usb-storage 7-1:1.0
[ 541.935569] scsi 21:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 541.956144] sd 21:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 541.975174] sd 21:0:0:0: [sdb] Write Protect is off
[ 541.990028] sd 21:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 542.003213] sd 21:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 542.022381] sd 21:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 544.423964] sdb: sdb1
[ 544.439148] sd 21:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 544.462609] sd 21:0:0:0: [sdb] Attached SCSI disk
[ 547.075110] usb 7-1: reset SuperSpeed USB device number 29 using xhci-hcd
[ 547.105481] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee386540
[ 547.121714] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee38656c
[ 549.245105] usb 7-1: reset SuperSpeed USB device number 29 using xhci-hcd
[ 549.275535] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee386540
[ 549.291712] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee38656c
[ 551.635264] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 552.064958] usb 7-1: device not accepting address 29, error -22
[ 552.674962] usb 7-1: device not accepting address 29, error -22
[ 553.284969] usb 7-1: device not accepting address 29, error -22
[ 554.164978] usb 7-1: device not accepting address 29, error -22
[ 554.178981] usb 7-1: USB disconnect, device number 29
[ 554.200305] sd 21:0:0:0: [sdb] Synchronizing SCSI cache
[ 554.213384] sd 21:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 554.231157] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee386540
[ 554.247247] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee38656c
[ 554.675060] usb 7-1: new SuperSpeed USB device number 30 using xhci-hcd
[ 554.709551] usb 7-1: device descriptor read/8, error -71
[ 554.824949] usb 7-1: new SuperSpeed USB device number 30 using xhci-hcd
[ 554.855233] usb 7-1: device descriptor read/8, error -71
[ 556.174993] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 556.189921] hub 7-0:1.0: unable to enumerate USB device on port 1
[ 556.635043] usb 7-1: new SuperSpeed USB device number 32 using xhci-hcd
[ 556.671132] scsi22 : usb-storage 7-1:1.0
[ 557.375115] usb 7-1: reset SuperSpeed USB device number 32 using xhci-hcd
[ 557.405540] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57af40
[ 557.421423] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57af6c
[ 558.914996] usb 7-1: device not accepting address 32, error -22
[ 560.064992] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 560.080403] usb 7-1: USB disconnect, device number 32
[ 560.111047] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57af40
[ 560.127734] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57af6c
[ 561.404995] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 561.834966] usb 7-1: device not accepting address 33, error -22
[ 563.195007] usb 7-1: device not accepting address 34, error -22
[ 564.284970] usb 7-1: device not accepting address 35, error -22
[ 564.475051] usb 7-1: new SuperSpeed USB device number 36 using xhci-hcd
[ 564.511013] scsi23 : usb-storage 7-1:1.0
[ 565.525650] scsi 23:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 565.547222] sd 23:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 565.565424] sd 23:0:0:0: [sdb] Write Protect is off
[ 565.580410] sd 23:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 565.593671] sd 23:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 565.612570] sd 23:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 596.105128] sd 23:0:0:0: Device offlined – not ready after error recovery
[ 596.120082] sd 23:0:0:0: [sdb] Unhandled error code
[ 596.132643] sd 23:0:0:0: [sdb] Result: hostbyte=0x05 driverbyte=0x00
[ 596.146921] sd 23:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
[ 596.162001] end_request: I/O error, dev sdb, sector 0
[ 596.174590] Buffer I/O error on device sdb, logical block 0
[ 596.187663] sd 23:0:0:0: rejecting I/O to offline device
[ 596.200957] sd 23:0:0:0: rejecting I/O to offline device
[ 596.214071] sdb: unable to read partition table
[ 596.226658] sd 23:0:0:0: [sdb] Attached SCSI disk
[ 596.274996] usb 7-1: USB disconnect, device number 36
[ 596.292880] sd 23:0:0:0: [sdb] Synchronizing SCSI cache
[ 596.305362] ehci_irq: highspeed device connect
[ 596.316855] ehci_irq: highspeed device disconnect
[ 596.329095] sd 23:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 596.347643] usb 1-1.1: USB disconnect, device number 3
[ 615.795338] usb 1-1.1: new high-speed USB device number 4 using sunxi-ehci
[ 615.952211] scsi24 : usb-storage 1-1.1:1.0
[ 616.966615] scsi 24:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 616.987583] sd 24:0:0:0: [sda] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 617.005981] sd 24:0:0:0: [sda] Write Protect is off
[ 617.020980] sd 24:0:0:0: [sda] Mode Sense: 43 00 00 00
[ 617.034603] sd 24:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 617.053933] sd 24:0:0:0: [sda] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 619.423340] sda: sda1
[ 619.438689] sd 24:0:0:0: [sda] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 619.596610] sd 24:0:0:0: [sda] Attached SCSI disk
[ 659.523337] NTFS-fs error (device sda1): parse_ntfs_boot_sector(): Sector size (512) is smaller than the device block size (4096). This is not supported. Sorry.
[ 659.548258] NTFS-fs error (device sda1): ntfs_fill_super(): Unsupported NTFS filesystem.
[ 777.863650] usb 1-1.1: USB disconnect, device number 4
[ 777.886399] sd 24:0:0:0: [sda] Synchronizing SCSI cache
[ 777.899529] sd 24:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
[ 796.381901] ehci_irq: highspeed device connect
[ 796.393965] ehci_irq: highspeed device disconnect
[ 797.637945] ehci_irq: highspeed device connect
[ 797.924973] usb 3-1: new high-speed USB device number 2 using sunxi-ehci
[ 798.091119] scsi25 : usb-storage 3-1:1.0
[ 799.105871] scsi 25:0:0:0: Direct-Access PI-239 USB 2.0 Drive 1.08 PQ: 0 ANSI: 4
[ 799.126831] sd 25:0:0:0: [sda] 32 512-byte logical blocks: (16.3 kB/16.0 KiB)
[ 799.145015] sd 25:0:0:0: [sda] Write Protect is off
[ 799.158129] sd 25:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 799.171591] sd 25:0:0:0: [sda] No Caching mode page present
[ 799.185055] sd 25:0:0:0: [sda] Assuming drive cache: write through
[ 799.202807] sd 25:0:0:0: [sda] No Caching mode page present
[ 799.216550] sd 25:0:0:0: [sda] Assuming drive cache: write through
[ 799.231588] sda: unknown partition table
[ 799.248941] sd 25:0:0:0: [sda] No Caching mode page present
[ 799.262577] sd 25:0:0:0: [sda] Assuming drive cache: write through
[ 799.276785] sd 25:0:0:0: [sda] Attached SCSI disk
[ 882.394993]
[ 882.395000]
[ 882.395003] rmmod_host_driver
[ 882.395006]
[ 882.431046] Set USB Power OFF
[ 882.441091] xhci-hcd xhci-hcd: remove, state 1
[ 882.452588] usb usb7: USB disconnect, device number 1
[ 882.465993] xHCI xhci_drop_endpoint called for root hub
[ 882.478491] xHCI xhci_check_bandwidth called for root hub
[ 882.493390] xhci-hcd xhci-hcd: USB bus 7 deregistered
[ 882.505635] xhci-hcd xhci-hcd: remove, state 1
[ 882.517582] usb usb6: USB disconnect, device number 1
[ 882.530380] xHCI xhci_drop_endpoint called for root hub
[ 882.543128] xHCI xhci_check_bandwidth called for root hub
[ 882.556663] xhci-hcd xhci-hcd: USB bus 6 deregistered
[ 882.569233] sunxi_controller_mode:NULL!
[ 882.580308] start: sunxi_close_usb_clock
[ 882.591406] end: sunxi_close_usb_clock
[ 1012.595338] usb 1-1.1: new high-speed USB device number 5 using sunxi-ehci
[ 1012.752834] scsi26 : usb-storage 1-1.1:1.0
[ 1013.766616] scsi 26:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 1013.786578] sd 26:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 1013.803575] sd 26:0:0:0: [sdb] Write Protect is off
[ 1013.816812] sd 26:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 1013.830568] sd 26:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 1013.849808] sd 26:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 1016.166341] sdb: sdb1
[ 1016.181316] sd 26:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 1016.208999] sd 26:0:0:0: [sdb] Attached SCSI disk
[ 1081.208135] ehci_irq: highspeed device disconnect
[ 1081.220108] usb 3-1: USB disconnect, device number 2
[ 1135.215464] usb 1-1.3: new high-speed USB device number 6 using sunxi-ehci
[ 1135.341228] scsi27 : usb-storage 1-1.3:1.0
[ 1136.356609] scsi 27:0:0:0: Direct-Access PI-239 USB 2.0 Drive 1.08 PQ: 0 ANSI: 4
[ 1136.377216] sd 27:0:0:0: [sda] 32 512-byte logical blocks: (16.3 kB/16.0 KiB)
[ 1136.394983] sd 27:0:0:0: [sda] Write Protect is off
[ 1136.407678] sd 27:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 1136.420711] sd 27:0:0:0: [sda] No Caching mode page present
[ 1136.433758] sd 27:0:0:0: [sda] Assuming drive cache: write through
[ 1136.451174] sd 27:0:0:0: [sda] No Caching mode page present
[ 1136.464506] sd 27:0:0:0: [sda] Assuming drive cache: write through
[ 1136.479080] sda: unknown partition table
[ 1136.496680] sd 27:0:0:0: [sda] No Caching mode page present
[ 1136.509836] sd 27:0:0:0: [sda] Assuming drive cache: write through
[ 1136.523603] sd 27:0:0:0: [sda] Attached SCSI disk
[ 1172.871778] usb 1-1.1: USB disconnect, device number 5
[ 1172.893791] sd 26:0:0:0: [sdb] Synchronizing SCSI cache
[ 1172.905943] sd 26:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 1193.615040] PHY: gmac0-0:00 – Link is Down
[ 1229.625044] PHY: gmac0-0:00 – Link is Up – 100/Full
[ 1269.635031] PHY: gmac0-0:00 – Link is Down
[ 1280.645039] PHY: gmac0-0:00 – Link is Up – 100/Full
[ 1360.655038] PHY: gmac0-0:00 – Link is Down
[ 1366.665122] PHY: gmac0-0:00 – Link is Up – 100/Full
[ 1460.675038] PHY: gmac0-0:00 – Link is Down
[ 1467.685041] PHY: gmac0-0:00 – Link is Up – 100/Full
[ 1483.695038] PHY: gmac0-0:00 – Link is Down
[ 1497.705032] PHY: gmac0-0:00 – Link is Up – 100/Full
[ 2520.537794] echo flag|reg|val > ac100
[ 2520.548206] eg read star addres=0x06,count 0x10:echo 0610 >ac100
[ 2520.560946] eg write value:0x13fe to address:0x06 :echo 10613fe > ac100
[ 2648.455528] usb 1-1.3: USB disconnect, device number 6
[ 2707.575336] usb 1-1.1: new high-speed USB device number 7 using sunxi-ehci
[ 2707.701862] scsi28 : usb-storage 1-1.1:1.0
[ 2708.716620] scsi 28:0:0:0: Direct-Access PI-239 USB 2.0 Drive 1.08 PQ: 0 ANSI: 4
[ 2708.736830] sd 28:0:0:0: [sda] 250069680 512-byte logical blocks: (128 GB/119 GiB)
[ 2708.753962] sd 28:0:0:0: [sda] Write Protect is off
[ 2708.769986] sd 28:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 2708.783078] sd 28:0:0:0: [sda] No Caching mode page present
[ 2708.795750] sd 28:0:0:0: [sda] Assuming drive cache: write through
[ 2708.812921] sd 28:0:0:0: [sda] No Caching mode page present
[ 2708.825636] sd 28:0:0:0: [sda] Assuming drive cache: write through
[ 2708.845831] sda: sda1
[ 2708.865932] sd 28:0:0:0: [sda] No Caching mode page present
[ 2708.878661] sd 28:0:0:0: [sda] Assuming drive cache: write through
[ 2708.891991] sd 28:0:0:0: [sda] Attached SCSI disk
root@cubieboard4:/#

rsync copy two partitions

To copy the contents from one partition to another:

rsync -avHAXW --info=progress2 /source /target
and here are the options:

  • -a, –archive archive mode; equals -rlptgoD (no -H,-A,-X)
  • -v, –verbose increase verbosity
  • -H, –hard-links preserve hard links
  • -A, –acls preserve ACLs (implies -p)
  • -X, –xattrs preserve extended attributes
  • -W, –whole-file copy files whole (w/o delta-xfer algorithm)
  • -u, –update skip files that are newer on the receiver
  • –progress show progress during transfer

and here some additional options worth a look:

  • -z, –compress compress file data during the transfer
  • –exclude=PATTERN exclude files matching PATTERN
  • –include=PATTERN don’t exclude files matching PATTERN
  • –log-file=FILE log what we’re doing to the specified FILE

netfilter persistent

as debian switched to systemd as default init system my firewall scripts did not function anymore and as I am a lazy guy I also switched from a script based system to netfilter-persistent. These scripts take over the task of saving and initiating the firewall system based on the current active settings. So I may still use the scripts already created while using systemd as init process.

  • save current iptables rules: netfilter-persistent save
  • start last saved settings: netfilter-persistent start

WebFrontEnd for rsnapshot based backup system

As already discussed in: rsnapshot backup solution I am using rsnapshot as my main backup solutions for a variety of servers.
But I am lazy and often forget about the correct settings, commands, etc. For this reason I started building up some web front ends for several common daily tasks. Just to remember what to do and how and of course to have some fun with programming.
And here is another part of this series: The Rsnapshot Web Front End:

The complete webpage is enclosed into one file – this was my first internal order, because I wanted something that may be installed very easily. There is also a file structure as follows:
main folder:

  • default – the base for new config files
  • pid – the process id file
  • logs – the folder with log files
  • rsnapshot – the folder holding the config files
  • backup.php – the web front end

The default file is cloned to get the base for an new config file and as such is the master. All files in folder rsnapshot are shown in a matrix to access the action.

The web page itself is self explanatory and allows to:

  • view the config and logfiles,
  • create and delete a config file/server entry
  •  start a backup process and
  • edit the config file

Any new entry made in the config file is checked against a regular expression already within the backup.php file to avoid misconfigurations. The editing is further devided into normal and expert mode whereas normal mode is only showing the most important options and expert mode is showing all options.

The styling/design of the page is very poor and might be improved later on. Also the security of the page is lacking some attention and might change.

But now to the code:

<?php ############# HEAD  ############################
echo "<!DOCTYPE html>\n";
echo "<html>\n<head>\n <meta charset='utf-8'><meta name='viewport' content='width=device-width, initial-scale=1.0'>\n";
############# style sheets ########################
echo "<title>Backup Admin Page</title>\n</head>\n<body>\n\n";
echo "<header><h1>Backup Admin - Main Page</h1>";
echo "<h4>created to configure my own backup system based on rsnapshot</h4></header>\n";
echo "<style>.red { color: red;} .blue {color: blue;} .hide {display: none;} .comment { width: 100%;}</style>";
############# Configuration ##########################
$config['configfile'] = "rsnapshot/";# folder for config files
$config['logfile'] = "log/";# folder for logfiles
$config['command'] = "ls -l";# command to be executed to start backup
##################################### no editing below here ###########################
$PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF']); # use one file only which will be reload with new parameters all the time
$general_menu = array( "Cancel", "NewHost");# general menue options not associated with host/server
$menue_items = array("ShowConfigfile", "StartBackup", "ShowLogfile", "EditConfigfile", "Delete");# menue items for each host/server
$config['columns'] = count($menue_items);# the number of columns in total
$config['values'] = array("snapshot_root", "interval", "backup", "no_create_root", "cmd_cp", "cmd_rm",
		"cmd_rsync", "cmd_ssh", "cmd_logger", "cmd_du", "verbose", "loglevel", "rsync_long_args", "ssh_args", 
		"du_args", "logfile", "lockfile", "config_version");
$config["inputtype"]["interval"] = array("weekly","hourly","daily","monthly");
$config["inputtype"]["verbose"] = array("1","2","3","4","5");
$config["inputtype"]["loglevel"] = array("1","2","3","4","5");
##################################### function definitions ########################################
####### clear html variables from malicious code
function clean_html($variable){
	return trim(htmlspecialchars($variable));
}
###### debug output of POST
function debug_output(){
	echo "<pre><br><h1>Hier kommt der schamass!</h1>";
	print_r($_POST);
	echo "</pre>"; return ;
}
###### parse contents of configfile and store everything in two arrays
function parse_file_contents($filename){
	global $inputvalues; # one matrix for all values already filled with defaults
	if ($data = file_get_contents($filename)){
		$contents = explode("\n", $data);$comment = "";
		foreach ($contents as $line) { # parse each line of the input file seperately
			$line = trim($line); $value = ""; # and override default values with config file values
			if (strlen($line) && substr($line, 0, 1) == '#') # a comment line
				$comment .= "\n".$line; 
			elseif (strlen($line)){ # non empty line found
				$key = trim(strtok($line, " \t")); # name of the specific option is first parameter
				while ($inputpart = strtok(" \t")) $value = $value.trim($inputpart)."\t"; # rest of the line is combined as value
				if ($key == "exclude") # special treatement for excluded directories
					$inputvalues["exclude"][] = trim($value);
				else # normal value will override default values in array
					$inputvalues["values"][$key] = trim($value);
				if ($comment != "") {# non enpty comment will be stored
					$inputvalues['comment'][$key] = $comment; 
					$comment = "";
				}
			}
		}
		$return = "File: ".$filename." successfully paresed!";
	}
	else # could not get file contents via function so die
		$return = "Could not open file: ".$filename;
	return $return;
}
####### save config file
function save_conf_file($inputvalues, $filename){
	global $config;
	$output = "";
	foreach ($config['values'] as $key){# iterate over all config file parameters
		if (isset($inputvalues['comment'][$key])) $output .= $inputvalues['comment'][$key]."\n";
		if (isset($inputvalues['values'][$key]))  $output .= $key."\t".$inputvalues['values'][$key]."\n";
	}
	if (isset($inputvalues['comment']['exclude'])) $output .= $inputvalues['comment']['exclude']."\n";
	foreach ($inputvalues['exclude'] as $key => $value)
		if ($inputvalues['exclude'][$key] != "") $output .= "exclude"."\t".$value."\n";
	
	/*
	if ($handle = fopen($filename, "w")){ # open configfile for write
		fwrite($handle, $output);
		fclose($handle);
	}
	
	else 
		$return = "Could not open file: ".$filename;
		*/
	return "<pre>".$output."</pre>";
#	return $return;
}
####### edit values using defaults or values from config file
function edit_conf_file($inputvalues, $config, $mode){
	$class = "show";
	$return = "<table border='1' width='100%'>\n<tr><td colspan='4' align='right'>";
	$return .= "<input type='submit' name='action[Expert]' value='".$mode."'></td></tr>\n";
	foreach ($config['values'] as $key){
		if ($key == "no_create_root" && $mode == "Normal") $class = "hide";# show other entries only in expert mnode
		if (isset($inputvalues['comment'][$key])){# any comments for the forthcoming option?
			$rows = substr_count($inputvalues['comment'][$key], "\n") + 2;
			$return .= "<tr class='".$class."'><td colspan='3'><textarea cols='100%' rows='".$rows;
			$return .= "' name='inputvalues[comment][".$key."]'> ".$inputvalues['comment'][$key];
			$return .= " </textarea></td></tr>\n";
		}# and now the entry
		$return .= "<tr class='".$class."'><td>".$key."</td>";
		if (isset($config['inputtype'][$key])) {# no simple input field but a select box
			$return .= "<td><select name='inputvalues[values][".$key."]' size='1'>";
			foreach ($config['inputtype'][$key] as $value){
				$return .= "<option";
				if(isset($inputvalues['values'][$key]) && strtok($inputvalues['values'][$key], " ") == $value ) $return .= " selected ";
				$return .= ">".$value."</option>\n";
			}
			$return .= "</select></td>";
		} else {# simple input field
			$return .= "<td><input type='input' name='inputvalues[values][".$key."]' value='";
			if (isset($inputvalues['values'][$key])) $return .= $inputvalues['values'][$key]; 
			$return .= "'></td>";
		}
		$return .= "<td></td></tr>\n";
	}################# Exclude directories ##################
	$return .= "<tr class='show'><td colspan='4'>Exclude Directories:</td></tr>\n";
	if (isset($inputvalues['comment']['exclude'])){
		$rows = substr_count($inputvalues['comment']['exclude'], "\n") + 2;
		$return .= "<tr class='show'><td colspan='3'><textarea cols='100%' rows='".$rows;
		$return .= "' name='inputvalues[comment][exclude]'> ".$inputvalues['comment']['exclude'];
		$return .= " </textarea></td></tr>\n";
	}
	if (isset($inputvalues['exclude'])){
		foreach ($inputvalues['exclude'] as $subkey => $value){# show excludes as checkbox list
			if ($value != "") {# only if there is an entry and not en empty line
				$return .= "<tr class='show'><td colspan='2'>".$value."</td><td><input type='checkbox' name='inputvalues[exclude]";
				$return .= "[".$subkey."]' value='".$value."' checked></td></tr>\n";
			}
		}
	} 
	for ($i=0; $i < 5; $i++)# add 5 extra rows for exclude input
		$return .= "<tr class='show'><td>Add exclude folder</td><td colspan='2'><input type='input' value='' name='inputvalues[exclude][]'></td></tr>\n";
	$return .= "<tr class='show'><td align='center' colspan='2'><input type='submit' value='SaveConfigfile' ";
	$return .= "name='action[SaveConfigfile]'></td><td align='center' colspan='2'>";
	$return .= "<input type='submit' name='action[Cancel]' value='Cancel'></td></tr>\n</table>\n";
	return $return;
}
####### function generate menu
function generate_menue($menue_items, $configfile){
	$return = "<tr><thead align='center'>";
	foreach ($menue_items as $key) # table headers
			$return .= "<th>".$key."</th>";
	$return .= "</thead>\n<tbody align='center'>\n";
	foreach (scandir($configfile) as $file){# iterate over complete directory contents
		if (substr($file, 0, 1) != ".") { # dotfiles are ignored
			$file = htmlspecialchars($file);$return .= "<tr>";
			foreach ($menue_items as $key) {
				$return .= "<td><input type='submit' value='  ".$file."  ' name='action[".$key."]'></td>";
			}
			$return .= "</tr>\n";
		}
	}
	return $return;}
######################################################################
############################## MAIN ##################################
######################################################################
echo "<body><form method='POST' action='".$PHP_SELF."'>\n";# page header with headline and table headers
echo "<table border=1 cellspacing='10'>\n";# everything will be bound to one table
echo generate_menue($menue_items, $config['configfile']);
$cols = round($config['columns'] / 2);$cols_remain = $config['columns'] - $cols;
echo "<tr><td colspan='".$cols."'><input type='submit' name='action[Cancel]' value='Cancel'></td>";
echo "<td colspan='".$cols_remain."'><input type='submit' name='action[NewHost]' value='NewHost'></td></tr>";
######################### Main Menue #####################################
if (isset($_POST['expertMode']) && $_POST['expertMode'] == "Expert") $mode = "Expert";
else $mode = "Normal";
if (isset($_POST['action'])) {
	$menue_entry = array_keys($_POST['action'])[0];# action[<menue_entry>] -> <host>/<menue_entry>
	$host = clean_html($_POST['action'][$menue_entry]);
	switch ($menue_entry){
		case "EditConfigfile":###########################################
			if (file_exists($config['configfile'].$host)) {
				$return = "<h3>Edit (".$host.")</h3>";# show headline
				$return .= parse_file_contents($config['configfile'].$host);
				$return .= "<input type='hidden' name='hostname' value='".$host."'>";			
				$return .= "<pre class='blue'>".edit_conf_file($inputvalues, $config, $mode)."</pre>";
			} else {
				$return = "<h3>Error (".$host.")</h3>";# show headline
				$return .= "<pre class='red'>File: ".$config['configfile'].$host." does not exist!</pre>\n";# show error message
			}
			break;
		case "Expert":###################################################
			if (isset($_POST['hostname'])){
				$return = "<h3>Edit (".$_POST['hostname'].")</h3>";# show headline
				if ($host == "Expert") $mode = "Normal";
				else $mode = "Expert";
				$return .= "<input type='hidden' name='hostname' value='".$_POST['hostname']."'>";			
				$return .= "<pre class='blue'>".edit_conf_file($_POST['inputvalues'], $config, $mode)."</pre>";
			} else {
				$return = "<h3>Error (".$host.")</h3>";# show headline
				$return .= "<pre class='red'>Error! No host defined!</pre>\n";# show error message
			}
			break;
		case "SaveConfigfile":############################################
			if (isset($_POST['inputvalues'])){
				$return = "<h3>Save Configfile (".$host.")</h3>";# show headline
				$return .= "<pre class='blue'>".save_conf_file($_POST['inputvalues'], $config['configfile'].$host)."</pre>";# write file contents
			} else {
				$return = "<h3>Error (".$host.")</h3>";# show headline
				$return .= "<pre class='red'>Error! No host defined!</pre>\n";# show error message
			}
			break;
		case "ShowConfigfile":############################################
			if (file_exists($config['configfile'].$host)){# check if file exists in folder
				$return = "<h3>Show Configfile (".$host.")</h3>";# show headline
				$return .= "<pre class='blue'>".file_get_contents($config['configfile'].$host)."</pre>";# get file contents
			} else { 
				$return = "<h3>Error (".$host.")</h3>";# show headline
				$return .= "<pre class='red'>File: ".$config['configfile'].$host." does not exist!</pre>";# show error
			}
			break;
		case "StartBackup":###############################################
			$befehl = $config['command']." ".$config['configfile'].$host." 2>&1";# create backup command
			if (file_exists($config['configfile'].$host)){# check if file exists
				$return = "<h3>Start Backup (".$host.")</h3>";
				$return .= "<pre class='blue'>Execute Command: (".$befehl.")</pre>";
				$return .= exec($befehl, $output, $return_val);# execute backup command
#				$return .= $output." ".$return_val;
			} else {
				$return = "<h3>Error (".$host.")</h3>";# show headline
				$return .= "<pre class='red'>File: ".$config['configfile'].$host." does not exist!</pre>";# show error message
			}
			break;
		case "ShowLogfile":##############################################
			if (file_exists($config['logfile'].$host)){ # check if file exists
				$return = "<h3>Show Logfile (".$host.")</h3>";# show headline
				$return .= "<pre class='blue'>".file_get_contents($config['logfile'].$host)."</pre>";# get file contents
			} else { 
				$return = "<h3>Error (".$host.")</h3>";# show headline
				$return .= "<pre class='red'>File: ".$config['logfile'].$host." does not exist!</pre>";# show error message
			}
			break;
		case "Delete":###################################################
			$return = "<h3>Delete (".$host.")</h3>";# show headline
			$return .= "<div class='red'>You really want to delete:"; 
			$return .= "<input type='submit' name='action[ReallyDelete]' value='".$host."'></div>";
			break;
		case "ReallyDelete":#############################################
			$return = "<h3>Delete (".$host.")</h3>";# show headline
			if (file_exists($config['configfile'].$host)){
				if (unlink($config['configfile'].$host)){
						unlink($config['configfile'].$host);
						$return .= "<pre class='blue'>Host: ".$host." successfully deleted!</pre>";
				}
				else 
					$return .= "<pre class='red'>An error occured while deleting Host: ".$host."</pre>";
			}
			else 
				$return .= "<pre class='red'>File: ".$config['configfile'].$host." does not exist!</pre>\n";# show error message
			break;
		case "NewHost":##################################################
			$return = "<h3>Create (New Host)</h3>";# show headline
			$return .= "<div class='blue'>Please name new host entry:";
			$return .= "<input type='input' name='hostname' value='New Host'>";
			$return .= "<input type='submit' name='action[ReallyNewHost]' value='Create'></div>";
			break;
		case "ReallyNewHost":############################################
			$return = "<h3>Create (".$_POST['hostname'].")</h3>";# show headline
			if (file_exists($config['configfile'].$_POST['hostname'])) 
				$return .= "<pre class='red'>Host: <em>".$_POST['hostname']."</em> already exists!</pre>";
			else{
				if (copy('default', $config['configfile'].$_POST['hostname'])) {
					$return .= "<pre class='red'>New Host: <em>".$_POST['hostname']."</em> created!</pre>";
					$return .= parse_file_contents($config['configfile'].$_POST['hostname']);
					$return .= "<input type='hidden' name='hostname' value='".$_POST['hostname']."'>";
					$return .= "<pre class='blue'>".edit_conf_file($inputvalues, $config, $mode)."</pre>";
				}
				else 
					$return .= "<pre class='red'>Error while copying!</pre>";
			}
			break;
		default:#########################################################
			$return = "<h3>Error (".$menue_entry.")</h3>";# show headline
			$return .= "<pre class='red'>Please choose one of the options above!</pre>";
			break;
	}
}
elseif (isset($_POST['Comment'])){# comment button pressed
	$menue_entry = clean_html(array_keys($_POST['Comment'])[0]);# Comment[<config file option>][<line no>] -> <+/->
	$line = clean_html(array_keys($_POST['Comment'][$menue_entry])[0]);
		if (isset($_POST['hostname'])){
			$return = "<h3>Edit (".$_POST['hostname'].")</h3>";# show headline
			$return .= "<input type='hidden' name='hostname' value='".$_POST['hostname']."'>";
			$inputvalues = $_POST['inputvalues']; unset($inputvalues['comment'][$menue_entry][$line]);# delete specific line from variable			
			$return .= "<pre class='blue'>".edit_conf_file($inputvalues, $config, $mode)."</pre>";
		}
		else 
			$return = "<pre class='red'>Error! No host defined!</pre>\n";# show error message
}
else $return = "";
$return .= "<input type='hidden' name='expertMode' value='".$mode."'>";
################# Main Menue End ########################################
echo "<tr><td colspan='".$config['columns']."' align='left'>".$return."</td></tr>";
echo "</tr>\n</tbody></table>\n";
echo "<pre>";print_r($config);echo "</pre>";
echo "<pre> ";print_r($inputvalues);echo "</pre>";
debug_output();
############################# END #################################################################
echo "<br><br>";
echo "</form>\n<footer id='footer'>My personal page hosted on my own server &copy; olkn</footer></body></HTML>\n";
########### END ###################################?>

Cron: pam_unix (cron:session): session opened/closed for user root by (uid=0)

There are ongoing log entries from cron about the root account that look like:
Cron: pam_unix (cron:session): session opened/closed for user root by (uid=0)

To remove those entries from the log I found the following solution on the web:

session [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid
session required pam_unix.so

Right before the line session required pam_unix.so you need to add the line:
session [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid

rsnapshot backup solution

In order to backup my systems I have choosen rsnapshot because it stores all files as normal files on the hard disk using links between different backup dates to reduce the file size of the complete backup. This enables me to check directly in the file system for old files. Normally I do not restore a complete backup but use to check for specific files only.
To simplify things further on I found a description to use rsync on the client machines and a server certificate, so that no interaction with the client is needed. The server may connect using his certificate and start a local rsync server on the client which handles the backup itself. And now to the steps required to setup the system on the client:

CLIENT
First we need rsync installed:

aptitude install rsync

then we need to create a special backup user:

useradd backupuser -c "Backup" -m -u 4210

Within the home folder of the new user we need to store the server certificate as .ssh/authorized_keys

mkdir .ssh
scp /home/backupuser/.ssh/authorized_keys

Now we need a special script which starts the rsync programm on the client listening for incoming requests:

scp /home/backupuser/

Finally some tweaking for the permissions:

chown backupuser:backupuser
chmod 755

We also need to allow the new user to execute rsync, so we adjust sudo for this by editing /etc/sudoers:

Defaults:backupuser !requiretty
Defaults:backupuser !visiblepw
backupuser ALL:NOPASSWD: /usr/bin/rsync

Thats it!
I also wrote a simple script to show a list of available rsnapshot config files stored on the backup server and start the backup for this script meaning backing up a specific system.
Here are the relevant scripts:
First the wrapper script which simply logs the current date and starts rsync using the command line options from rsnapshot remote config:


#!/bin/sh

/usr/bin/logger "BACKUP: Start backup at `/bin/date` ";
/usr/bin/sudo /usr/bin/rsync "$@";
/usr/bin/logger "BACKUP: Backup finalized at `/bin/date` ";

And here is the console script to start the backup:


#!/bin/sh
#
DIALOG="/usr/bin/dialog"
RSNAPSHOT="/usr/bin/rsnapshot"
CONFIGDIR=""
BACKUPDIR=""
CONFIGFILES=""

##### Check if Backupdisk is connected and correctly mounted ################
check_for_backup_dir() {
if [ ! -e $BACKUPDIR/ps2 ]
then
if [ $# -ne 0 ]
then
$DIALOG --clear --title "rsnapshot config" --msgbox "The backup disk is not connected to the machine!" 10 52
else
echo "The backup disk is not connected to the machine!"
fi
exit
fi
}

##### main ######
# choose dialog interface or command line parameter
if [ $# -ne 0 ]
then
if [ $# -gt 1 ]
then
echo "Usage: backup.sh or backup.sh "
echo " too many arguments on command line"
exit
fi
check_for_backup_dir
# command parameter available so no dialog interface used
if [ ! -e $CONFIGDIR/$1 ]
then
echo "No config file for system $1"
exit
else
COMMAND="$RSNAPSHOT -q -c $CONFIGDIR/$1 weekly"
$COMMAND
fi
else
check_for_backup_dir dialog
# no parameter available on command line so using dialog for choosing configuration
for file in $CONFIGDIR/*
do # create one variable including all available configs
CONFIGFILES="$CONFIGFILES $file ! "
done
TEMPFILE=`tempfile 2>/dev/null` || TEMPFILE=/tmp/test$$
trap "rm -f $TEMPFILE" 0 1 2 5 15
$DIALOG --clear --title "rsnapshot config" --menu "Choose rsnapshot configuration:" 18 50 10 $CONFIGFILES 2> $TEMPFILE
RUECKGABE=$?
case $RUECKGABE in
0)
AUSWAHL=`cat $TEMPFILE`
COMMAND="$RSNAPSHOT -q -c $AUSWAHL weekly" ### execute backup command
$COMMAND
;;
1)
echo "Backup canceled!"
;;
255)
echo "ESC pressed!"
;;
esac

trap "rm -f $TEMPFILE" 0 1 2 5 15

fi
# clean up and exit after all work is done
exit

The rsnapshot config files always look like the original ones delivered with rsnapshot except for the ssh section which starts the remote wrapper script shown above:


#################################################
# rsnapshot.conf - rsnapshot configuration file #
#################################################
# #
# PLEASE BE AWARE OF THE FOLLOWING RULES: #
# #
# This file requires tabs between elements #
# #
# Directories require a trailing slash: #
# right: /home/ #
# wrong: /home #
# #
#################################################
#
#######################
# CONFIG FILE VERSION #
#######################

config_version 1.2

###########################
# SNAPSHOT ROOT DIRECTORY #
###########################

# All snapshots will be stored under this root directory.
snapshot_root

# If no_create_root is enabled, rsnapshot will not automatically create the
# snapshot_root directory. This is particularly useful if you are backing
# up to removable media, such as a FireWire drive.
#
no_create_root 1

#################################
# EXTERNAL PROGRAM DEPENDENCIES #
#################################

# LINUX USERS: Be sure to uncomment "cmd_cp". This gives you extra features.
# EVERYONE ELSE: Leave "cmd_cp" commented out for compatibility.
#
# See the README file or the man page for more details.
#
cmd_cp /bin/cp

# uncomment this to use the rm program instead of the built-in perl routine.
cmd_rm /bin/rm

# rsync must be enabled for anything to work.
cmd_rsync /usr/bin/rsync

# Uncomment this to enable remote ssh backups over rsync.
cmd_ssh /usr/bin/ssh

# Comment this out to disable syslog support.
cmd_logger /usr/bin/logger

# Uncomment this to specify a path to "du" for disk usage checks.
cmd_du /usr/bin/du

#########################################
# BACKUP INTERVALS #
# Must be unique and in ascending order #
# i.e. hourly, daily, weekly, etc. #
#########################################

# The interval names (hourly, daily, ...) are just names and have no influence
# on the length of the interval. The numbers set the number of snapshots to
# keep for each interval (hourly.0, hourly.1, ...).
# The length of the interval is set by the time between two executions of
# rsnapshot , this is normally done via cron.
# Feel free to adapt the names, and the sample cron file under /etc/cron.d/rsnapshot
# to your needs. The only requirement is that the intervals must be listed
# in ascending order. To activate just uncomment the entries.

interval weekly 5

############################################
# GLOBAL OPTIONS #
# All are optional, with sensible defaults #
############################################

# If your version of rsync supports --link-dest, consider enable this.
# This is the best way to support special files (FIFOs, etc) cross-platform.
# The default is 0 (off).
# In Debian GNU cp is available which is superior to link_dest, so it should be
# commented out (disabled).
#
#link_dest 0

# Verbose level, 1 through 5.
# 1 Quiet Print fatal errors only
# 2 Default Print errors and warnings only
# 3 Verbose Show equivalent shell commands being executed
# 4 Extra Verbose Show extra verbose information
# 5 Debug mode More than you care to know
#
verbose 2

# Same as "verbose" above, but controls the amount of data sent to the
# logfile, if one is being used. The default is 3.
loglevel 3

# If you enable this, data will be written to the file you specify. The
# amount of data written is controlled by the "loglevel" parameter.
logfile

# The include and exclude parameters, if enabled, simply get passed directly
# to rsync. If you have multiple include/exclude patterns, put each one on a
# seperate line. Please look up the --include and --exclude options in the
# rsync man page for more details.
#

exclude /dev
exclude /lost+found
exclude /media
exclude /mnt
exclude /proc
exclude /run
exclude /sys
exclude /tmp

# The include_file and exclude_file parameters, if enabled, simply get
# passed directly to rsync. Please look up the --include-from and
# --exclude-from options in the rsync man page for more details.
#
#include_file /path/to/include/file
#exclude_file /path/to/exclude/file

# Default rsync args. All rsync commands have at least these options set.
#
rsync_long_args -v --numeric-ids --relative -ev --rsync-path=/home/backupuser/rsync-wrapper.sh

# ssh has no args passed by default, but you can specify some here.
#
ssh_args -i

# Default arguments for the "du" program (for disk space reporting).
# The GNU version of "du" is preferred. See the man page for more details.
#
du_args -csh

# If this is enabled, rsync won't span filesystem partitions within a
# backup point. This essentially passes the -x option to rsync.
# The default is 0 (off).
#
#one_fs 0

# If enabled, rsnapshot will write a lockfile to prevent two instances
# from running simultaneously (and messing up the snapshot_root).
# If you enable this, make sure the lockfile directory is not world
# writable. Otherwise anyone can prevent the program from running.
#
lockfile /path-to-pid-file

###############################
### BACKUP POINTS / SCRIPTS ###
###############################

# LOCALHOST
backup @:/ root/

SERVER
We have already seen the backup script that I use to keep an overview on all my systems and choosing a specific system to backup. For this to run of course we need rsnapshot, rsync and dialog.

aptitude install rsync rsnapshot dialog

The a dedicated user is required which I will call backupserver:

useradd backupserver -c "Backup user on server" -m

For this user we need to create a certificate for ssh:

ssh-keygen

Follow the instructions and do not give a password because we would need to showup this password all the times taking a backup.
Now we are able to spread the public part of the certificate to all client machines and we are done.
Finally I installed screen and used that as the default shell for the backupserver user in order to close – detache – the current connection to my headless backup server while the backup is running in back.

aptitude install screen

I also add the following to /etc/screenrc which gives me a normal bash in debian when using screen:

shell /bin/bash

Just for my own insufficiency:

Use the correct ownership and rights for the backup folder in order to allow the backupserver user to write the backup in the folder and always use this user when performing backups. Do not use the root user for that because it will destroy the rights structure in the backup folder and does not function with the certificate created earlier.

Xorg.conf for three screen setup

After some extended reseach I finally succeeded in getting my server setup with three screens running. My system currently consists of a radeon HD6570 with two Lenovo L171 and a Geforce 6200 with a Lenovo L171p. The monitors are capable of showing a resolution of 1280×1024 on a 17″ screen and the complete setup is using Xinerama.


Section "ServerLayout"
Identifier "three screen setup"
Screen 0 "screen-links" 0 0
Screen 1 "screen-mitte" RightOf "screen-links"
Screen 2 "screen-rechts" RightOf "screen-mitte"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "Xinerama" "1"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "built-ins"
EndSection

Section "Module"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "monitor-links"
VendorName "lenovo"
ModelName "L171 links"
EndSection

Section "Screen"
Identifier "screen-links"
Device "radeon-links"
Monitor "monitor-links"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024"
# ViewPort 0 0
# Virtual 1280 1024
EndSubsection
EndSection
Section "Monitor"
Identifier "monitor-mitte"
VendorName "IBM"
ModelName "L171p mitte"
EndSection

Section "Screen"
Identifier "screen-mitte"
Device "radeon-mitte"
Monitor "monitor-mitte"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024"
# ViewPort 0 0
# Virtual 1280 1024
EndSubsection
EndSection

Section "Monitor"
Identifier "monitor-rechts"
VendorName "lenovo"
ModelName "L171 rechts"
EndSection

Section "Screen"
Identifier "screen-rechts"
Device "nouveau"
Monitor "monitor-rechts"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024"
# ViewPort 0 0
# Virtual 1280 1024
EndSubsection
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz",
### : "%"
### [arg]: arg optional
#Option "SWcursor" # []
#Option "HWcursor" # []
#Option "NoAccel" # []
#Option "ShadowFB" # []
#Option "VideoKey" #
#Option "WrappedFB" # []
#Option "GLXVBlank" # []
#Option "ZaphodHeads" #
#Option "PageFlip" # []
#Option "SwapLimit" #
#Option "AsyncUTSDFS" # []
#Option "AccelMethod" #
Identifier "nouveau"
Driver "nouveau"
BusID "PCI:24:7:0"
Screen 0
Option "DynamicTwinView" "FALSE"
EndSection

Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz",
### : "%"
### [arg]: arg optional
#Option "Accel" # []
#Option "SWcursor" # []
#Option "EnablePageFlip" # []
#Option "ColorTiling" # []
#Option "ColorTiling2D" # []
#Option "RenderAccel" # []
#Option "SubPixelOrder" # []
#Option "AccelMethod" #
#Option "EXAVSync" # []
#Option "EXAPixmaps" # []
#Option "ZaphodHeads" #
#Option "EnablePageFlip" # []
#Option "SwapbuffersWait" # []
Identifier "radeon-links"
Driver "radeon"
BusID "PCI:1:0:0"
Screen 0
Option "ZaphodHeads" "DVI-1"
EndSection

Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz",
### : "%"
### [arg]: arg optional
#Option "Accel" # []
#Option "SWcursor" # []
#Option "EnablePageFlip" # []
#Option "ColorTiling" # []
#Option "ColorTiling2D" # []
#Option "RenderAccel" # []
#Option "SubPixelOrder" # []
#Option "AccelMethod" #
#Option "EXAVSync" # []
#Option "EXAPixmaps" # []
#Option "ZaphodHeads" #
#Option "EnablePageFlip" # []
#Option "SwapbuffersWait" # []
Identifier "radeon-mitte"
Driver "radeon"
BusID "PCI:1:0:0"
Screen 1
Option "ZaphodHeads" "DVI-0"
EndSection

wake on lan and terminal management page

This code was written to get a management interface for my own servers. But as I switched to another option the code was never in productive state.

<?php ############# HEAD  ############################
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
echo "<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n";
############# docu ################################
/* create user account on target machine for shutdown (shutdownuser)
 * enable shutdown command for user on target machine (sudoers)
 * copy public key file for HTTP Server account to target machines .ssh/authorized_keys
 */
############# style sheets ########################
echo "<title>Terminal Server</title>\n<link rel='stylesheet' type='text/css' href='terminal.css'></head>\n<body>\n\n";
############# Configuration ##########################
/*
 * start server via relais
 * link zu shell in box fuer direkten connect
 */
$mac_adress_file = "terminal-list";# path where mac adresses are listed, must be accessible on webserver machine with webserver user rights
$server_port_to_check=22;# port to check for availability
$domain = ".steppenwolf.de";# domain all server reside in
$table_headers = array("Check", "Server (Terminal)", "Start", "Stop", "Comment");
$redirect_header = "/bananas";# if we were redirected we append level to URI
$shutdown_command = "ls ";
$shutdown_user = "shutdownuser";# user for shutdown command
$shutdown_public_keyfile = "id_rsa.pub"; # public_keyfile, must be accessible on webserver machine with webserver user rights
$Shutdown_private_keyfile = "id_rsa"; # private_keyfile, must be accessible on webserver machine with webserver user rights
###### links to shell in a box #################################
/*
 * shellinaboxd -t -s /:LOGIN -s /who:nobody:nogroup:/:w
 * In addition to the login shell at http://localhost:4200, show a list of currently logged in users when accessing http://localhost:4200/who. This command must be run as root in order to be able to change to nobody:nogroup as requested by the service description
 * shellinaboxd -t -s '/:root:root:/:wy60 -c /bin/login'
 * Instead of the standard ANSI/VT100 terminal, publish a Wyse 60 terminal. Again, this command should be run as root.
 * shellinaboxd -s /:SSH:example.org

    The terminal connects to a ssh session on example.org. 

shellinaboxd -t -s /:AUTH:HOME:/bin/bash

    Interactively request the user's name and password prior to launching a Bourne shell. This command can be run by unprivileged users. But if doing so, it only allows this particular user to log in. 
    
    oder spezieller Nutzer mit PRG als shell
*/		
###### parse contents of configfile and store everything in two arrays
function parse_file_contents($filename){
	global $inputvalues;
	$return = true;
	if ($data = file_get_contents($filename)){
		$contents = explode("\n", $data);
		foreach ($contents as $line) { # parse each line of the input file seperately
			$line = trim($line); $value = ""; # and override default values with config file values
			if (strlen($line) && substr($line, 0, 1) != '#') { # no comment lines and only lines with contents are parsed
				$key = trim(strtok($line, " \t")); # name of the specific option is first parameter
				$inputvalues["values"][$key] = trim(strtok(" \t")); # second entry is value for option
				while ($inputpart = strtok(" \t")) $value = $value.trim($inputpart)."\t"; # rest of the line is combined as comment
					$inputvalues["comment"][$key] = trim($value);
			} # comment lines and empty lines are ignored
		}# parsing of all lines done
	}# could not get file contents via function so die
	else {
		$return = false;
	}
	return $return;
}
###### check availability of server
function check_vitality($server, $timeout = 2){# ICMP ping packet with a pre-calculated checksum
return "1 OK toki";
	global $server_port_to_check;
	$contents = "";
	$fp = fsockopen($server, $server_port_to_check, $errno, $errstr, $timeout);
	if (!$fp) {
		$return = "0"."$errstr ($errno)";
	} else {
		stream_set_timeout($fp, $timeout);
	    $contents = $contents.fgets($fp, 128);
	    fclose($fp);
	    $return = "1".$contents;
	}
	return $return;
}
###### start server via GPIO
function start_server($server){
	$return = "Alles gut";
	return $return;
}
###### shutdown server
function shutdown_server($server){
	global $shutdown_command, $shutdown_user, $shutdown_public_keyfile, $Shutdown_private_keyfile;
	$connection = ssh2_connect($server, 22, array('hostkey', 'ssh-rsa'));
	if (ssh2_auth_pubkey_file($connection, $shutdown_user,$shutdown_public_keyfile, $Shutdown_private_keyfile)) {
		$return = "Public Key Authentication Successful\n<br>Shutting down server<br>\n";
		$stream = ssh2_exec($connection, $shutdown_command);
		$return = $return."<br>done ...<br>\n";
		fclose($stream);
	} else {
		$return = "Public Key Authentication Failed";
	}
	return $return;
}
###### edit terminal list
function edit_conf_file() {
	global $inputvalues;
	echo "<table border=1 width=700>\n"; # main table with all server names listed
	echo "<tr>\n<td colspan=3 class=header-style><br> Edit terminal list <br>&nbsp</td></tr>\n";
	echo "<tr>\n<td class=subheader-style> Server </td><td class=subheader-style> Terminal </td><td class=subheader-style> Comment </td></tr>\n";
	$counter = 0;
	foreach ($inputvalues["values"] as $key => $value){
		$counter ++;
		echo "<tr><td><input type='input' value='".$key."' name='server".$counter."'></td>";
		echo "<td><input type='input' value='".$value."' name='tty".$counter."'></td>";
		echo "<td  class=Comment-style><input class=Comment-style type='input' size=50 value='".$inputvalues['comment'][$key]."' name='comment".$counter."'></td></tr> ";
	}
	echo "<tr>\n<td colspan=2 align=center><input type='submit' name='CANCEL' value='CANCEL'></td><td align=center><input class=attention-style type='submit' name='SAVE' value='SAVE'></td></tr>\n";
	echo "<input type='hidden' name='counter' value='".$counter."'>\n";
	return;
}
###### save values to file
function save_conf_file($filename){
	$ergebnis = false;
	$output = "";
	for ($i=1;$i <= $_GET['counter']; $i++){# number of entries is stored in variable
		$output = $output.$_GET['server'.$i]."\t".$_GET['tty'.$i]."\t".$_GET['comment'.$i]."\n";
	}
	if ($handle = fopen($filename, "w")){ # open configfile for write
		fwrite($handle, $output);
		fclose($handle);
		$ergebnis = true;
	}
	else { # can not open output file
		$ergebnis = false;
	}
	return $ergebnis;
}
###### debug output of POST
function debug_output(){
	echo "<pre><br><h1>Hier kommt der schamass!</h1>";
	print_r($_GET);
	echo "</pre>"; return ;
}
############################## MAIN ##################################
if (isset($_SERVER['HTTP_X_FORWARDED_SERVER'])){ # if redirected, we use a different URI
	$action_script = $redirect_header.htmlspecialchars($_SERVER['PHP_SELF']);
}else {
	$action_script = htmlspecialchars($_SERVER['PHP_SELF']);
}
echo "<form method='get' action='".$action_script."'>\n";# page header with headline and table headers
if ( !parse_file_contents($mac_adress_file)) { # get contents of external file
	echo "<h1>Error reading config file!!</h1>";
} else {
	echo "<table border=1 width=700>\n"; # main table with all server names listed
	echo "<tr><td colspan=4 class=header-style><br> mini Server Admin Page <br>&nbsp</td><td align='center'><input class=attention-style type='submit' name='EDIT' value='EDIT'></td></tr>\n";
	echo "<tr>";
	foreach ($table_headers as $header)
		echo "<th class='".$header."-style' > ".$header."</th>";
	echo "</tr>\n";
	foreach ($inputvalues["values"] as $key => $value){# iterate over complete list of items 
		$title_text = check_vitality($key); # text to display on mouseover for button
		if (substr($title_text, 0, 1) == "1") 
			$text_color = "green";
		else 	
			$text_color = "red";
		echo "<tr><td align='center'><input type='submit' title='".substr($title_text, 1)."' name='CHECK' value='".$key."'></td>";
		echo "<td align='left' bgcolor='".$text_color."'> <a href='".$inputvalues['values'][$key]."' > ".$key.$domain." </td>";# link to terminal
		echo "<td class=Start-style><input type='submit' name='START' value='".$key."'></td>";# start server
		echo "<td align='center' class=Stop-style><input type='submit' name='STOP' value='".$key."'></td>";# stop server
		echo "<td class=Comment-style> ".$inputvalues['comment'][$key]." </td></tr>\n";# add comments field
	}
	echo "<tr><td colspan=5></td></tr>\n";
	echo "<tr><td colspan=5 align='center'><input type='submit' value='REFRESH' name='REFRESH'></td></tr>\n</table>\n";# just refresh the screen
	if (isset($_GET['STOP']) && array_key_exists($_GET['STOP'], $inputvalues['values'])){############ shutdown system ########################
		$server = $_GET['STOP'];
		echo "<h2>Stop Server: ".$server." </h2>\n<br><br>\n";
		echo shutdown_server($server);
	}
	elseif (isset($_GET['START']) && array_key_exists($_GET['START'], $inputvalues['values'])){############ wake up system ###################
		$server = $_GET['START'];
		echo "<h2>Wake Up System: ".$server."</h2>\n<br><br>\n";
		echo start_server($server);
	}
	elseif (isset($_GET['CHECK']) && array_key_exists($_GET['CHECK'], $inputvalues['values'])){############ get response on connectiontrial ###################
		$server = $_GET['CHECK'];
		echo "<h2>System returns: </h2>\n<br><br>".substr(check_vitality($server), 1)."\n<br><br>\n";
	}
	elseif (isset($_GET['EDIT'])) { ########### edit list of terminals #######################
		echo "<h2>Edit Terminallist</h2>\n";
		edit_conf_file();
	}
	elseif (isset($_GET['SAVE'])) { ########### save new entries to conf file ################
		echo "<h2>Save values to conf</h2>";
		if (save_conf_file($mac_adress_file)) echo "Updating Conf File successful (Choose REFRESH to see changes)!";
		else echo "Error during updating!";
	}
	elseif (!isset($_GET['REFRESH']) && !empty($_GET) && !isset($_GET['CANCEL'])) echo "<h1>Wrong Server choosen</h1>";############ user tries to cheat ################
	}
#print_r($inputvalues);
#debug_output();
echo "</form>\n</Body></HTML>\n";
########### END ###################################?>
@CHARSET "ISO-8859-1";
barbox_a {
  position: absolute;
  top: 330px;
  left: 250px;
  margin: 0px 0px 0px -160px;
  width: 304px;
  height: 24px;
  background-color: black;
}
.per {
  position: absolute;
  top: 330px;
  font-size: 18px;
  left: 250px;
  margin: 1px 0px 0px 150px;
  background-color: #FFFFFF;
}

.bar {
  position: absolute;
  top: 332px;
  left: 250px;
  margin: 0px 0px 0px -158px;
  width: 0px;
  height: 20px;
  background-color: #777777;
  border-style: solid;
  border-width: 1px;
}

.blank {
  background-color: white;
  width: 300px;
  border-style: solid;
  border-width: 1px;
}
.Stop-style {
	color: lightgray;
	background-color: firebrick;
	
}
.header-style {
	font-size: 20px;
}
.Start-style {
	text-align: center;
	background-color: blue;
	color: white;
}
.Comment-style {
	color: gray;
	background-color: lightgray;
}
a {
	color: lightgray;
}
.attention-style {
	background-color: red;
	color: white;
}
.subheader-style {
	color: white;
	background-color: dimgray;
}

Here is an example of the external file which lists the servers and its interfaces.


backup ttyUSB0 Backup Server
bananas ttyUSB1 Nas Server on Banana Pi
toradex ttyUSB2 Certification Authority on Toradex
raspberrypi ttyUSB3 Raspberry Pi for trials
cubietruck ttyUSB4 Cubie Main Server