LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 02-03-2002, 07:48 PM   #16
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mandriva, Mandriva, Mandriva. (Three different releases depending on the computer)
Posts: 663

Rep: Reputation: 32

>> Well - if I read that correctly...

If you were mounting to /dev/sdb1 - and it worked.. then you pulled out your SCSI drive - it would then switch to /dev/sda1 .... reinstalling it wouldn't have fixed it. <<

I reinstalled Linux as well as the drive. Whatever, the thing that screwed it all up was pulling out the SCSI HDD.

The thing that I don't understand now is the fact that it's telling me

/dev/sdb1 is not a valid block device, despite that doing

ls /dev/sdb1 -l

shows it *is* a block device. ie b is the first character in the listing.

I suppose it's saying it *is* a block device, but it's not valid - so why?!

Cheers,

Rob
 
Old 02-03-2002, 09:20 PM   #17
ryanstrayer
Member
 
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250

Rep: Reputation: 30
Ok - so you put the SCSI drive back in?

If you type ' dmesg ' - does it detect both both drives..

Just because the character/block file is there doesn't mean anything - you'll notice that there is a character/block file for just about everything in existance for linux already made on your /dev directory.
 
Old 02-04-2002, 09:35 AM   #18
jtshaw
Moderator
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,891
Blog Entries: 1

Rep: Reputation: 62
The easiest way to see if it sees the camera at all is to do a cat /proc/scsi/scsi.

If it shows up in that file then you are just mounting the wrong device.

John
 
Old 02-04-2002, 01:18 PM   #19
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mandriva, Mandriva, Mandriva. (Three different releases depending on the computer)
Posts: 663

Rep: Reputation: 32
Thanks for the suggestions, chaps. Here are the results of the UK jury!:

>> Ok - so you put the SCSI drive back in? <<

Yep.

>> If you type ' dmesg ' - does it detect both both drives.. <<

No, it only lists sda.

>> The easiest way to see if it sees the camera at all is to do a cat /proc/scsi/scsi. <<

All it sees here again is the actual Quantum Fireball HDD.

>> Just because the character/block file is there doesn't mean anything - you'll notice that there is a character/block file for just about everything in existance for linux already made on your /dev directory. <<

Yep, I've done a bit of reading on this and understand a little of the /dev directories - but obviously not enough! <g>

I leaves me with two questions:

1. If the character block file being there doesn't mean anything, how do you *make* it mean something?

2. Is this something to do with dependencies? Is there possible some dependency I don't have? Maybe there's more than one thing wrong here...
 
Old 02-04-2002, 01:33 PM   #20
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mandriva, Mandriva, Mandriva. (Three different releases depending on the computer)
Posts: 663

Rep: Reputation: 32
Hmmmmm, now it's working again. I'm not really sure what I've done to make it work though which is a little annoying! I poked around, did a

cat /proc/bus/usb/devices

and could see the camera on the USB port, so I switched it [the camera] off to prove it went away when powered down - and it did.

mount -r -t vfat /dev/sda1 /mnt/fuji

then does the trick.

Ah well.

thanks very much for all your help, it's greatly appreciated. :-)

Cheers,

Rob
 
Old 02-04-2002, 08:13 PM   #21
ryanstrayer
Member
 
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250

Rep: Reputation: 30
Quote:
Originally posted by DiBosco

I leaves me with two questions:

1. If the character block file being there doesn't mean anything, how do you *make* it mean something?

2. Is this something to do with dependencies? Is there possible some dependency I don't have? Maybe there's more than one thing wrong here...]
To answer your questions, 1 - you don't make them do anything. There files are created there for you with the appropriate major and minor numbers. Let me give you a quick 101 on this as I understand it. Each file in the /dev directory is usually either a "character" file, associated to a character device (mouse, keyboard, etc) or a block file, associated ot a block device (hard drive, floppy drive, etc). Each file, regardess if it's a character or block or whatever is associated to a major and minor number. This major and minor number is the "address" of the hardware on your system.. kind of like an address to somebodies house. If you do an "ls -l fd0*" you will give an output similiar to below:

brw-rw---- 1 root floppy 2, 0 Aug 30 15:30 /dev/fd0

You will notice after the word floppy, there is a 2, 0 .. this is the major and minor numbers - Major 2, Minor 0 ... This is the address to this specific type of device. If you notice on the other floppy devices, they have different minor numbers. For example the device /dev/fd0h1660 - you would use this device to format a floppy drive to 1.66 megs instead of 1.44 megs (depending if your system supports it.. mine does not).

Even if this file is created, doesn't mean the device is actually there, aka at that address. Basically these files are created for your convienance in advance, so you don't have to do it. Sometimes, you will add a new piece of hardware, that isn't typically used and you will have to create one of these files, using the 'mknod' command. For example, I had to do this for my Thinkpad Laptop in order to use the Linux thinkpad utilities. I had to create a /dev/thinkpad character file to access my SMAPI BIOS in order to change BIOS settings.

