LinuxQuestions.org
Visit Jeremy's Blog.
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 08-12-2006, 09:19 PM   #1
KornFused
LQ Newbie
 
Registered: Jul 2006
Location: Dallas, Texas
Distribution: MEPIS 6.5.03
Posts: 26

Rep: Reputation: 15
Question Cannot find SCSI drive with file manager


I am running Mepis 6.0-RC3 I have a SCSI drive which has a EXT3 partition and a Fat 32 partition. Q-Parted sees both partitions. I try to access the drive with the file manager so I can transfer files to it, but it does not show up in the file manager. My plans are to use the Fat 32 partition as a interface between my Windows System and the Linux system.
 
Old 08-12-2006, 09:28 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Are the partitions mounted?
Either by the mount command or added to /etc/fstab file.

Brian1
 
Old 08-13-2006, 05:51 PM   #3
KornFused
LQ Newbie
 
Registered: Jul 2006
Location: Dallas, Texas
Distribution: MEPIS 6.5.03
Posts: 26

Original Poster
Rep: Reputation: 15
It appears not to be mounted. I ran dmsg |more with this results for the scsi.
94.583590] scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
[ 94.583598] <Adaptec 2940 Ultra SCSI adapter>
[ 94.583604] aic7880: Single Channel A, SCSI Id=7, 16/253 SCBs
[ 94.583611]
[ 94.850715] Vendor: Quantum Model: XP32150 Rev: 576D
[ 94.850759] Type: Direct-Access ANSI SCSI revision: 02
[ 94.850791] scsi0:A:1:0: Tagged Queuing enabled. Depth 8
[ 94.850831] target0:0:1: Beginning Domain Validation
[ 94.854636] target0:0:1: FAST-10 SCSI 10.0 MB/s ST (100 ns, offset 15)
[ 94.856954] target0:0:1: Domain Validation skipping write tests
[ 94.856965] target0:0:1: Ending Domain Validation
[ 94.859467] SCSI device sda: 4199760 512-byte hdwr sectors (2150 MB)
[ 94.860580] SCSI device sda: drive cache: write back
[ 94.861779] SCSI device sda: 4199760 512-byte hdwr sectors (2150 MB)
[ 94.862869] SCSI device sda: drive cache: write back
[ 94.862882] sda: sda1 sda2
[ 94.869946] sd 0:0:1:0: Attached scsi disk sda
[ 94.870939] sd 0:0:1:0: Attached scsi generic sg0 type 0
[ 94.877926] Vendor: PLEXTOR Model: CD-R PX-W1210S Rev: 1.05
[ 94.877966] Type: CD-ROM ANSI SCSI revision: 02
[ 94.878008] target0:0:2: Beginning Domain Validation
[ 94.880107] target0:0:2: FAST-10 SCSI 10.0 MB/s ST (100 ns, offset 15)
[ 94.881427] target0:0:2: Domain Validation skipping write tests
[ 94.881438] target0:0:2: Ending Domain Validation

I tried:
root@1[~]# mount /dev/sda
and got this for a result:
mount: can't find /dev/sda in /etc/fstab or /etc/mtab

This is my next step and its results:
oot@1[~]# /etc/fstab
-su: /etc/fstab: Permission denied
root@1[~]# /etc/mtab
-su: /etc/mtab: Permission denied

So I am assuming that the drives are detected by q-parted but not mounted.
 
Old 08-14-2006, 02:00 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
RUn this command to list partitions that are created. Must be run as root so at a terminal screen type ' su ' and enter root's password. Now run the commmand ' /sbin/fdisk -l '. Post output.

Now if it is the only scsi drive and no other USB or Firewaire drives of any type attached thenit will be /dev/sda. Depending on the partition structure you did one would be /dev/sda1 and the other could be /dev/sda2.

Since they seem not to be mounted and no lines added to /etc/fstab then you can do it 1 or 2 ways.

1 ' mount -t ext3 /dev/sda1 /mnt/sda1 '. Of course you need to create the directory /mnt/sda1. ' mkdir /mnt/sda1 '. While at it do ' mkdir /mnt/sda2 '. To mount the fat32 do ' mount -t vfat /dev/sda2 /mnt/sda2 '. Of course you can make the mount point whatever you want and where ever you wish it to be.

2 Edit /etc/fstab and make lines similiar to these to automount on boot.
Code:
/dev/sda1               /mnt/sda1                    ext3    defaults        1 2
/dev/sda2              /mnt/sda2              vfat    umask=000,users,auto,owner,rw,dirsync   0 0
Brian1
 
