LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2004, 08:14 AM   #1
theonlylivinggo
Member
 
Registered: Jan 2004
Posts: 48

Rep: Reputation: 15
Is anyone using "Flash Memory" sticks?


I've got a SanDisk Cruzer 128mb flash memory stick that I plug into the usb port. I'm on RH 9.0. It recognizes the memory (the stick lights up), but I don't see it anyplace (like a hardware icon on the desktop of Gnome or ???).
I'm wondering if anyone's working with flash mem., and if so, what their workflow (read/write/remove from sys) is.
thank you all.
Cheers.
Scott
 
Old 02-15-2004, 08:55 AM   #2
swobodin
LQ Newbie
 
Registered: Feb 2004
Distribution: Fedora Core 3 , Knoppix 3.7 re-hackked, Kanotix, Ubuntu, Debian
Posts: 6

Rep: Reputation: 0
The mine perfectly works:

Code:
mkdir /mnt/usb && mount -t vfat /dev/sda1 /mnt/usb
 
Old 02-15-2004, 09:00 AM   #3
theonlylivinggo
Member
 
Registered: Jan 2004
Posts: 48

Original Poster
Rep: Reputation: 15
I'll try that. Muchas gracias.
 
Old 02-15-2004, 09:05 AM   #4
theonlylivinggo
Member
 
Registered: Jan 2004
Posts: 48

Original Poster
Rep: Reputation: 15
I just tried it and got the error message:
mount: /dev/sda1 is not a valid block device

don't know what this means, but I'll be working on it. At least you pointed me in the right direction.
Cheers.
 
Old 02-15-2004, 09:52 AM   #5
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,872

Rep: Reputation: 88
Mine mounts as /dev/sda.
Check "fdisk -l" with the USB disk plugged in. Mine lists a bunch of bogus partitions, but the main device works. If I have been using other usb devices the stick may show up as /dev/sdb.
If you can mount it and list the contents you are good. If not, you may be missing a usb mass-storage kernel module or such. That should be easy to add.
Good Luck.
 
Old 02-15-2004, 09:58 AM   #6
theonlylivinggo
Member
 
Registered: Jan 2004
Posts: 48

Original Poster
Rep: Reputation: 15
dumbass question #1: is fdisk a command? since when I type "fdisk -1" from a terminal prompt I get told " bash: fdisk: command not found"
I know...but I don't know all these Linux commands yet. And there isn't really a command to type that will tell me all the commands I need to know. I've linked to the online Man doc, but that's alot of reading...which I'm doing, albeit slowly.
Anyway, if you have a "more basic" level to instruct at, I'm there.
Scott
 
Old 02-15-2004, 10:05 AM   #7
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,872

Rep: Reputation: 88
You need to be root to use the fdisk command.
First type "su" in the terminal and your root password when prompted.
You will then be logged in as the root user and should be able to run the "fdisk -l" command.

EDIT: And that's -l (lower case L) not -1 (a number one).

Last edited by 2damncommon; 02-15-2004 at 10:07 AM.
 
Old 02-15-2004, 11:15 AM   #8
theonlylivinggo
Member
 
Registered: Jan 2004
Posts: 48

Original Poster
Rep: Reputation: 15
I was and am in root. The command apparently doesn't exist on my Red Hat 9.0. I do a man on it and see what it is/does, but if I try to use the command I keep getting that same stupid message.
When I type which fdisk it doesn't find a file with that name.
Any suggestions for getting the rest of my commands enabled on a new install would be appreciated.
 
Old 02-15-2004, 11:42 AM   #9
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,872

Rep: Reputation: 88
The command "which fdisk" will show the full path if it is installed. You may need to type the full path. Probably "/sbin/fdisk -l". It would be odd to have the man page installed without the program, but if that is the case you just need to install it.
 
Old 02-15-2004, 11:51 AM   #10
theonlylivinggo
Member
 
Registered: Jan 2004
Posts: 48

Original Poster
Rep: Reputation: 15
apparently my problem is that I don't have a path to /sbin in my .bash_profile. I'll check that. I just cd'd over to /sbin and fdisk is there and I can run it. What I get is "can't open hdc and can't open hdd" That's it.
Is there a command that displays all the hardware on the system, or do you know where I might find it in the GUI (I'm using Gnome).
I know this is pretty basic stuff, but I've only been at it since Friday.
Thanks for your help/patience.
Scott
 
Old 02-15-2004, 12:03 PM   #11
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,872

Rep: Reputation: 88
There is lots of system info in the /proc directory.
Try "cat /proc/cpuinfo" for example.
I find my usb drive in /proc/scsi/usb-storage-0/1 on my Debian system.
 
Old 02-15-2004, 01:33 PM   #12
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 540

Rep: Reputation: 32
Usb pendrives require a scsi driver to be loaded into Ram to work
Check first what scsi module your kernel loads (sg or sd) and according to that try different devices such as sgx or sometimes srx.
Hope this helps
Ciao
 
Old 02-16-2004, 02:17 AM   #13
sudz1979
LQ Newbie
 
Registered: Feb 2004
Posts: 2

Rep: Reputation: 0
What if the USB pen drive is inserted and the 'fdisk -l' output does not show any listing of the device. Please note, the usb-storage module is also insmod'd.

What does one do in that case ?
 
Old 02-16-2004, 09:06 AM   #14
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,872

Rep: Reputation: 88
Quote:
What if the USB pen drive is inserted and the 'fdisk -l' output does not show any listing of the device.
Check your kernel modules with "lsmod". You should have a scsi module (if a CDRW drive is working you do have it), and a usbcore module. I have noticed the modules may have slightly different names either as versions change or by distro.
Another way to check to see if the drive is seen at all is with the "cdrecord --scanbus" command. It will display your CDRW drive and hopefully your USB drive.
 
  


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
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 04:07 PM
linux "sticks" every couple of seconds GameMusicMaker Linux - Hardware 2 06-20-2004 10:42 AM
"Undeleting" data using grep, but get "grep: memory exhausted" error SammyK Linux - Software 2 03-13-2004 04:11 PM
wvdial connects but "connecting to ..." window sticks palanu7 Linux - Networking 1 02-04-2002 11:09 PM


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