Hope this makes sense....

2 - Yes there are dependencies in everything. Identifying those depencencies can bet a pain in the ass sometimes though. A dependencies for a /dev file to work, is obviously having the hardware, having the appropriate driver loaded via a module or in the kernel, and have that driver access the write I/O addresses etc. But the generally answer to your question is yes.

Take care - and don't give up!

- Ryan
 
Old 02-19-2002, 08:04 PM   #22
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
Good thread

I have been looking for a way to get my SIIG model US2237 Smart Media Reader to be recognized by Linux.
On my computer, I have two CD's that, I think, are recognized as SCSI. So perhaps this reader would be my third SCSI device?
any advice? The SIIG guys told me that the reader is not compatible with Linux.
 
Old 02-19-2002, 11:27 PM   #23
jtshaw
Moderator
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,891
Blog Entries: 1

Rep: Reputation: 62
I believe your device is compatible with linux using the storage media methods discussed above. I haven't used that exact device but it is quite close to many others that work.

You can get its scsi id by doing a cat /proc/scsi/scsi assuming you have mounted the proc file system and you have all the right scsi devices setup as discussed above. If you have any questions feel free to ask on here or by e-mail.

John
jtshaw@resnet.gatech.edu
 
Old 09-20-2002, 07:20 PM   #24
emblarq
LQ Newbie
 
Registered: Sep 2002
Location: marilia city - brazil
Distribution: conectiva
Posts: 4

Rep: Reputation: 0
Dear sir,
We have bought a Flash Drive.
In the windows 98 it worked perfectly.
But in our Linux (kernel 2.4.18) we didnt't get to install it.
We would like you could inform us step by step all the procedure to the Flash Drive installation in the Linux
Where is /dev/??? for the USB Flash Drive ??
We also would like to know if Flash Drive can be connected/disconnected when the PC is turned on.
We need these information with urgency.
We thank you help in advance.
José
Brazil
emblarq@terra.com.br
 
Old 03-10-2003, 08:59 AM   #25
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
I did what worked for you and it did not work for me:

# mount -r -t vfat /dev/sda1 /mnt/olympus
mount: mount point /mnt/olympus does not exist

kernel does see olympus 3000-z attached to usb, so I don't understand why mount command doesn't see the mount point. hmm... I fear i miss the point completely. is it something to do with fstab or mtab?

ok, i did not add an entry for my camera in fstab because i am not sure i have to.

gphoto doesn't support my camera anyway, but gphoto2 command line interface does the job well.

However I'd like to have a gui approach to graphics and I'd like to use my camera entirely in a gui environement. I remember some months ago I tried RH8. I don't remember what was the name of the application, but I could attach the camera to USB, and see the icon pop-up on the desktop.

I 'd like to have this in Mandrake 9.0 too. How do I get it? Thanks, indeed.


 
Old 03-15-2003, 01:21 PM   #26
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
I added an entry in both fstab and mtab:

/dev/sdb1 /mnt/olympus vfat noauto,user,ro 0 0

I try to run:

mount -r -t vfat /dev/sdb1 /mnt/olympus

I get:

mount: special device /dev/sdb1 does not exist

Can anyone tell how to bring to existence that /dev/sdb sda or whatever, and how do I know to which usb slot exactly the camera is attached?

Regards,
l
 
Old 05-15-2003, 10:29 AM   #27
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 31
Quote:
Originally posted by linuxfond
Can anyone tell how to bring to existence that /dev/sdb sda or whatever, and how do I know to which usb slot exactly the camera is attached?

Regards,
l
You can learn quite a lot from plugging stuff into USB, switching on and reading the terminal blurb. That's how I learnt to use my Palm Zire as a USB device (it hotsyncs on USB1 rather than 0).
 
Old 09-24-2003, 07:11 AM   #28
xevilstar
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Unhappy nikon coolpix sq


I have slackware-current and a nikon coolpix sq
the device is seen both in the scsi and in the usb /proc files but gphoto seem not to see anything attached nor I could possibly mount anything 'cause both vfat both msdos gave me wrong fs type or too many attached filesystem....

HEEEEEEEEEEEEEEEEEEEELPPPPPPPPMEEEEEEEEEEEEEEEEEEE !!!
PLEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAASEEEEEEE !!

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB drive mount double mount issue pazzport Ubuntu 3 10-10-2005 09:28 PM
Memorex USB Thumbdrive will not mount on RH9 - USB conflict Tsatellite81 Linux - Hardware 1 02-24-2005 01:01 PM
udev, USB Flash Drives, and usb-mount talkingwires Debian 13 11-07-2004 01:15 PM
USB Keyboard Failing at USB Filesystem Mount Time ciaran_skye Fedora 0 08-06-2004 03:09 AM
mount usb module then mount usb hard drive guanyu Linux - Hardware 1 10-08-2003 12:50 PM


All times are GMT -5. The time now is 10:25 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration