LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-22-2005, 08:03 AM   #1
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Rep: Reputation: 15
how can i access partitioned USB-flash?


Hi!
I've got USB-flash (TakeMS 128), it was already partitioned, when i bought it. Under Windows it's automatically detected as second floppy (1.44 MB) drive and USB storage device (about 120 MB).
Under Linux i have no problem mounting biggest partition (/dev/sda1), but i've got no idea how to access the one that is size of a floppy disk?

Maybe the following will help (it's fdisk -l /dev/sda1 output):

Disk /dev/sda1: 124 MB, 124502016 bytes
16 heads, 32 sectors/track, 474 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

Device Boot Start End Blocks Id System
/dev/sda1p1 ? 3749905 4813258 272218546+ 20 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(356, 97, 46) logical=(3749904, 3, 15)
Partition 1 has different physical/logical endings:
phys=(357, 116, 40) logical=(4813257, 14, 19)
Partition 1 does not end on cylinder boundary.
/dev/sda1p2 ? 2598017 3650705 269488144 6b Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(288, 110, 57) logical=(2598016, 0, 11)
Partition 2 has different physical/logical endings:
phys=(269, 101, 57) logical=(3650704, 1, 10)
Partition 2 does not end on cylinder boundary.
/dev/sda1p3 ? 1052714 3783892 699181456 53 OnTrack DM6 Aux3
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(345, 32, 19) logical=(1052713, 10, 16)
Partition 3 has different physical/logical endings:
phys=(324, 77, 19) logical=(3783891, 3, 15)
Partition 3 does not end on cylinder boundary.
/dev/sda1p4 * 2723883 2723924 10668+ 49 Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(87, 1, 0) logical=(2723882, 2, 16)
Partition 4 has different physical/logical endings:
phys=(335, 78, 2) logical=(2723923, 13, 8)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order
 
Old 12-22-2005, 08:37 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
'fdisk -l /dev/sda1' looks for a partition table WITHIN the first partition. This is why you get that awfully confusing output, because there is no partition table.

Try 'fdisk -l /dev/sda' to read the partition table from the whole block device.
 
Old 12-22-2005, 10:29 AM   #3
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
fdisk -l /dev/sda displays the following:

Disk /dev/sda: 124 MB, 124518400 bytes
16 heads, 32 sectors/track, 475 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 475 121584 6 FAT16

It still doesn't make any sense, where is the second partition?
 
Old 12-22-2005, 11:12 AM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
According to fdisk, your drive has only one partition, that is ~128 MB in size. The partition /dev/sda1 occupies 124518400 bytes (475*262144), which is the size of your disk.

Under windows, are you certain this floppy disk corresponds to a partition on the drive? Is it possible that some software you installed with the disk created a "virtual floppy"?
 
Old 12-22-2005, 01:54 PM   #5
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
I didn't installed any additional software under windows. The floppy drive appears on other computers as well with different versions of windows. I'm not sure, but i think it's a partition. I need to get access to it under linux, but i don't know how.
 
Old 12-22-2005, 02:14 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
There is only one partition on the drive you showed me just now. Also, without special software, multiple partitions on a USB drive would just show up as more partitions under "removable media" in WinXP.
 
Old 12-22-2005, 02:20 PM   #7
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
If so, where does the virtual floppy comes from every time?!
 
Old 12-22-2005, 02:26 PM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The only think I could think of would be the BIOS has a USB "Legacy Emulation" setting that allows you to boot from USB drives as if they were floppy disks.
 
Old 12-22-2005, 03:13 PM   #9
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
But other USB flash doesn't behave in this way!
 
Old 12-22-2005, 04:32 PM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Then I am not sure what to tell you. What I can tell you is that your drive has only one partition on it, unless it has multiple LUNs, like a multi-card cardreader. If so, enable multi-LUN support in your kernel for that.
 
Old 12-22-2005, 06:53 PM   #11
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
Hmmm...
Now it starts to make any sense, i'll try to work it out!
Thank You!
 
  


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
how to access windows folders from linux on a partitioned drive nickiv Linux - General 2 03-24-2005 03:37 AM
udev, USB Flash Drives, and usb-mount talkingwires Debian 13 11-07-2004 12:15 PM
external partitioned usb hard disk mr_a_ali Linux - Hardware 2 08-14-2004 10:22 AM
USB flash pen/stick/card cannot access mudelf Linux - Hardware 5 09-26-2003 05:58 AM
How to access a USB flash drive captainpicard Linux - Hardware 1 04-20-2003 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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