LinuxQuestions.org
Register a domain and help support LQ
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 08-24-2004, 02:03 PM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Memory Flash Stick in Linux and Windows XP


This is an odd problem, folks!

I mounted the USB memory stick (64 MB) and it works fine. When I go to my usbstick directory, /mnt/usbstick/, it works. So I copy my files onto there and it works fine. I type 'ls' in the /mnt/usbstick/ directory and my files are there. Cool!

I take my memory stick to work and plug it into my computer (Windows XP) and it recognizes the memory stick. I then open the drive and NOTHING is on there! I copy some files onto the memory stick from Windows XP. So after work, I take it back home and plug it back into my Linux and the Linux files are there but NO Windows XP files are there! What's going on??!?!? Are these operating systems not wanting to read each others files????
 
Old 08-24-2004, 02:17 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,142

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
The memory stick is not being mounted. The floppy and CDROM drives are configured for supermount so that you do not explicitly need to use the mount / umount.

For me it never really worked for my memory stick and I don't use supermount or let kudzu detect it. So therefore I created a desktop shortcut that mount / umounts the stick.

Do you have a /etc/fstab line for the memory stick?
 
Old 08-24-2004, 03:02 PM   #3
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by michaelk
The memory stick is not being mounted. The floppy and CDROM drives are configured for supermount so that you do not explicitly need to use the mount / umount.

For me it never really worked for my memory stick and I don't use supermount or let kudzu detect it. So therefore I created a desktop shortcut that mount / umounts the stick.

Do you have a /etc/fstab line for the memory stick?
Sorry, I should be more specific than general.

I went to a website and they told me to add lines in my /etc/fstab, which I did.
Yes, I do have a /etc/fstab line for the memory stick. I am at work so I will copy and paste later tonight when I get home. So maybe I didn't exactly MOUNT it, per se, but it is in the /mnt/usbstick/ directory.

I'm just confused as to why the files ARE being copied onto the memory stick, but neither operating system will acknowledge the other's files on the memory stick. Really weird!

Last edited by Micro420; 08-24-2004 at 03:22 PM.
 
Old 08-24-2004, 04:17 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,142

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Unless the filesystem is mounted data is not being written to the usbstick.

In a nutshell all filesystems are part of a big tree. Unlike windows there are not seperate c: d: e: drives. Everything falls under / (root).

Creating a directory called /mnt/usbstick is no different then creating a directory called /home/username/mp3_files. Either way you can create, copy or move files etc. etc. However, since /mnt is usually not a seperate partition the data is actually written to the / partition.

But when you mount the memory stick you are attaching the filesystem i.e. data on the stick to the directory. So now /mnt/usbstick is actually the contents of the device and not the directory. The actual files written to the directory will disappear until the device is unmounted.


Last edited by michaelk; 08-24-2004 at 04:22 PM.
 
Old 08-24-2004, 04:41 PM   #5
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by michaelk
Unless the filesystem is mounted data is not being written to the usbstick.

In a nutshell all filesystems are part of a big tree. Unlike windows there are not seperate c: d: e: drives. Everything falls under / (root).

Creating a directory called /mnt/usbstick is no different then creating a directory called /home/username/mp3_files. Either way you can create, copy or move files etc. etc. However, since /mnt is usually not a seperate partition the data is actually written to the / partition.

But when you mount the memory stick you are attaching the filesystem i.e. data on the stick to the directory. So now /mnt/usbstick is actually the contents of the device and not the directory. The actual files written to the directory will disappear until the device is unmounted.
Ah, I see what you're saying. So basically the /mnt/usbstick/ may not even actually be the physical memory stick, rather, just another directory on the hard drive. Bummer.

I will post my /etc/fstab/ when I get home. I think this will show you if my Linux is really detecting the physical USB memory stick.
 
Old 08-25-2004, 12:08 AM   #6
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
here is my fstab. Can anyone see what's wrong with it??

/dev/hdb1 / ext3 defaults 1 1
/dev/hdb7 /back2 ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
/dev/hdb6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=iso8859-1,codepage=850,umask=0 0 0
none /mnt/cdrom2 supermount dev=/dev/hdd,fs=auto,ro,--,iocharset=iso8859-1,codepage=850,umask=0 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,sync,codepage=850,umask=0 0 0
/dev/hda1 /mnt/windows ntfs iocharset=iso8859-1,ro,umask=0 0 0
none /proc proc defaults 0 0
/dev/hdb5 swap swap defaults 0 0
/dev/sda1 /mnt/usbstick vfat user,noauto,umask=0 0 0
/dev/sda2 /mnt/hd auto user,iocharset=iso8859-1,kudzu,codepage=850,noauto,umask=0,exec 0 0
 
Old 08-25-2004, 12:11 AM   #7
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Nevermind guys, I think I solved my own problem!

I just type

Code:
mount /mnt/usbstick
and it works! I know it works because I can see my Windows XP files on the flash memory stick.
 
  


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
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 06:39 PM
Help - USB flash memory stick and hard drive munkus.agb Suse/Novell 3 12-15-2004 06:51 AM
USB memory stick password protected under linux and windows? bleargh Linux - Software 3 10-25-2004 10:16 AM
flash memory stick rilians Linux - Hardware 3 08-27-2004 12:11 AM
How do I mount a USB flash memory stick? brian Linux - Newbie 3 02-07-2004 03:49 PM


All times are GMT -5. The time now is 05:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration