LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-31-2005, 08:46 PM   #1
tubrains
LQ Newbie
 
Registered: May 2005
Posts: 6

Rep: Reputation: 0
Unhappy scsi mounting


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.

any suggestions would be great

Thx
 
Old 05-31-2005, 09:25 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
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.
 
Old 06-01-2005, 06:57 PM   #3
tubrains
LQ Newbie
 
Registered: May 2005
Posts: 6

Original Poster
Rep: Reputation: 0
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

Is there any way I can get around this.

Thx
 
Old 06-02-2005, 12:17 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
so are you saying that line in the fstab gives you that error upon bootup
but when you manually type in :
Code:
mount /dev/sda1 /mnt/scsi
after bootup, it works?
 
Old 06-04-2005, 05:38 AM   #5
tubrains
LQ Newbie
 
Registered: May 2005
Posts: 6

Original Poster
Rep: Reputation: 0
That's correct,

I've even tried different variations of the code that you gave me to try and get it to work but to no advail.

Is it possible that the /etc/fstab script is executing before the modprobe command? If so is there another startup script I can try?

Thanks for your help
 
Old 06-04-2005, 05:43 PM   #6
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
Old 07-05-2005, 06:06 PM   #7
tubrains
LQ Newbie
 
Registered: May 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Talking

hi,

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

Thanks for all your help so far.
 
Old 07-05-2005, 08:30 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,753

Rep: Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930
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.
 
Old 07-07-2005, 02:37 PM   #9
tubrains
LQ Newbie
 
Registered: May 2005
Posts: 6

Original Poster
Rep: Reputation: 0
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:

Code:
su
chmod 777 -R /mnt/scsi
and hey presto it's working fine.
 
Old 07-07-2005, 02:53 PM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Its directory not folder.
 
Old 07-08-2005, 01:44 PM   #11
tubrains
LQ Newbie
 
Registered: May 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I stand corrected, thank you
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting various SCSI devices KePSuX Linux - Hardware 2 10-08-2004 04:05 PM
Mounting SCSI Discs gurrie Linux - Hardware 1 07-30-2003 12:42 AM
Mounting a SCSI Array scottpioso Linux - Hardware 5 06-03-2003 08:02 PM
mounting SCSI CDROM MetalStorm Linux - Hardware 0 03-23-2003 11:30 AM
Mounting SCSI devices MasterC Linux - Hardware 12 09-25-2002 02:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration