You are not logged in.
Pages: 1
How do you setup an USB hard disk storage?
Markku
Offline
i believe you have to load the modules for usb mass storage. if i am not mistaken you may also need to have scsi emulation enabled as well. I reccomend taking a look at the config file in /usr/abs/base/kernel browse through to th usb section and tht should give you an idea what to load.
you might even be able to glean some information on this by doing a search at linuxnewbie.org's forum. ...that is if no one here can answer your question.
AKA uknowme
I am not your friend
Offline
i believe you have to load the modules for usb mass storage. if i am not mistaken you may also need to have scsi emulation enabled as well. I reccomend taking a look at the config file in /usr/abs/base/kernel browse through to th usb section and tht should give you an idea what to load.
My "lsmod" shows:
sd_mod 10924 0 (autoclean) (unused)
sg 28236 0 (unused)
usb-storage 23564 0 (unused)
scsi_mod 56100 2 [sd_mod sg usb-storage]
uhci 26192 0 (unused)
usbcore 40224 0 [usb-storage uhci]
My /usr/abs folder is empthy.
From other sources it said to add lines to /etc/devfsd.conf:
I have an external USB hard drive working on my system. "lsmod | grep usb" shows usb-storage and usb-ohci modules loaded. Here's what I added to my /etc/devfsd.conf:
# Create /dev/sdb5 for the external USB drive LOOKUP ^sdb5 CFUNCTION GLOBAL mksymlink scsi/host3/bus0/target0/lun0/part5 sdb5 REGISTER ^scsi/host3/bus0/target0/lun0/part5 CFUNCTION GLOBAL mksymlink $devname sdb5 UNREGISTER ^scsi/host3/bus0/target0/lun0/part5 CFUNCTION GLOBAL unlink sdb5
I recommend plugging your HD in and rebooting. Then "cat /proc/scsi/scsi" to see that it's recognized.
If you have no other external USB devices on your system, your HD will probably be either /dev/sda1 or /dev/sda5.
How to do it AL?
How to autoload modules? AL doesn't have /etc/modules.autoload file.
Markku
Offline
The simplest method is to load them from rc.local using modprobe. Normally, this would load the module and any required supporting modules into the kernel. You could also use insmod to load only the module itself.
ex: modprobe usb-storage
You may still require using the modules.conf file for specific aliases and/or other module configuration and in this case I can't help much but I'm sure someone has the info, if any, you need. Also, verify any devfs entries you may need to make.
BluPhoenyx
Offline
I got the USB storage to work. Here is the solution:
http://bbs.archlinux.org/viewtopic.php?t=541
Markku
Offline
HTH:
HOWTO-devfsd setup
The default /etc/devfsd.conf installed by devfsd contains some comments to get people started, but it's a bit limited. Here's a commented devfsd.conf with some additional setups for alsa, cd burning and other stuff, for further information on what you can do with devfsd.conf, see the devfsd manpage:
# Sample /etc/devfsd.conf configuration file.
# Enable module autoloading.
LOOKUP .* MODLOAD
# setup alsa permissions
REGISTER ^snd/ PERMISSIONS -1.audio 0660
# setup permissions for oss audio/alsa oss emulation
REGISTER ^sound/ PERMISSIONS -1.audio 0660
# setup some symlinks for oss audio/alsa oss emulation
REGISTER ^sound/mixer$ CFUNCTION GLOBAL mksymlink $devname mixer
REGISTER ^sound/mixer$ CFUNCTION GLOBAL mksymlink $devname mixer0
UNREGISTER ^sound/mixer$ CFUNCTION GLOBAL unlink mixer
UNREGISTER ^sound/mixer$ CFUNCTION GLOBAL unlink mixer0
REGISTER ^sound/dsp$ CFUNCTION GLOBAL mksymlink $devname dsp
UNREGISTER ^sound/dsp$ CFUNCTION GLOBAL unlink dsp
REGISTER ^sound/adsp$ CFUNCTION GLOBAL mksymlink $devname dsp1
UNREGISTER ^sound/adsp$ CFUNCTION GLOBAL unlink dsp1
# setup cdrecord compatibility devices and permissions
REGISTER ^scsi/host0/bus0/target(.)/lun0/generic CFUNCTION GLOBAL mksymlink $devname sg1
REGISTER ^scsi/host0/bus0/target(.)/lun0/generic PERMISSIONS -1.burning 660
UNREGISTER ^scsi/host0/bus0/target(.)/lun0/generic CFUNCTION GLOBAL unlink sg1
# setup cdrdao device
REGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL mksymlink $devname cdrecorder
UNREGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL unlink cdrecorder
# setup apm compat device (XFree seems to need it)
REGISTER ^misc/apm_bios$ CFUNCTION GLOBAL mksymlink $devname apm_bios
UNREGISTER ^misc/apm_bios$ CFUNCTION GLOBAL unlink apm_bios
# setup rtc compat device (i use this for mplayer, don't know if anything else
# can make use of it)
REGISTER ^misc/rtc$ CFUNCTION GLOBAL mksymlink $devname rtc
REGISTER ^misc/rtc$ PERMISSIONS -1.-1 0644
UNREGISTER ^misc/rtc$ CFUNCTION GLOBAL unlink rtc
# vmware monitor symlinking, so vmware finds it
REGISTER ^misc/vmmon$ CFUNCTION GLOBAL mksymlink $devname vmmon
UNREGISTER ^misc/vmmon$ CFUNCTION GLOBAL unlink vmmon
# needed for vmware
REGISTER ^vc/(.*)$ CFUNCTION GLOBAL mksymlink $devname tty1
UNREGISTER ^vc/(.*)$ CFUNCTION GLOBAL unlink tty1
# setup video4linux compat device (thanks to rycee)
REGISTER v4l/.* PERMISSIONS -1.video 660
-- Linux! Isn't it time?
Offline
Pages: 1