LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Using a USB Memory Key (https://www.linuxquestions.org/questions/linux-hardware-18/using-a-usb-memory-key-244357/)

lel800 10-18-2004 05:46 PM

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.

LavaDevil94 10-18-2004 06:08 PM

Try replacing /dev/sda with /dev/sda1.

lel800 10-18-2004 06:24 PM

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!

:)

MBH 10-21-2004 08:02 AM

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:~#

Bruce Hill 10-21-2004 09:13 AM

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.

lel800 10-21-2004 01:25 PM

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"

lel800 10-21-2004 01:27 PM

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.

Bruce Hill 10-21-2004 06:02 PM

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...

lel800 10-21-2004 06:30 PM

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.

lel800 10-21-2004 06:31 PM

Wait - Disregard my last post...I wasn't root....

lel800 10-21-2004 06:37 PM

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.


All times are GMT -5. The time now is 03:41 AM.