New IT forum
10 August 2022, 10:47:54 pm *
Welcome, %1$s. Please login or register.

: PiHub now in stock.
 
Pages: [1]

Author Topic: Recognizing multiple HDD SATA drives in a usb enclosure  (Read 11565 times)

makinok

  • Newbie
  • *
  • Posts: 3
Recognizing multiple HDD SATA drives in a usb enclosure
« on: 02 October 2010, 02:11:24 pm »

Dear all,

I have a usb enclosure with 2 SATA 2TB HDD drives.
Though my mac recognizes them as two drives,
SheevaPlug(Ubuntu 9.04 SD card boot, Linux version 2.6.30.2 ([email protected]) )
recognizes only one of them.

I found the following URL, which is , I guess, related to my trouble.
http://www.linux-usb.org/FAQ.html#ts9.

How to know the flag, CONFIG_SCSI_MULTI_LUN, of the compiled kernel?
Should I recompile a kernel with the flag ON to solve this trouble?

P.S.
I have also found the message that SheevaPlug handles multiple HDDs;
http://www.newit.co.uk/forum/index.php/topic,167.0.html

Thanks,

Katsunori Makino

Here is dmesg:
Code: [Select]
usb 1-1: new high speed USB device using orion-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
EXT3-fs warning: checktime reached, running e2fsck is recommended
kjournald starting.  Commit interval 5 seconds
EXT3 FS on mmcblk0p2, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
VFS: Mounted root (ext3 filesystem) on device 179:2.
Freeing init memory: 140K
eth0: link up, 1000 Mb/s, full duplex, flow control disabled
usb 1-1: reset high speed USB device using orion-ehci and address 2
scsi 0:0:0:0: Direct-Access     WDC WD20 EARS-00MVWB0          PQ: 0 ANSI: 2 CCS
sd 0:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
sd 0:0:0:0: [sda] 3907029168 512-byte hardware sectors: (2.00 TB/1.81 TiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 38 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
device-mapper: ioctl: 4.14.0-ioctl (2008-04-23) initialised: [email protected]
sd 0:0:0:0: [sda] Unhandled sense code
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:0:0: [sda] Sense Key : 0x3 [current]
sd 0:0:0:0: [sda] ASC=0x11 ASCQ=0x0
end_request: I/O error, dev sda, sector 3907024047
Buffer I/O error on device sda1, logical block 1953511992
Buffer I/O error on device sda1, logical block 1953511993
Buffer I/O error on device sda1, logical block 1953511994
Buffer I/O error on device sda1, logical block 1953511995
NET: Registered protocol family 10
Installing knfsd (copyright (C) 1996 [email protected]).
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
svc: failed to register lockdv1 RPC service (errno 97).
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
sd 0:0:0:0: [sda] Unhandled sense code
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:0:0: [sda] Sense Key : 0x3 [current]
sd 0:0:0:0: [sda] ASC=0x11 ASCQ=0x0
end_request: I/O error, dev sda, sector 159
Buffer I/O error on device sda1, logical block 48
Buffer I/O error on device sda1, logical block 49
Buffer I/O error on device sda1, logical block 50
Buffer I/O error on device sda1, logical block 51
Buffer I/O error on device sda1, logical block 52
Buffer I/O error on device sda1, logical block 53
Buffer I/O error on device sda1, logical block 54
Buffer I/O error on device sda1, logical block 55
Buffer I/O error on device sda1, logical block 56
Buffer I/O error on device sda1, logical block 57
eth0: no IPv6 routers present
Logged

NewIT_Marcus

  • Hero Member
  • *****
  • Posts: 960
Re: Recognizing multiple HDD SATA drives in a usb enclosure
« Reply #1 on: 02 October 2010, 07:23:46 pm »

The kernel you are using comes from sheeva.with-linux.com; discussion of these kernels is on the kernel board at the plug computer forum.

Have you tried any of the more recent kernels?
Logged

makinok

  • Newbie
  • *
  • Posts: 3
Re: Recognizing multiple HDD SATA drives in a usb enclosure
« Reply #2 on: 03 October 2010, 05:10:32 am »

Thank you for your advice. I also read the forum on PlugComputing.org.

I have tried to execute ./README-2.6.35.7 --rootkernel and reboot my plug.
But the kernel is still Linux ubuntu 2.6.30.2.

The factory setting shows that uImage is loaded from /uImage.
http://www.newit.co.uk/forum/index.php/topic,136.0.html

But there is no uImage in /.
Is uImage still loaded from NAND though rootfs is on SD?

Code: [Select]
[email protected]:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                   256876         0    256876   0% /lib/init/rw
varrun                  256876       316    256560   1% /var/run
varlock                 256876         4    256872   1% /var/lock
udev                    256876       120    256756   1% /dev
tmpfs                   256876         0    256876   0% /dev/shm
rootfs                 3910844   1198028   2514152  33% /

I will see boot log with u-boot booting.

Katsunori Makino
Logged

peter a

  • Full Member
  • ***
  • Posts: 162
Re: Recognizing multiple HDD SATA drives in a usb enclosure
« Reply #3 on: 03 October 2010, 10:42:16 am »

how and what it boots from is determined by your Uboot setting .

You will find that ./README-2.6.35. batch file will place a uImage image file in your boot dir , if your lucky which will be called sheeva-2.6.35-uImage , so you will need to rename or link it to uImage OR whatever your Uboot settings are !!!!!

Try posting your Uboot evn settings with printenv !!!
Logged

NewIT_Marcus

  • Hero Member
  • *****
  • Posts: 960
Re: Recognizing multiple HDD SATA drives in a usb enclosure
« Reply #4 on: 03 October 2010, 11:09:30 am »

I have tried to execute ./README-2.6.35.7 --rootkernel and reboot my plug.
But the kernel is still Linux ubuntu 2.6.30.2.

The sheeva.with-linux.com scripts don't update the kernel on our SD cards. But it is easy to do manually. Boot your plug from NAND and download the uImage and modules. Insert and mount the SD card, then copy the kernel to partition #1 (as uImage) and the modules to partition #2:


Code: [Select]
mount /dev/mmcblk0p1 /mnt/mmc-kernel-partition/
mount /dev/mmcblk0p2 /mnt/mmc-rootfs-partition/
cp sheeva-2.6.32.7-uImage /mnt/mmc-kernel-partition/uImage
tar x -C /mnt/mmc-rootfs-partition/ --overwrite -zf sheeva-2.6.32.7-Modules.tar.gz
umount /mnt/mmc-kernel-partition/
umount /mnt/mmc-rootfs-partition/

Once you know the changes are working you can remove the old modules
Code: [Select]
rm -R /mnt/mmc-rootfs-partition/lib/modules/2.6.30.2/*
rmdir  /mnt/mmc-rootfs-partition/lib/modules/2.6.30.2/

or:
Code: [Select]
rm -R /lib/modules/2.6.30.2/*
rmdir  /lib/modules/2.6.30.2/
if you are booting from SD card.
Logged

NewIT_Marcus

  • Hero Member
  • *****
  • Posts: 960
Re: Recognizing multiple HDD SATA drives in a usb enclosure
« Reply #5 on: 03 October 2010, 11:17:32 am »

How to know the flag, CONFIG_SCSI_MULTI_LUN, of the compiled kernel?

The config file for the 2.6.30.2 kernel has this setting commented out:

Code: [Select]
#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set


whereas the most recent kernel config file has is set to y:

Code: [Select]
#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_SCSI_MULTI_LUN=y

I haven't researched to determine exactly when it was added.
Logged

makinok

  • Newbie
  • *
  • Posts: 3
Re: Recognizing multiple HDD SATA drives in a usb enclosure
« Reply #6 on: 04 October 2010, 12:43:00 am »

Code: [Select]
[email protected]:~# ls /dev/s*
/dev/sda  /dev/sg0  /dev/sndstat  /dev/stdin
/dev/sdb  /dev/sg1  /dev/stderr   /dev/stdout


Your advice enable my plug to see two HDDs as above.
The kernel is also 2.6.35.7. Thank you very much.

I was confused another plug, which boots from one partition of a USB stick.

Katsunori Makino
Logged
Pages: [1]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!