LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-18-2004, 06:46 PM   #1
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Rep: Reputation: 30
Using a USB Memory Key


I'd like to use my 16MB USB Memory Key with Red Hat 8.0

Is it necessary to recompile the kernel in order to use a USB Memory Key with Red Hat Linux?
http://www.linuxquestions.org/questi...icle&artid=115

I first tried modifying the file /etc/fstab. I added the following line

/dev/sda /mnt/usbkey vfat noauto,owner,rw 0 0

Then I created the directory
mkdir /mnt/usbkey

But when I attempted mount /mnt/usbkey the error message I saw was
mount: wrong fs type, bad option, bad superblock on /dev/sda, or
too many mounted file systems.

I would appreciate any help. Thanks.
 
Old 10-18-2004, 07:08 PM   #2
LavaDevil94
Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
Try replacing /dev/sda with /dev/sda1.
 
Old 10-18-2004, 07:24 PM   #3
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Original Poster
Rep: Reputation: 30
LavaDevil94, You're terrific and I thank you SO much. Big Help... Many thanks.

I love that little Memory key.

For the purpose of learning I'd love to know, how did you know I should include a "1" after the name

/dev/sda1 vs /dev/sda


Thanks again!

 
Old 10-21-2004, 09:02 AM   #4
MBH
Member
 
Registered: Sep 2003
Location: Kuwait
Distribution: Slack 10.0 @ Kernel 2.4.27
Posts: 63

Rep: Reputation: 15
Hi

Fire your favorite console and type :: fdisk -l

That should list all attached (even non-mounted) devices and it will print the name of the device.

** I'm using the 2.6.9 kernel, which changed the USB device names from SDA to UBA, which you will see at the end -> /dev/uba1, that's my device name **

Here's mine ::

root@MBH:~# fdisk -l

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 3611 29001136+ 83 Linux
/dev/hda2 3611 3735 1000219+ 82 Linux swap
/dev/hda3 3736 4865 9076725 c W95 FAT32 (LBA)

Disk /dev/hdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 19929 160079661 c W95 FAT32 (LBA)

Disk /dev/uba: 1024 MB, 1024966656 bytes
32 heads, 63 sectors/track, 993 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes

Device Boot Start End Blocks Id System
/dev/uba1 1 992 999813+ 6 FAT16
root@MBH:~#
 
Old 10-21-2004, 10:13 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Quote:
Originally posted by lel800
For the purpose of learning I'd love to know, how did you know I should include a "1" after the name

/dev/sda1 vs /dev/sda
Since it's been two days and no one's answered you...

For device names what you have as sda is scsi device a (first one used)
and that is just the device. Partition numbers start at 1, and since it's a
16 MB drive, it's not likely to have more than one partition. Unless you
partitioned it, most of the time they come with only one partition.
 
Old 10-21-2004, 02:25 PM   #6
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by MBH
Hi

Fire your favorite console and type :: fdisk -l

That should list all attached (even non-mounted) devices and it will print the name of the device.

Thanks for your suggestion.

I tried typing "fdisk -l" in the shell/terminal as you suggested and the response was "command not found"
 
Old 10-21-2004, 02:27 PM   #7
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Chinaman
For device names what you have as sda is scsi device a (first one used)
and that is just the device. Partition numbers start at 1, and since it's a
16 MB drive, it's not likely to have more than one partition. Unless you
partitioned it, most of the time they come with only one partition.
Thanks for taking the time to explain that to me. Yes that's good to know.
 
Old 10-21-2004, 07:02 PM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Quote:
Originally posted by lel800
Thanks for your suggestion.

I tried typing "fdisk -l" in the shell/terminal as you suggested and the response was "command not found"
It's probably not in your $PATH in RedHat. Issue "/sbin/fdisk -l" instead.
NB You must be root for this command to work...
 
Old 10-21-2004, 07:30 PM   #9
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Original Poster
Rep: Reputation: 30
Thanks for your response. In the shell I entered ...
Code:
/sbin/fdisk -l
And the output was
Code:
Cannot open /dev/hda
Cannot open /dev/hdb
I'm curious about what this means.
 
Old 10-21-2004, 07:31 PM   #10
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Original Poster
Rep: Reputation: 30
Wait - Disregard my last post...I wasn't root....
 
Old 10-21-2004, 07:37 PM   #11
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Original Poster
Rep: Reputation: 30
Yes I see the information about the two hard drives. And I understand that fdisk is a utility that will assist with partitioning the drives.
But I don't see any information there about my scsi, my usb.

But thank you though. That was interesting.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Usb memory key problem mtb Linux - Software 6 09-02-2005 01:00 PM
Backing up to USB Memory Key ppuddick Linux - Enterprise 1 01-21-2005 05:46 PM
USB memory key installation jcai Linux - General 6 10-18-2004 05:08 PM
USB memory key hangs boot enryfox Linux - Hardware 4 07-18-2004 04:04 AM
Lexar USB Memory Key infurn Linux - Hardware 12 08-18-2003 01:40 AM


All times are GMT -5. The time now is 06:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration