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 02-18-2004, 01:54 PM   #1
shariqali
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Rep: Reputation: 0
USB mass storage device in SJDS


Hello,

I have just installed Sun java desktop on my computer and am trying to mount my USB mass storage device (Cyclone). But it keeps giving me input/output error. Can anyone tell me what kind of script do I need to add to /etc/fstab to mount this device in sun java desktop.

Thanks.
SA
 
Old 02-18-2004, 07:05 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Your fstab does not contain scripts. It contains entries to tell the mount programme how to deal with devices and mountpoints that you use regularly.

Firstly, you need to know the device name. If you have no other USB storage devices, and you have no SCSI storage devices, then it is likely to be /dev/sda1. To be sure, plug in the device, type dmesg. You should hopefully get something like this:
Code:
hub.c: new USB device 00:07.2-1.4, assigned address 4
scsi2 : SCSI emulation for USB Mass Storage devices
  Vendor: Generic   Model: Traveling Disk    Rev: 1.11
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
SCSI device sdb: 129024 512-byte hdwr sectors (66 MB)
sdb: Write Protect is off
 /dev/scsi/host2/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4
Then change to the user root and issue the command fdisk -l (that is a lowercase L, by the way). You should get some output like this:
Code:
[root@grants gsewell]# fdisk -l

Disk /dev/sda1: 66 MB, 66060288 bytes
16 heads, 32 sectors/track, 252 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

                                 Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1       251     64240    6  FAT16
If you have this, then so far so good. Then you can make the directory where you intend on reading the files (/mnt/cyclone for example). Now you can edit your /etc/fstab file and add an entry along the following lines:
Code:
/dev/sda1 /mnt/cyclone auto users,noauto 0 0
Save the changes to the files and try mounting your device.
Hope this helps.
 
Old 02-19-2004, 08:30 AM   #3
shariqali
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks so much for your detailed reply. I will do as you instructed and will let you know if it works.

SA
 
  


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
Mass storage device USB xeebeeeeeee Linux - Hardware 10 02-13-2008 12:11 PM
USB Mass storage Device purefan Linux - Hardware 15 06-06-2005 01:56 PM
usb - mass storage device d1l2w3 Mandriva 7 01-10-2005 10:10 PM
USB Mass Storage Device ebasi Linux - Hardware 2 12-23-2004 02:06 PM
Usb mass storage device laguna Linux - Hardware 4 08-12-2002 02:16 AM

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

All times are GMT -5. The time now is 03:17 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