LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-11-2006, 11:44 PM   #16
DdOs
LQ Newbie
 
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Question


Quote:
Originally Posted by rjrouquette
Well, the good news is that there is nothing wrong with your thumb drive. Swapping USB ports is certainly worth a try but I don't think that it should make a difference.

I looked up the user's manual for your drive.
The manual says that it can be mounted with the command:
mount –a –t msdos /dev/sda1 /mnt/jetflash

root@CDC:~# mount -a -t msdos /dev/sda1 /mnt/USB
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


no... Still it's not working.. by the way.. i am not using any security program for my thumb drive..

rjrouquette, what can i do??
 
Old 03-11-2006, 11:49 PM   #17
DdOs
LQ Newbie
 
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by trumpet_tom
I don't know if you've got it working or not but it looks like your device is sda rather than sda1. I just looked this up to get my usb flash drive working and removing that 1 made all the difference.

tom
root@CDC:~# mount -a -t msdos /dev/sda /mnt/USB
mount: /dev/sda is not a valid block device


No, Tom.. i guess sda1 is OK.. Thank you very much for your suggestion... any more idea how to make this ThumbDrive working???
 
Old 03-11-2006, 11:53 PM   #18
DdOs
LQ Newbie
 
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by rjrouquette
I forgot to ask you a question.

Did you use a security program on your thumbdrive.

rjrouquette,

I only once tried to use my USB Drive for Windows XP (Professional Edition) Wireless Networking... Windows copied some files in Thumb.. and after that i didn't format the drive.. only I did is I deleted some files from my THUMB... thats it...

Thank You
 
Old 03-12-2006, 03:55 AM   #19
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
The first thing you should do is:
Code:
fdisk -l
This will show you all drives (even hard drives), and their partitions that linux can see.

The reason you should do this first is:
1. If linux can't see the drive/partition at the time you are trying to mount it (regardless of the 'dmesg' output), then the mount will fail.
2. It removes any uncertainty as to whether /dev/sda1 is truly the device file you should be using.

Please post output here if possible.

If linux can see the partition, but just not mount it, then I would repartition/reformat the thumb drive using fdisk or cfdisk in linux. It's possible that Windows did something wrong (or non-standard) when it formatted it that linux isn't liking. Of course, backup all your data using your XP machine before formatting the thing.

Step one is to repartition. To do that:
fdisk /dev/sda
Once in fdisk these are the relevant one-letter commands to use:
'p' to print partition information
'd' to delete a partition
'c' to create a partition
't' to change a partition's type
'w' to write/save changes

So go into fdisk with the command above. Use 'p' to show partition. Use 'd' to delete the partition. Use 'c' to create a new parititon (tell it you want primary partition, number 1). By default it will assign the partition a type-code for linux filesystem. To change that , type 'c', then when it prompts you for the filesystem code, type c again (this is to mark it as a fat32 partition with lba). Then type 'w' to write the changes to the partition table (commit/save them).

PLEASE be absolutely, positively sure that
a) You are working off your flash drive and not your hard drive. Note that SATA drives also use the /dev/sda, /dev/sdb, etc naming scheme.
b) Have all your data backed up (always plan for the worst).


After your are done creating the new partition, you can't mount/use it until you format it with the fat32 filesystem.
Typeing (as root):
Code:
mkfs.msdos -F 32 /dev/sda1
should do the trick

After that you should be able to mount/use/enjoy your flash drive.


Hope this helps. Let us know the results.

Last edited by WindowBreaker; 03-12-2006 at 03:58 AM.
 
Old 03-13-2006, 07:12 PM   #20
rjrouquette
LQ Newbie
 
Registered: Dec 2005
Location: Kenner, LA (Near New Orleans)
Distribution: Slackware 10.2
Posts: 6

Rep: Reputation: 0
I'll hold off until you try WindowBreaker's advice. It sounds good.
 
Old 03-16-2006, 06:09 PM   #21
DdOs
LQ Newbie
 
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Question

Sorry guys,, I am late... actually my UNIVERSITY exams were going on!! but within this week i will try WindowBreaker Suggested sollution!! thanx a lot to all of you to helping me a lot!!

Take Care

Keep in Tauch

DdOs
 
Old 03-16-2006, 07:19 PM   #22
DdOs
LQ Newbie
 
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Question

WindowBreaker,

I tried your way.. and the result is as follows:

root@CDC:/home/n4jib# fdisk -l

Disk /dev/sda: 65 MB, 65536000 bytes
3 heads, 42 sectors/track, 1015 cylinders
Units = cylinders of 126 * 512 = 64512 bytes

This doesn't look like a partition table
Probably you selected the wrong device.

