LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-21-2005, 11:31 PM   #16
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30

I didnt know you had to partition a flashdrive, Just so were on the same page, Were talking about the USB drives you plug in and can remove quickly, right?
So I dont need the sda2, sda3 or sda4?

"Just something you probably don't know, the /dev/ directory is a dinamic one, if your using kernel 2.6 this directory is managed by udev, and udev creates links to devices dinamicaly, so if you just have one flashdrive connect don't espect having more than sda1."
I have no idea what that means??

Thanks for the help and I will keep working on this, I need this to work.
 
Old 04-22-2005, 12:01 AM   #17
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Sure you can partition FlashDrives.
http://www.ibiblio.org/pub/Linux/doc...OWTO.html#ext2

I don't have a flashdrive but are they usually formatted FAT12?

KC
 
Old 04-22-2005, 12:15 AM   #18
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
I did not know you could or had to partition a flashdrive and as for the FAT12, I have no idea where that came from.
Should I try mount -t fat12 /dev/sda1 /mnt/flashdrive?
 
Old 04-22-2005, 07:54 AM   #19
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.2 and Slackware Arm
Posts: 479

Rep: Reputation: 44
Try cfdisk /dev/sda, when I did it complained about partitions overwriting each other or something, I don't remember exactly.

Once I used cfdisk to set up a fat32 partition all was fine, except that Windows couldn't read it and always wanted to format it.

Perhaps it was a brand specific problem, remember mine was from Apacer. Since then I have bought a Transcend thumb drive and had no problems using it with Win and Linux.

HTH
 
Old 04-22-2005, 04:10 PM   #20
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
I did cfdisk /dev/sda and the FS type was set to fat12 so I changed it to linux and wrote it, rebooted, tried to mount it and I keep getting fs type not supported by kernel, I tried w95 FAT32, and some others and same message. I did not see a vfat in the list. Maybe the drive needs a driver and can only be used in windows or it s defective, I dont know. What else can I try?
Thanks.
 
Old 04-23-2005, 03:46 PM   #21
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
Any other Ideas?
 
Old 04-24-2005, 01:57 AM   #22
k1ll3r_x
Member
 
Registered: Sep 2004
Location: Laredo, TX
Distribution: Debian 11
Posts: 164

Rep: Reputation: 30
try /dev/sdc1
i think thats mine here
 
Old 04-24-2005, 02:04 AM   #23
k1ll3r_x
Member
 
Registered: Sep 2004
Location: Laredo, TX
Distribution: Debian 11
Posts: 164

Rep: Reputation: 30
i think im right, because this is my table when the device aint connected

Code:
root@virtz:~# fdisk -l

Disk /dev/sda: 200.0 GB, 200049647616 bytes
240 heads, 63 sectors/track, 25841 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         805     6085768+  1b  Hidden W95 FAT32
/dev/sda2             806       23888   174507480   17  Hidden HPFS/NTFS
/dev/sda3   *       23889       25841    14764680   83  Linux
root@virtz:~#
and as you might see its only my partitions, now if i connect my usb drive, this comes out
Code:
root@virtz:~# fdisk -l

Disk /dev/sda: 200.0 GB, 200049647616 bytes
240 heads, 63 sectors/track, 25841 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         805     6085768+  1b  Hidden W95 FAT32
/dev/sda2             806       23888   174507480   17  Hidden HPFS/NTFS
/dev/sda3   *       23889       25841    14764680   83  Linux

Disk /dev/sdc: 260 MB, 260046848 bytes
32 heads, 32 sectors/track, 496 cylinders
Units = cylinders of 1024 * 512 = 524288 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1         496      253936    6  FAT16
as you might see the slight difference is at the very bottom, on this part
" Device Boot Start End Blocks Id System"
/dev/sdc1 * 1 496 253936 6 FAT16
so just try to find a way to mount it on a sata and ill really appreciate
 
Old 04-24-2005, 11:17 AM   #24
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
When I do fdisk -l after inserting my flashdrive it shows it as sda1:

Device Boot Start End Blocks Id System
/dev/hda1 * 1 9605 77152131 83 Linux
/dev/hda2 9606 9729 996030 82 Linux swap

Disk /dev/sda: 32 MB, 32768000 bytes
8 heads, 16 sectors/track, 500 cylinders
Units = cylinders of 128 * 512 = 65536 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 500 31992 b W95 FAT32

No matter how I try to mount it, with any filesystem type or running fdisk and changing the FS type to anything, I consistently get the message, " you must specify filesystem type " and the light on the flashdrive blinks, except when I use usbfs, like " mount -t usbfs /dev/sda1 /mnt/flashdrive " then it mounts but I cant do anything with the drive. I do dmesg and it shows the drive there and when I take it out of the usb port it show it removed so I am pretty sure the USB ports are working. I guess slackware does not support USB drives by default or something, kinda strange.

Last edited by M$ISBS; 04-24-2005 at 11:32 AM.
 
Old 04-24-2005, 12:12 PM   #25
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.2 and Slackware Arm
Posts: 479

Rep: Reputation: 44
Here is what I get from fdisk -l /dev/sda after plugging my drive in:
Code:
Disk /dev/sda: 32 MB, 32358400 bytes
1 heads, 62 sectors/track, 1019 cylinders
Units = cylinders of 62 * 512 = 31744 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           2        1019       31558    c  W95 FAT32 (LBA)
I don't know what the (LBA) part means, maybe that is the important bit.

Also in my fstab the device is listed as:
Code:
/dev/sda1        /mnt/thumb       auto        noauto,users,rw,umask=000  0   0
Hope this might help
 
Old 04-24-2005, 12:25 PM   #26
k1ll3r_x
Member
 
Registered: Sep 2004
Location: Laredo, TX
Distribution: Debian 11
Posts: 164

Rep: Reputation: 30
maybe we need a lil research on this, see if slackware supports, i have 10.1 and might be that u need some drivers or something
 
Old 04-24-2005, 01:32 PM   #27
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
The LBA thing has something to do with the type of drive, but i dont know if it applies in the case of a USB drive.
It may be that this thing only works in windows. I might buy a cheap one and see if that one works.
 
  


Reply



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
Apache2 cannot execute cgi files on a USB drive bhoult Linux - Software 2 07-11-2005 10:19 AM
Backing up files with a USB Extrenal hard drive linuxmarine Red Hat 13 05-26-2005 08:33 PM
USB Drive - Mounted OK, but files aren't recognized Dr3n Linux - Hardware 6 03-14-2005 06:00 PM
USB Hard Drive mounted: No files shown. mooreted Slackware 3 12-06-2004 06:51 PM
How do you burn iso files to usb cd-rw drive ??? pleasehelpme Linux - Newbie 0 12-20-2003 02:05 AM

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

All times are GMT -5. The time now is 06:52 PM.

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