Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am relatively new to linux and have been stumbling my way through RedHat's Fedore Core 3. The BIG problem I have been having is getting my SCSI card to be recognised but I've cracked it and I can now see my Advansys Scsi card and my HDD attached to it.
The catch is however, I cannot seem to get it to auto load at bootup, what I have to do is this
1) Either login as root or login and su to root in terminal
2) run "modprobe advansys"
3) mount the partition from /dev/sda1 to /mnt/scsi
once this is done I can sccess the drive no problem.
My question is this,
Is there either a way to get linux to do this for me or a way to create a script/batch file/etc so that I can run all the commands at once.
add the following to a startup script such as rc.local modprobe advansys
and then to have it automounted you can add something like the
following to /etc/fstab :
Code:
/dev/sda1 /mnt/scsi vfat user,rw,umask=000 0 0
now keep in mind i don't know what kind of filesystem you have on that device, but i just went under the assumption it is fat32 .. so you can change the part that says vfat to reflect the partition type.
Thanks for that, I seem to be making some real progress.
I have added the lines you suggested, and now when I startup and log into any account and check the hardware configuration I see the scsi card loaded, the hard drive is recognised and I even get an icon for the hard drive in the file system.
The only problem I have is that the drive is not mounting, I get an error, on bootup, saying that the device /dev/sda1 does not exist. I have tried changing this to /dev/sda (the drive not the partition) and I just get the same error
If the software for SCSI card is compiled as module, it has to first be loaded at the initrd stage of booting when you want it to mount at boot up. Of course you will need other modules too if they are not builtin. Usually, mkinitrd is smart checking for module dependencies. Look up mkinitrd in the man or info pages. I had to do the same with my IDE controller.
BTW, do not forget to include any filesystem in the mkinitrd with options, if / was formatted using a different filesystem other than ext2. If you do not, you have to pay time later on.
Afterfouling my Linux build up more than once then giving up I finallt invested in an adaptec scsi card and after a little playing around in the /etc/fstab file, finally got the scsi hdd starting at bootup.and any user can now access it.
But now I have problem number two. I cannot write to it. (or at least not unless I'm constantly logged in as root.)http://images.linuxquestions.org/que...cons/icon8.gif
Despite trawling the web for commands and altering the fstab line again it still will not allow a non root user to write to it
Is there a setting / Command etc that you can suggest to fix this
Post your /etc/fstab line for this filesystem. How is the drive formated i.e. filesystem(s). If using a linux filesystem you need to change permissions to the mount directory using the chmod command.
Thanks for your help everyone. I think I have sorted it now.
Apparently, the folder that I was mounting to was restricted to root only (never thought of that), a friend advised I type this line into the terminal:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.