HP xw3400 User Manual page 102

User manual for linux
Hide thumbs Also See for xw3400:
Table of Contents

Advertisement

Plug in the IEEE-1394 hardware (i.e. external hard drive). Follow manufacturer's instructions for
3.
setup.
Mount device
Look for the new device in the output from fdisk –l (i.e. /dev/sdb1)
1.
If a new device is not automatically detected, force a scan of the SCSI bus. The best
2.
way to do this is to download a script that will do a complete scan. (i.e.,
http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh
text below.)
Make a temporary directory (i.e., /mnt/fw)
3.
Mount the device to a local directory (i.e. mount /dev/sdb1 /mnt/fw). Try /dev/sda1
4.
or /dev/sdb2 if you get an error about needing to specify a file system type.
Script
rescan-scsi-bus.sh
#!/bin/bash
# Skript to rescan SCSI bus, using the
# scsi add-single-device mechanism
# (w) 1998-03-19 Kurt Garloff <kurt@garloff.de> (c) GNU GPL
# (w) 2003-07-16 Kurt Garloff <garloff@suse.de> (c) GNU GPL
# $Id: rescan-scsi-bus.sh,v 1.15 2004/05/08 14:47:13 garloff Exp $
setcolor ()
{
red="\e[0;31m"
green="\e[0;32m"
yellow="\e[0;33m"
norm="\e[0;0m"
}
unsetcolor ()
{
red=""; green=""
yellow=""; norm=""
}
# Return hosts. sysfs must be mounted
findhosts_26 ()
{
hosts=
if ! ls /sys/class/scsi_host/host* >/dev/null 2>&1; then
echo "No SCSI host adapters found in sysfs"
exit 1;
#hosts=" 0"
#return
fi
for hostdir in /sys/class/scsi_host/host*; do
hostno=${hostdir#/sys/class/scsi_host/host}
hostname=`cat $hostdir/proc_name`
hosts="$hosts $hostno"
echo "Host adapter $hostno ($hostname) found."
done
}
# Return hosts. /proc/scsi/HOSTADAPTER/? must exist
findhosts ()
{
hosts=
for driverdir in /proc/scsi/*; do
driver=${driverdir#/proc/scsi/}
if test $driver = scsi -o $driver = sg -o $driver = dummy -o $driver = device_info; then
continue; fi
for hostdir in $driverdir/*; do
name=${hostdir#/proc/scsi/*/}
if test $name = add_map -o $name = map -o $name = mod_parm; then continue; fi
num=$name
driverinfo=$driver
if test -r $hostdir/status; then
num=$(printf '%d\n' `sed -n 's/SCSI host number://p' $hostdir/status`)
. Download it directly or cut and paste
3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xw4100Xw4300Xw4400Xw4550Xw4600Xw6000 ... Show all

Table of Contents