Device Boot Start End Blocks Id System
/dev/sda1 ? 6175682 15235283 570754815+ 72 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(357, 116, 40) logical=(6175681, 2, 19)
Partition 1 has different physical/logical endings:
phys=(357, 32, 45) logical=(15235282, 0, 7)
Partition 1 does not end on cylinder boundary.
/dev/sda2 ? 1338806 16704110 968014120 65 Novell Netware 386
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(288, 115, 43) logical=(1338805, 2, 9)
Partition 2 has different physical/logical endings:
phys=(367, 114, 50) logical=(16704109, 0, 28)
Partition 2 does not end on cylinder boundary.
/dev/sda3 ? 14840330 30205633 968014096 79 Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(366, 32, 33) logical=(14840329, 0, 12)
Partition 3 has different physical/logical endings:
phys=(357, 32, 43) logical=(30205632, 0, 25)
Partition 3 does not end on cylinder boundary.
/dev/sda4 ? 22902232 22902672 27749+ d Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(372, 97, 50) logical=(22902231, 1, 5)
Partition 4 has different physical/logical endings:
phys=(0, 10, 0) logical=(22902671, 2, 21)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

Disk /dev/hda: 80.0 GB, 80059342336 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1530 12289693+ c W95 FAT32 (LBA)
/dev/hda2 1531 9732 65882565 f W95 Ext'd (LBA)
/dev/hda5 1531 3315 14337981 b W95 FAT32
/dev/hda6 3316 5227 15358108+ b W95 FAT32
/dev/hda7 5228 7139 15358108+ b W95 FAT32
/dev/hda8 7140 7245 851413+ 83 Linux
/dev/hda9 7246 7310 522081 82 Linux swap
/dev/hda10 7311 7375 522081 82 Linux swap
/dev/hda11 7376 9732 18932571 83 Linux

Now, I guess Linux can see but can't IDENTIFY my USB Drive properly.. am I right?? Now what to do NEXT?? any other way?? Waiting for your Reply...

rjrouquette, Any suggestion??

Thank You

DdOs

Last edited by DdOs; 03-16-2006 at 07:20 PM.
 
Old 03-19-2006, 05:14 PM   #23
rjrouquette
LQ Newbie
 
Registered: Dec 2005
Location: Kenner, LA (Near New Orleans)
Distribution: Slackware 10.2
Posts: 6

Rep: Reputation: 0
Have you tried reformatting the drive on your windows machine?
 
Old 03-31-2006, 01:41 PM   #24
donbrock
LQ Newbie
 
Registered: Oct 2003
Location: Maryland
Distribution: Mandrake 9.1
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by DdOs
Hi..

I am a nwebie in Linux.. I am using Slackware 10.2 with Dropline GNOME 2.12.2 !! I want to use my USB Flash Drive with linux, How I can do that?? Can anyone please, help me??

Thank You!!

DdOs

------------------------------------------------
Let the Last One to be Known, Better than YOU!!!
With Mandrake, I plug in my USB Drive, an icon appears on my screen and I click on it. Konqueror pops up showing my files and that's it.
 
Old 03-31-2006, 02:22 PM   #25
den15
Member
 
Registered: Oct 2005
Distribution: zenwalk
Posts: 88

Rep: Reputation: 15
can you post your /etc/fstab file? and do you use default (2.4) kernel?
 
Old 03-31-2006, 02:32 PM   #26
den15
Member
 
Registered: Oct 2005
Distribution: zenwalk
Posts: 88

Rep: Reputation: 15
can you mount normal (non flash) usb stick? my normal usb drive is /dev/sdc (sda is my SATA drive) and /dev/sdc1 is my usb flash drive. try this, make two directories. one /mnt/usb for normal usb drive, and second /mnt/usb_flash for usb flash drive. than add this lines to your /etc/fstab file:

/dev/sdc /mnt/usb vfat defaults,sync,rw,user,auto 0 0
/dev/sdc1 /mnt/usb_flash vfat defaults,sync,rw,user,auto 0 0
 
Old 03-31-2006, 02:57 PM   #27
den15
Member
 
Registered: Oct 2005
Distribution: zenwalk
Posts: 88

Rep: Reputation: 15
yes, one more thing. you need to load module for usb-storage support. just uncomment line with '/sbin/modprobe usb-storage' in /etc/rc.d/rc.modules file. and if you have done everything what i sad before, then for the first time (before reboot) you have to mount your drives with command mount /mnt/usb (or /mnt/usb_flash). after reboot it should work automatically becouse of auto option in fstab file. i mean you can just click on the usb icon and it should work automatically.
if you still have problems after that, then try to upgrade on 2.6 kernel. i am not sure whether i achive to get my usb flash drive to work with default kernel. can't remember...

Last edited by den15; 03-31-2006 at 03:00 PM.
 
  


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 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
lost writing ability on usb-stick / not possible with protocol "drives" - how to fix? ungua SUSE / openSUSE 3 11-24-2004 08:11 PM
"Unable to open USB device "usb://hp/LaserJet%201000": No such device" lordshipmayhem Mandriva 2 08-08-2004 04:56 PM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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