View previous topic :: View next topic |
Author |
Message |
icyhearts n00b
Joined: 24 Sep 2017 Posts: 31
|
Posted: Wed Oct 04, 2017 2:19 am Post subject: [solved] Gentoo can't detect USB external hard disk. |
|
|
I have a Segate USB external hard disk, which is about 1TB.
When I plug the USB hard disk into my laptop computer, fdisk -l shows only my internal disk, external hard disk is not detected by fdisk.
Code: |
[root@icefire ~]$fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x786d0efe
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 178262015 178259968 85G 7 HPFS/NTFS/exFAT
/dev/sda2 178262016 356521983 178259968 85G 7 HPFS/NTFS/exFAT
/dev/sda3 356526017 976769071 620243055 295.8G f W95 Ext'd (LBA)
/dev/sda5 356526080 357050367 524288 256M 83 Linux
/dev/sda6 357054464 419862527 62808064 30G 83 Linux
/dev/sda7 419862528 482777087 62914560 30G 83 Linux
/dev/sda8 482779136 491167727 8388592 4G 82 Linux swap / Solaris
/dev/sda9 491169792 491694079 524288 256M 83 Linux
/dev/sda10 491696128 534804479 43108352 20.6G 83 Linux
/dev/sda11 534804480 723840704 189036225 90.1G 7 HPFS/NTFS/exFAT
/dev/sda12 723840768 976769071 252928304 120.6G 7 HPFS/NTFS/exFAT
Partition 3 does not start on physical sector boundary.
|
the sda is my internal disk, not my Seagate hard disk.I am expecting a sdb or sdc or something like this.But there is none aboue sdb or sdc.
Code: |
[root@icefire ~]$ls /dev/ | grep sd
ptysd
sda
sda1
sda10
sda11
sda12
sda2
sda3
sda5
sda6
sda7
sda8
sda9
ttysd
|
but lsusb show something about Segate
Code: |
[root@icefire newgentoo]$lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 1bcf:2883 Sunplus Innovation Technology Inc.
Bus 001 Device 003: ID 8087:07da Intel Corp.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 0bc2:ab24 Seagate RSS LLC Backup Plus Portable Drive
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 0461:4de2 Primax Electronics, Ltd
Bus 003 Device 003: ID 413c:2107 Dell Computer Corp.
Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
|
this: Seagate RSS LLC Backup Plus Portable Drive,
should be my USB hard disk.
and dmesg also detect the disk:
Code: |
# before plug it in:
[root@icefire /]$dmesg >/tmp/dmesg0.txt
#after plug it in.
[root@icefire /]$dmesg >/tmp/dmesg1.txt
# then compare the difference:
[root@icefire /]$diff /tmp/dmesg0.txt /tmp/dmesg1.txt
1717a1718,1723
> [ 774.951137] usb 4-1: new SuperSpeed USB device number 4 using xhci_hcd
> [ 774.964009] usb 4-1: New USB device found, idVendor=0bc2, idProduct=ab24
> [ 774.964014] usb 4-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
> [ 774.964017] usb 4-1: Product: BUP Slim BK
> [ 774.964019] usb 4-1: Manufacturer: Seagate
> [ 774.964020] usb 4-1: SerialNumber: NA7KG0JJ
|
as for the kernel module, I compiled usb_storage as module and load them:
Code: |
[root@icefire /]$lsmod | grep usb_storage
usb_storage 65536 0
[root@icefire /]$lsmod | grep xhci_hcd
xhci_hcd 139264 1 xhci_pci
[root@icefire /]$lsmod | grep xhci_pci
xhci_pci 16384 0
xhci_hcd 139264 1 xhci_pci
|
about my kernel config file in my /usr/src/linux-4.12.12-gentoo:
Code: |
[root@icefire /]$cd /usr/src/linux-4.12.12-gentoo/
[root@icefire linux-4.12.12-gentoo]$grep USB_STORAGE .config
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may
# also be needed; see USB_STORAGE Help for more info
CONFIG_USB_STORAGE=m
CONFIG_USB_STORAGE_DEBUG=y
CONFIG_USB_STORAGE_REALTEK=m
CONFIG_USB_STORAGE_DATAFAB=m
CONFIG_USB_STORAGE_FREECOM=m
CONFIG_USB_STORAGE_ISD200=m
CONFIG_USB_STORAGE_USBAT=m
CONFIG_USB_STORAGE_SDDR09=m
CONFIG_USB_STORAGE_SDDR55=m
CONFIG_USB_STORAGE_JUMPSHOT=m
CONFIG_USB_STORAGE_ALAUDA=m
CONFIG_USB_STORAGE_ONETOUCH=m
CONFIG_USB_STORAGE_KARMA=m
CONFIG_USB_STORAGE_CYPRESS_ATACB=m
CONFIG_USB_STORAGE_ENE_UB6250=m
|
about lscpi:
Code: |
[root@icefire newgentoo]$lspci -k
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
Subsystem: ASUSTeK Computer Inc. 3rd Gen Core processor DRAM Controller
Kernel driver in use: ivb_uncore
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
Subsystem: ASUSTeK Computer Inc. 3rd Gen Core processor Graphics Controller
Kernel driver in use: i915
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
Subsystem: ASUSTeK Computer Inc. 7 Series/C210 Series Chipset Family USB xHCI Host Controller
Kernel driver in use: xhci_hcd
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller (rev 04)
Subsystem: ASUSTeK Computer Inc. 7 Series/C216 Chipset Family MEI Controller
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller (rev 04)
Subsystem: ASUSTeK Computer Inc. 7 Series/C216 Chipset Family USB Enhanced Host Controller
Kernel driver in use: ehci-pci
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
Subsystem: ASUSTeK Computer Inc. 7 Series/C216 Chipset Family High Definition Audio Controller
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller (rev 04)
Subsystem: ASUSTeK Computer Inc. 7 Series/C216 Chipset Family USB Enhanced Host Controller
Kernel driver in use: ehci-pci
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
Subsystem: ASUSTeK Computer Inc. HM76 Express Chipset LPC Controller
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
Subsystem: ASUSTeK Computer Inc. 7 Series Chipset Family 6-port SATA Controller [AHCI mode]
Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
Subsystem: ASUSTeK Computer Inc. 7 Series/C216 Chipset Family SMBus Controller
Kernel driver in use: i801_smbus
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 635M] (rev a1)
Subsystem: ASUSTeK Computer Inc. GF108M [GeForce GT 635M]
Kernel driver in use: nouveau
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
Kernel driver in use: r8169
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6235 (rev 24)
Subsystem: Intel Corporation Centrino Advanced-N 6235 (AGN)
Kernel driver in use: iwlwifi
|
Could anyone help me? Many thanks.
PS:
my gentoo can detect a Kingston 16GB flash disk. But it cannot detect my Seagate 1TB hard disk.
However, the Seagate hard disk works well on gentoo liveDVD and Windows 7.
There is another strange thing: I installed vmware in my gentoo, and there is a Windows xp OS in a virtual machine, the XP virtual machine was able to use the Seagate hard disk, but my real gentoo machine could not use it, sad.
If you need more information, I can paste them later.
Last edited by icyhearts on Wed Oct 04, 2017 9:33 am; edited 2 times in total |
|
Back to top |
|
|
russK l33t
Joined: 27 Jun 2006 Posts: 665
|
Posted: Wed Oct 04, 2017 2:30 am Post subject: |
|
|
Try this: Code: | $ dmesg | grep usb-storage |
I get lines like this: Code: | [ 6.497561] usb-storage 2-3:1.0: USB Mass Storage device detected
[ 6.501521] scsi host7: usb-storage 2-3:1.0
[ 6.516357] usbcore: registered new interface driver usb-storage
|
Do you have CONFIG_BLK_DEV_SD=m ? |
|
Back to top |
|
|
icyhearts n00b
Joined: 24 Sep 2017 Posts: 31
|
Posted: Wed Oct 04, 2017 2:44 am Post subject: |
|
|
russK wrote: | Try this: Code: | $ dmesg | grep usb-storage |
I get lines like this: Code: | [ 6.497561] usb-storage 2-3:1.0: USB Mass Storage device detected
[ 6.501521] scsi host7: usb-storage 2-3:1.0
[ 6.516357] usbcore: registered new interface driver usb-storage
|
Do you have CONFIG_BLK_DEV_SD=m ? |
russK, thanks for your reply, here is what you requested:
Code: |
#before insertion:
[root@icefire linux-4.12.12-gentoo]$dmesg | grep usb-storage
[ 5.378877] usbcore: registered new interface driver usb-storage
# and after insertion:
[root@icefire linux-4.12.12-gentoo]$dmesg | grep usb-storage
[ 5.378877] usbcore: registered new interface driver usb-storage
|
in my configuration file, CONFIG_BLK_DEV_SD=y,
Code: |
[root@icefire linux-4.12.12-gentoo]$cd /usr/src/linux-4.12.12-gentoo/
[root@icefire linux-4.12.12-gentoo]$grep CONFIG_BLK_DEV_SD .config
CONFIG_BLK_DEV_SD=y
|
|
|
Back to top |
|
|
russK l33t
Joined: 27 Jun 2006 Posts: 665
|
Posted: Wed Oct 04, 2017 3:20 am Post subject: |
|
|
Sorry, I'm not sure what it could be. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Wed Oct 04, 2017 6:50 am Post subject: |
|
|
You need CONFIG_USB_UAS=y/m in kernel, and modprobe uas if it's built as a module. |
|
Back to top |
|
|
icyhearts n00b
Joined: 24 Sep 2017 Posts: 31
|
Posted: Wed Oct 04, 2017 9:28 am Post subject: Solved. |
|
|
It seems to be related to eudev.
just put this
in /etc/portage/package.use/eudev, and reinstall eudev.
It works
Code: |
[root@icefire ~]$fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x786d0efe
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 178262015 178259968 85G 7 HPFS/NTFS/exFAT
/dev/sda2 178262016 356521983 178259968 85G 7 HPFS/NTFS/exFAT
/dev/sda3 356526017 976769071 620243055 295.8G f W95 Ext'd (LBA)
/dev/sda5 356526080 357050367 524288 256M 83 Linux
/dev/sda6 357054464 419862527 62808064 30G 83 Linux
/dev/sda7 419862528 482777087 62914560 30G 83 Linux
/dev/sda8 482779136 491167727 8388592 4G 82 Linux swap / Solaris
/dev/sda9 491169792 491694079 524288 256M 83 Linux
/dev/sda10 491696128 534804479 43108352 20.6G 83 Linux
/dev/sda11 534804480 723840704 189036225 90.1G 7 HPFS/NTFS/exFAT
/dev/sda12 723840768 976769071 252928304 120.6G 7 HPFS/NTFS/exFAT
Partition 3 does not start on physical sector boundary.
Disk /dev/sdb: 931.5 GiB, 1000204885504 bytes, 1953525167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0x1bc676bf
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 188747684 188745637 90G 7 HPFS/NTFS/exFAT
/dev/sdb2 188747776 377141939 188394164 89.9G 7 HPFS/NTFS/exFAT
/dev/sdb3 587128769 1953523711 1366394943 651.6G f W95 Ext'd (LBA)
/dev/sdb5 587128832 1111489154 524360323 250G 7 HPFS/NTFS/exFAT
/dev/sdb6 1111500800 1530931199 419430400 200G 7 HPFS/NTFS/exFAT
/dev/sdb7 1530933248 1953523711 422590464 201.5G 7 HPFS/NTFS/exFAT
Partition 3 does not start on physical sector boundary.
|
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|