- Linux SCSI/SATA bus rescan
- Не работает SATA -> USB адаптер
- SATA to USB Adapter
- 3 Answers 3
- Not the answer you’re looking for? Browse other questions tagged usb hard-drive sata or ask your own question.
- Related
- Hot Network Questions
- Subscribe to RSS
- Thread: External USB SATA Hard Drive not functioning
- External USB SATA Hard Drive not functioning
- Re: External USB SATA Hard Drive not functioning
- Re: External USB SATA Hard Drive not functioning
- Re: External USB SATA Hard Drive not functioning
- Re: External USB SATA Hard Drive not functioning
- Re: External USB SATA Hard Drive not functioning
- Re: External USB SATA Hard Drive not functioning
- Re: External USB SATA Hard Drive not functioning
- Re: External USB SATA Hard Drive not functioning
Linux SCSI/SATA bus rescan
Подключив «по-горячему» еще один SATA винт, не обнаружил автоматического его подхвата системой, как это происходит когда подключаешь по USB. Переходник SATA-USB, как на зло, остался дома…
Машинка же была занята выполнением производственных задач и перегружать ее было бы очень и очень болезненно. Система — убунта 9.04, думаю что должно работать для всех 2.6.* ядер.
Linux ws10.dom 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux
В FreeBSD есть такая замечательная штука как atacontrol которой можно заставить реинициализироваться контроллер. В линуксе такой полезной утилиты не обнаружил…
Но порыскав на просторах инета нашел следующее:
#find /sys -name scan
/sys/devices/pci0000:00/0000:00:06.0/host4/scsi_host/host4/scan
/sys/devices/pci0000:00/0000:00:06.0/host5/scsi_host/host5/scan
/sys/devices/pci0000:00/0000:00:08.0/host0/scsi_host/host0/scan
/sys/devices/pci0000:00/0000:00:08.0/host1/scsi_host/host1/scan
/sys/devices/pci0000:00/0000:00:08.1/host2/scsi_host/host2/scan
/sys/devices/pci0000:00/0000:00:08.1/host3/scsi_host/host3/scan
смотрим что есть из подключенного
#dmesg | grep ata
[ 1.801457] ata1: SATA max UDMA/133 cmd 0xe400 ctl 0xe080 bmdma 0xd880 irq 15
[ 1.801459] ata2: SATA max UDMA/133 cmd 0xe000 ctl 0xdc00 bmdma 0xd888 irq 15
[ 2.268032] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 2.276290] ata1.00: ATA-7: Hitachi HDS721612PLA380, P23OABEA, max UDMA/133
[ 2.276292] ata1.00: 234441648 sectors, multi 16: LBA48 NCQ (depth 0/32)
[ 2.292298] ata1.00: configured for UDMA/133
[ 2.697111] ata3: SATA max UDMA/133 cmd 0xd800 ctl 0xd480 bmdma 0xd000 irq 5
[ 2.697113] ata4: SATA max UDMA/133 cmd 0xd400 ctl 0xd080 bmdma 0xd008 irq 5
[ 3.338805] ata5: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xffa0 irq 14
[ 3.338807] ata6: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xffa8 irq 15
Из чего следует, что 5,6 — параллельные и точно не наши, а на 1м живет основной диск.
Значит «пробуем» 2,3,4 порт
#echo ‘- — -‘ > /sys/class/scsi_host/host2/scan
#echo ‘- — -‘ > /sys/class/scsi_host/host3/scan
#echo ‘- — -‘ > /sys/class/scsi_host/host4/scan
Получаем в /var/log/mesages
[114471.168196] ata4: SError: < PHYRdyChg CommWake >
[114471.884034] ata4: soft resetting link
[114472.040055] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[114472.048259] ata4.00: ATA-7: WDC WD800JD-00LSA0, 06.01D06, max UDMA/133
[114472.048264] ata4.00: 156301488 sectors, multi 0: LBA48
[114472.058191] ata4.00: configured for UDMA/133
[114472.058205] ata4: EH complete
[114472.059257] scsi 3:0:0:0: Direct-Access ATA WDC WD800JD-00LS 06.0 PQ: 0 ANSI: 5
Диск обнаружен на 4м порту, готов к употреблению. Монтируем стандартными средствами системы.
UPD: 18.11.2009 — для PATA СД-драйва такой способ не прокатил
Источник
Не работает SATA -> USB адаптер
Есть VCOM «R-Driver USB 2.0 TO SATA IDE CABLE» адаптер.
На винде работает.
На линуксе даже в dmesg пусто.
Реально его заставить работать? Нехватает какого-то модуля/опции ядра?
да, возможно у тебя дидро собран без поддержки enclosure или где-то там.
Если в ядре есть поддержка usb-контроллера, то при подключении должно быть сообщение об этом. Может проблемы с портом/питанием. Винда на этом же железе работает?
да, возможно у тебя дидро собран без поддержки enclosure или где-то там.
можно по-подробнее? какие опции ядра?
нет, винда на другом железе. дома нет машин с виндой. проверял у друга
у друга кстати под линуксом тоже не работает на том же компе, на котором под вендой работает
Возможно, а кстати, что, несмотря на dmesg, в lsusb ничего не появляется, id устройства посмотреть нельзя?
У меня подобное устройство содержит
В конфиге ядра всё то же, что и для флешек/внешних usb-дисков.
Информация в dmesg появляется только после того, как переходник прочитает НЖМД, который, во избежании, лучше всего запитывать от БП компьютера (в выключенном состоянии или через специальный выключатель).
просто у тебя SanDisk
с CONFIG_ENCLOSURE_SERVICES и ещё несколькими похожими опциями не заработало.
нет, в lsusb ничего не меняется, кроме того, что порт перестаёт быть offline
Уверен что твой usb порт рабочий ?
Уверен что твой usb контроллер поддерживает твоё устройство ?
Уверен что твой usb-sata с твоим хдд/сдд может работать без внешнего блока питания ?
Уверен что у тебя ядро со всеми модулями ? Какой дистр ? Может попробовать например дебиановское ядро со всеми модулями ?
Открой этот адаптер. Это не сложно. Запиши полное название, модель чипа. Погугли.
Уверен что твой usb контроллер поддерживает твоё устройство ?
а может не поддерживать?
Уверен что твой usb-sata с твоим хдд/сдд может работать без внешнего блока питания ?
на винде диск через этот адаптер виделся
Уверен что у тебя ядро со всеми модулями ? Какой дистр ? Может попробовать например дебиановское ядро со всеми модулями ?
У меня гента. У друга проверяли на какой-то бунте. Не знаю сколько там модулей было. Ещё проверял на федоре. Там каталог модулей 112 мегабайт
Открой этот адаптер. Это не сложно. Запиши полное название, модель чипа. Погугли.
А у тебя юсб контроллер вообще определился в линуксе ? Драйвер нужный есть ? Другие юсб устройства (мышь, клава, флешка) через этот контроллер работают ?
на винде диск через этот адаптер виделся
Питания может на хватить лично на твоей материнской плате. Предположу заниженое питание на юсб порту. Не думаю что у всех материнок одинаковое питание.
Помню в винде можно было посмотреть силу тока на каждом юсб порту. Не знаю возможно ли это в линуксе.
Вообще я всегда использовал внешнее питание для всех дисковых юсб адаптеров. Всегда всё работало отлично.
Источник
SATA to USB Adapter
A friend of mine had a problem with his computer and it no longer works. We just want to get the data from the HDD but are unable to do so. We have tried connecting the HDD to my Ubuntu machine with this SATA to USB Converter. When I connect it to my machine, the drive doesn’t show up in the file manager.
«lsusb» shows that the converter gets detected.
I’ve tried to mount it like in another post, but that doesn’t work either. So anybody have any ideas of how I can mount the HDD?
3 Answers 3
I would not be surprised if the adapter is somehow faulty. The use of a second USB cord to get power violates the USB specifications and anyone that can’t be bothered to follow this very basic USB specification is quite likely to violate some other specification.
I’d suggest returning the adapter if you can and getting one that powers the drive properly. That would be with a single USB plug for power and data, or with USB for data and a connection to a wall outlet for power.
I HAD the same problem.
1) Restart your pc + login 2) Plug in the USB 3) Type «lsusb» in the terminal 4) WAIT for ASMedia to show up 5) Look at your file explorer and WAIT 6) KEEP WAITING for 5 minutes.
If the hard disk still doesn’t show up, repeat (I had to do it approx. 20x).
If you are using a desktop (i am), you can plug the hard drive into your motherboard using a sata cable and reboot (don’t forget sata power then 🙂 ). I had a much harder hard drive where this worked to get it show up in the disk list using «Disks». If the hard drive is still working, you don’t have to reboot, sata is hot-pluggable.
Not the answer you’re looking for? Browse other questions tagged usb hard-drive sata or ask your own question.
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.10.8.40416
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Источник
Thread: External USB SATA Hard Drive not functioning
Thread Tools
Display
External USB SATA Hard Drive not functioning
Well, I am new to linux, and I still have all of «My Documents» on my External USB SATA Hard Drive because I can’t seem to get them transfered.
Please help if you can.
Re: External USB SATA Hard Drive not functioning
Sorry to bump, but I am anxious. I have continued to search for an answer, but to no avail.
Re: External USB SATA Hard Drive not functioning
You don’t say what you’ve done, but I’m guessing that you’ve plugged the USB drive in, switched it on and nothing has happened. As you are talking about ‘My Documents’ I assume you are coming from the Windows world and the external USB drive will be formatted with either the FAT32 or NTFS filesystems. Both should work read-write out of the box with Ubuntu Hardy 8.04. What should happen a few seconds after you switch on the drive is that an icon will appear on your desktop and a file manager window will open. In the Gnome desktop of Ubuntu, this is called Nautilus. It’s equivalent to Windows Explorer and functionally very similar.
So I assume that you haven’t seen either a desktop icon or a browser window. If so, something is wrong.
First — can you confirm what the filesystem is on the USB drive? Is it still readable in Windows?
Second — you have a SATA USB drive. I have two of these and I have twice been caught out by a simple gotcha. There will probably be a switch on it, USB2.0 and ESATA. If you’ve accidentally switched it to ESATA (easily done) it won’t get mounted when you plug it in. This is true of Windows and MacOS as well. Check that the switch is switched to USB.
Third — which version of Ubuntu are you using? If you are using a version earlier than 8.04 (Hardy Heron) you may not get read-write with NTFS but the drive should still be mounted at least read only — as far as I remember. If it’s FAT32 you should have no problem at all.
I’m afraid you won’t get another post out of me for at least 8 hours. It’s gone midnight here and I’m signing off now.
Re: External USB SATA Hard Drive not functioning
It does not look like ubuntu sees my HDD, no desktop icon or window.
I have FAT32 filesystem, I think.
There is only a usb port on my drive, no switch or ESATA.
Maybe some other nice forumophyle (or foruphyle, which) can help me before the morn.
Re: External USB SATA Hard Drive not functioning
could be that it’s only not mounted
open the console and type
check whitch partition is missing and mount it, fo ex. sde1
if there is no partition listed use the disks label (ex. sde) instead
should be right *g* got no fat32 around to test it
now you have your disk mounted read/write and you find it in the /mnt folder
Last edited by libra1780; August 24th, 2008 at 04:29 AM .
Re: External USB SATA Hard Drive not functioning
could be that it’s only not mounted
open the console and type
$ ls /dev/sd*
ls: cannot access /dev/sd*: No such file or directory
Re: External USB SATA Hard Drive not functioning
Re: External USB SATA Hard Drive not functioning
Can you post the output of these commands too:
(you will be asked to type your password at the first command)
Then execute these:
Post the results once more
Re: External USB SATA Hard Drive not functioning
$ sudo apt-get update
[sudo] password for harrison:
Hit http://mirror.cc.columbia.edu hardy Release.gpg
Ign http://mirror.cc.columbia.edu hardy/main Translation-en_US
Ign http://mirror.cc.columbia.edu hardy/restricted Translation-en_US
Ign http://mirror.cc.columbia.edu hardy/universe Translation-en_US
Ign http://mirror.cc.columbia.edu hardy/multiverse Translation-en_US
Hit http://mirror.cc.columbia.edu hardy-updates Release.gpg
Ign http://mirror.cc.columbia.edu hardy-updates/main Translation-en_US
Ign http://mirror.cc.columbia.edu hardy-updates/restricted Translation-en_US
Ign http://mirror.cc.columbia.edu hardy-updates/universe Translation-en_US
Ign http://mirror.cc.columbia.edu hardy-updates/multiverse Translation-en_US
Hit http://mirror.cc.columbia.edu hardy-security Release.gpg
Ign http://mirror.cc.columbia.edu hardy-security/main Translation-en_US
Hit http://packages.medibuntu.org hardy Release.gpg
Hit http://dl.google.com stable Release.gpg
Ign http://dl.google.com stable/non-free Translation-en_US
Hit http://archive.canonical.com hardy Release.gpg
Ign http://archive.canonical.com hardy/partner Translation-en_US
Ign http://mirror.cc.columbia.edu hardy-security/restricted Translation-en_US
Ign http://mirror.cc.columbia.edu hardy-security/universe Translation-en_US
Ign http://mirror.cc.columbia.edu hardy-security/multiverse Translation-en_US
Hit http://mirror.cc.columbia.edu hardy-backports Release.gpg
Ign http://mirror.cc.columbia.edu hardy-backports/restricted Translation-en_US
Ign http://mirror.cc.columbia.edu hardy-backports/main Translation-en_US
Ign http://mirror.cc.columbia.edu hardy-backports/multiverse Translation-en_US
Ign http://packages.medibuntu.org hardy/free Translation-en_US
Ign http://packages.medibuntu.org hardy/non-free Translation-en_US
Ign http://mirror.cc.columbia.edu hardy-backports/universe Translation-en_US
Hit http://mirror.cc.columbia.edu hardy-proposed Release.gpg
Ign http://mirror.cc.columbia.edu hardy-proposed/restricted Translation-en_US
Hit http://archive.canonical.com hardy Release
Hit http://dl.google.com stable Release
Ign http://mirror.cc.columbia.edu hardy-proposed/main Translation-en_US
Ign http://mirror.cc.columbia.edu hardy-proposed/multiverse Translation-en_US
Ign http://mirror.cc.columbia.edu hardy-proposed/universe Translation-en_US
Hit http://mirror.cc.columbia.edu hardy Release
Hit http://mirror.cc.columbia.edu hardy-updates Release
Hit http://mirror.cc.columbia.edu hardy-security Release
Hit http://mirror.cc.columbia.edu hardy-backports Release
Hit http://mirror.cc.columbia.edu hardy-proposed Release
Hit http://packages.medibuntu.org hardy Release
Hit http://mirror.cc.columbia.edu hardy/main Packages
Hit http://archive.canonical.com hardy/partner Packages
Hit http://dl.google.com stable/non-free Packages
Hit http://mirror.cc.columbia.edu hardy/restricted Packages
Hit http://mirror.cc.columbia.edu hardy/universe Packages
Hit http://mirror.cc.columbia.edu hardy/multiverse Packages
Hit http://mirror.cc.columbia.edu hardy-updates/main Packages
Hit http://mirror.cc.columbia.edu hardy-updates/restricted Packages
Hit http://mirror.cc.columbia.edu hardy-updates/universe Packages
Hit http://mirror.cc.columbia.edu hardy-updates/multiverse Packages
Hit http://archive.canonical.com hardy/partner Sources
Hit http://packages.medibuntu.org hardy/free Packages
Hit http://mirror.cc.columbia.edu hardy-security/main Packages
Hit http://mirror.cc.columbia.edu hardy-security/restricted Packages
Hit http://mirror.cc.columbia.edu hardy-security/universe Packages
Hit http://mirror.cc.columbia.edu hardy-security/multiverse Packages
Hit http://mirror.cc.columbia.edu hardy-backports/restricted Packages
Hit http://mirror.cc.columbia.edu hardy-backports/main Packages
Hit http://mirror.cc.columbia.edu hardy-backports/multiverse Packages
Hit http://mirror.cc.columbia.edu hardy-backports/universe Packages
Hit http://mirror.cc.columbia.edu hardy-proposed/restricted Packages
Hit http://mirror.cc.columbia.edu hardy-proposed/main Packages
Hit http://mirror.cc.columbia.edu hardy-proposed/multiverse Packages
Hit http://mirror.cc.columbia.edu hardy-proposed/universe Packages
Hit http://packages.medibuntu.org hardy/non-free Packages
Reading package lists. Done
harrison@harrison-laptop:
$ sudo apt-get upgrade
Reading package lists. Done
Building dependency tree
Reading state information. Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
harrison@harrison-laptop:
$ lspci
00:00.0 Host bridge: ALi Corporation M1672 Northbridge [CyberALADDiN-P4]
00:01.0 PCI bridge: ALi Corporation PCI to AGP Controller
00:04.0 IDE interface: ALi Corporation M5229 IDE (rev c4)
00:06.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Controller Audio Device (rev 02)
00:07.0 ISA bridge: ALi Corporation M1533/M1535 PCI to ISA Bridge [Aladdin IV/V/V+]
00:08.0 Bridge: ALi Corporation M7101 Power Management Controller [PMU]
00:09.0 Modem: ALi Corporation M5457 AC’97 Modem Controller
00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0c.0 USB Controller: NEC Corporation USB (rev 43)
00:0c.1 USB Controller: NEC Corporation USB (rev 43)
00:0c.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
00:10.0 Ethernet controller: Atheros Communications Inc. AR5212/AR5213 Multiprotocol MAC/baseband processor (rev 01)
00:11.0 CardBus bridge: Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support (rev 33)
00:12.0 System peripheral: Toshiba America Info Systems SD TypA Controller (rev 05)
01:00.0 VGA compatible controller: Trident Microsystems CyberBlade XPAi1 (rev 82)
harrison@harrison-laptop:
$ lsusb
Bus 003 Device 010: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 1241:1166 Belkin optical mouse w/ scrollwheel
Bus 001 Device 001: ID 0000:0000
harrison@harrison-laptop:
Источник