Old 08-14-2006, 06:23 PM   #5
KornFused
LQ Newbie
 
Registered: Jul 2006
Location: Dallas, Texas
Distribution: MEPIS 6.5.03
Posts: 26

Original Poster
Rep: Reputation: 15
Thumbs up It Works!!!!

Brian,

I may be a little The drives may have been there, but I didn't know where to look. I followed your instructions and I can now read and write the drives. I found them in /mnt directory.

Here is my fdisk output:

Steve@1[~]$ su -
Password:
root@1[~]# /sbin/fdisk -l

Disk /dev/hda: 8455 MB, 8455200768 bytes
255 heads, 63 sectors/track, 1027 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 531 4265226 83 Linux
/dev/hda2 532 629 787185 82 Linux swap / Solaris
/dev/hda3 630 1027 3196935 83 Linux

Disk /dev/sda: 2150 MB, 2150277120 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 98 787153+ 83 Linux
/dev/sda2 99 261 1309297+ b W95 FAT32

I went in and made the changes to etc/fstab that you suggested and everything seems to be working. I have shared sda2 onto my network everyone can access it.

I just tried to write to the drive, but got a protection error, but at least I can read the drive. I don't know if it is a SAMBA thing or something else.
 
Old 08-15-2006, 05:14 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Tried to write to as a samba connection from a different machine?
If so then you need to modify /etc/samba/smb.conf and modify permissions for the share.
The use of umask=000 allows all to read and write. It is a vfat option.
So if all users on the local machine can write to it then I would say it is a samba share issue.

Gald to be of help.
Brian1
 
Old 08-15-2006, 06:45 PM   #7
KornFused
LQ Newbie
 
Registered: Jul 2006
Location: Dallas, Texas
Distribution: MEPIS 6.5.03
Posts: 26

Original Poster
Rep: Reputation: 15
Unhappy Now What?

I changed the mask in etc/samba

[Linux SCSI Drive]
path = /mnt/sda2
umask=000
guest ok = yes
read only = no
case sensitive = no
delete readonly = yes
msdfs proxy = no

I still cannot write to the drive from the outside of linux. Another odd thing is I cannot write to it from inside linux unless I am in the su- mode.
 
Old 08-16-2006, 05:46 PM   #8
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I think you need it more like this.
browseable = yes
public = yes
writable = yes

The umask=000 is for the use /etc/fstab file.

Brian1
 
Old 08-20-2006, 04:27 PM   #9
KornFused
LQ Newbie
 
Registered: Jul 2006
Location: Dallas, Texas
Distribution: MEPIS 6.5.03
Posts: 26

Original Poster
Rep: Reputation: 15
Thumbs up I don't understand all but it works

Brian,
I looked at etc/fastab and didn't see the change to the umask there.
Somehow I got the permissions fixed and everything is working.

Thanks for everything.

Steve
 
Old 08-21-2006, 06:13 PM   #10
KornFused
LQ Newbie
 
Registered: Jul 2006
Location: Dallas, Texas
Distribution: MEPIS 6.5.03
Posts: 26

Original Poster
Rep: Reputation: 15
Exclamation More on the subject



I looked at the boot sequence and found that the FSTAB file is written at boot up. Therefore any changes made to it after boot will not appear when you re-boot your computer. I do not know if this is a GRUB thing, a UBANTU thing or a MEPIS thing.

The solution to my problem seems to have been solved by opening Konqueror, then right clicking on the drive there and selecting the Properties Tab and the Permissions Tab and giving everyone permission to modify/write to the drive.

There may have been some problems in some of the SAMBA settings too. That Brian helped me solve.

When you have so many problems and you try so many things at once it is hard to figure out just what fixed the problem.

Thank you Brian for leading me through the forest. Now there is one less tree.
 
  


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
Kaspersky Anti-Virus for Linux File Server: Can't find license manager azmadar Linux - Security 1 12-02-2004 08:29 AM
Windows XP sees SCSI drive as File Type: RAW fof3 General 3 11-30-2004 02:13 PM
cannot find the root file manager in Mdk 10 scottsteibel Mandriva 1 05-31-2004 07:02 PM
How to use Download Manager to find file sofasurfer Linux - Newbie 1 01-09-2004 04:32 PM
[Gentoo file manager] Install RPM from the file manager? Coume Linux - Software 2 12-10-2003 02:21 AM

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

All times are GMT -5. The time now is 06:37 AM.

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