Re: Access a USB drive from Linux and Windows

From: Dances With Crows (danSPANceswitTRAPhcrows_at_usa.net)
Date: 11/13/03


Date: 13 Nov 2003 05:55:11 GMT

On 12 Nov 2003 19:59:46 -0800, R. Hixon staggered into the Black Sun and
said:
> I want to be able to attach a USB drive to Red Hat Linux 8.3

Gonna be tough, since Redhat 8.3 doesn't exist.

> write files to it and then be able to take the USB drive to a Windows
> machine and read the files.

Shouldn't be a problem; USB Mass Storage devices that follow specs are
well-supported and so are FAT32 filesystems.

> I have a USB drive and I've been trying to achieve this goal without
> success. The drive works because I have been able to access it from
> Windows

So what happens when you try to mount it under Linux?

> tried formatting a 31 MB partition on partition 1 using Windows and
> then taking it to Linux. Linux wouldn't let me mount the volume.

What was the output from dmesg when you tried?

> Windows wouldn't let me partition the entire drive as a FAT partition.

If the space is smaller than 2G, it should be FAT16 (type 0x06), larger
than 2G but smaller than 8G, it should be FAT32 (type 0x0b), if it's
larger than 8G, it should be FAT32-LBA (type 0x0c). If you get the
types wrong, 'Doze can get annoyed and randomly scribble on your data.

> I tried using Linux fdisk and mkfs -t msdos /dev/sda1. That resulted
> in error "Attempting to create a too large file system". Any ideas?

mkdosfs -F32 /dev/NNN on partitions larger than 2G, since mkdosfs uses
FAT16 by default. HTH,

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
http://www.brainbench.com     /  "He is a rhythmic movement of the
-----------------------------/    penguins, is Tux." --MegaHAL


Relevant Pages

  • Re: network adapter detection problem
    ... This one is for Fedora users. ... The floppy drive I got with the NIC includes driver for linux. ... > Nautilus was unable to mount floppy drive. ... I believe floppy drive has FAT system which should be ok with redhat, ...
    (Fedora)
  • Re: used to windows
    ... for starters i would rather use linux as a simple home user, ... Unix has a unified file system structure, ... a mount point. ... referred to as the file system's root directory. ...
    (alt.os.linux.redhat)
  • [SLE] Buslink USB 2.0 CD-Recorder
    ... Mar 24 12:19:30 linux kernel: subfs: unsuccessful attempt to mount media ...
    (SuSE)
  • Re: Difficulties dual-booting 2 Linux OSs - esp. re. LILO
    ... with the idea of changing over to Linux for quite a while now, ... I rebooted and used the mount command, ... proc on /proc type proc ... /dev2/root is not a valid block device ...
    (comp.os.linux.setup)
  • Re: writing to FAT32
    ... r> How safe is it to write from Linux to a FAT32 partition wherein Windows ... But am I correct to assume the VFAT ... *tries* to prevent this by locking the media on mount. ...
    (comp.os.linux.misc)