LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-02-2003, 04:14 PM   #16
Phrater
LQ Newbie
 
Registered: Jul 2003
Distribution: 8.0 and 9.0 RH
Posts: 11

Rep: Reputation: 0

Got it. Anyone ever heard of a Manufacturer sending a
motherboard with usb defaulted to disabled? Thank You Aopen!!
Thanks for your quick reply jpbarto... a very simple:
> mount -t vfat /dev/sda1 /mnt/JumpDrive

after having:

> touch /mnt/JumpDrive

Now I just need to find out why I get a "generic error"
when trying to write to it. Prolly something to do with
having formatted it in win2k

Thanks Again!
 
Old 07-02-2003, 04:16 PM   #17
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
you're exactly right... the filesystem used by win2k and xp (is it some newer form of ntfs?) is not yet writable by the linux kernel module for that filesystem type. You can read it all you want but you can't write to it. I would suggest formating the drive with a fat32 filesystem.
 
Old 07-02-2003, 05:54 PM   #18
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Quote:
my device is mounted by mounting /dev/sda1... someone else in this forum mounts at /dev/sdc... looks like your mileage may vary. Is it in the usb log files what device is lined up with the inserted flash drive?
just type "dmesg"
it is the log from the kernel, you should see you usb drive somewhere and the device it is using.
My flash drive is /dev/sdc because I have a scsi Zip at /dev/sda and a scsi Jaz at /dev/sdb.

Last edited by Half_Elf; 07-02-2003 at 05:56 PM.
 
Old 07-02-2003, 06:26 PM   #19
Phrater
LQ Newbie
 
Registered: Jul 2003
Distribution: 8.0 and 9.0 RH
Posts: 11

Rep: Reputation: 0
Quote:
Originally posted by jpbarto
you're exactly right... the filesystem used by win2k and xp (is it some newer form of ntfs?) is not yet writable by the linux kernel module for that filesystem type. You can read it all you want but you can't write to it. I would suggest formating the drive with a fat32 filesystem.
You're right about the ntfs in win2k, but when I formatted the
JumpDisk I used FAT

(you have the option to use FAT, FAT32, or NTFS)

I think I'll try to format it using vfat and see if it works any better.
 
Old 07-02-2003, 11:26 PM   #20
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
What device name you get depends on what other SCSI disks you have in your system. If you just have IDE disks, you get the first free scsi device file, /dev/sda. The names get assigned first come, first serve. /dev/sda1 is then just the first -- and usually only -- partition on the drive.

Hope it helps,
mlp
 
Old 07-02-2003, 11:36 PM   #21
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
What device name you get depends on what other SCSI disks you have in your system.
I have never seen this written up but have suspected as much.
My USB drive (which I accessed first) is on /dev/sda while my digital camera (accessed second) is on /dev/sda1.
So any other USB devices would continue to claim higher device names?
 
Old 07-03-2003, 12:02 AM   #22
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
Actually, the letter gets incremented. The while USB drive is (like a disk) /dev/sda and the sda1 refers to partitions on there (like on the disks). The next device would then be /dev/sdb. I have just plugged in two USB drives and they are /dev/sda1 and /dev/sdb1. Here's what fdisk has to say about my drive:

Quote:
# fdisk /dev/sdb

Command (m for help): p

Disk /dev/sdb: 257 MB, 257949696 bytes
16 heads, 32 sectors/track, 984 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 983 251632 6 FAT16
hence /dev/sdb1. Just like with regular disks.

mlp
 
Old 07-03-2003, 12:09 AM   #23
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Hmm...
Ok back to theory number two.
Since I never access both devices at the same time, this is just how each device responds? If I did connect them both, one woud be sda and the other sdb?
 
Old 07-03-2003, 12:32 AM   #24
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
Yes. Only the ones which are connected at the same time "count". Your USB drive by itself is /dev/sda, your camera by itself /dev/sda1... plug them in both and the later one will be on b.

Here's one of my systems with 12 SCSI disks, which take the letters a through l,

Quote:
# fdisk /dev/sdl

Command (m for help): p

Disk /dev/sdl: 255 heads, 63 sectors, 22072 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/sdl1 1 11036 88646638+ fd Linux raid autodetect
/dev/sdl2 11037 22072 88646670 fd Linux raid autodetect
if I plug my USB drive there it becomes /dev/sdm1...

mlp
 
Old 07-03-2003, 08:13 AM   #25
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
'Nother question. I've been looking at ways to configure *something* that when I insert my flash drive, will recognize that A: a usb device has been inserted and B: will recognize that it is my flash drive (not a digital camera or external 40 GB HD) and will resultingly C: mount the appropriate device (whatever was assigned to the flash drive whether it be sda,b,c,...xyz) to the appropriate mount point.

I've looked at hotplugging for about 5 minutes and then my attention got diverted to something else (I forget what grabbed my attention... a pretty girl, an unattended beer, an abandoned half-full pack of cigarettes).
Is hotplugging capable of this?
 
Old 07-29-2003, 09:29 AM   #26
kronchev
LQ Newbie
 
Registered: Jul 2003
Distribution: Debian (sarge)
Posts: 17

Rep: Reputation: 0
/edit: ok i actually read the thread and now i am getting errors when i try dmesg. ti says it cant find a valid FAT filesystem. it tells me many times, in fact. so im going to copy everything off, format it, and then get everything back on. hope 2k doesnt do it wrong...


/edit2: *ahem* apparantly i dont have enough rights on my work computer to format REMOVABLE MEDIA


/edit3: A-HA!

my laptop crashed so i had to reboot anyway, i was in the middle of processing something, and thats why i didnt reboot before. went into my xp pro install, formatted the flash drive, got fat32 on it, booted back into linux, it got all the settings from fstab and mounted it correctly! w00t i'm not too

now to compile ACPI support so the fan doesnt always spin....


/edit4: FRIGGIN EH

it was fine in linux...

i put it on my 2k machine and put my files back on...

suddenly not everythings fitting, it says its 55 megs (its supposed to be 64, so realisticly, at least 60). I get what i can on, put it in linux...and i get the bad file system error again. wow.

Last edited by kronchev; 07-29-2003 at 10:11 AM.
 
Old 07-29-2003, 10:16 AM   #27
kronchev
LQ Newbie
 
Registered: Jul 2003
Distribution: Debian (sarge)
Posts: 17

Rep: Reputation: 0
Quote:
Originally posted by jpbarto
'Nother question. I've been looking at ways to configure *something* that when I insert my flash drive, will recognize that A: a usb device has been inserted and B: will recognize that it is my flash drive (not a digital camera or external 40 GB HD) and will resultingly C: mount the appropriate device (whatever was assigned to the flash drive whether it be sda,b,c,...xyz) to the appropriate mount point.

I've looked at hotplugging for about 5 minutes and then my attention got diverted to something else (I forget what grabbed my attention... a pretty girl, an unattended beer, an abandoned half-full pack of cigarettes).
Is hotplugging capable of this?

found this while trying to fix my problem: http://transitmount.sourceforge.net/
 
  


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
Linux Mini Distro Suggestion: Emulate USB Flash Disk layanto Linux - Software 4 04-25-2009 03:54 PM
USB flash disk taoweijia Linux - Hardware 2 12-28-2005 04:30 AM
USB flash disk help bakazer Solaris / OpenSolaris 1 06-24-2005 09:30 AM
USB Flash Disk zillah Fedora 3 05-22-2005 03:25 AM
USB flash disk. ValidiusMaximus Linux - Software 0 12-30-2004 02:45 PM

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

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