LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-29-2003, 10:18 PM   #1
kronchev
LQ Newbie
 
Registered: Jul 2003
Distribution: Debian (sarge)
Posts: 17

Rep: Reputation: 0
PCMCIA flash disk and mounting


Hey all,

OK, I have a small PCMCIA->flash media converter. Pop my 96 meg disc in it, put it in my laptop, boot into Linux. dmesg says it's there, defines it as /dev/hde, with the partition on /dev/hde1 (bear with me if my terms are off). I bring up fstab, and edit in:

/dev/hde1 /mnt/flashcard vfat noauto,owner,users,exec 0 0

(never mind if the extra params are wrong, i'd find those out later and iron them out. i just want it working for now.)


then I go into console and type:

touch /flashcard


no output.
I then type:

mount -t vfat /dev/hde1 /flashcard

and it returns:

mount:mount point /flashcard is not a directory



what's up with this??
 
Old 07-30-2003, 12:58 AM   #2
faheyd
Member
 
Registered: Jun 2003
Location: Northern California (NorCal)
Distribution: Ubuntu 7.04 and DSL/Puppy etc
Posts: 342

Rep: Reputation: 30
I luv easy ones like this one.
'touch /flashcard' is not the correct command in this instance. Touch creates a 'file', not a 'directory'.
so, you would want to create a directory (matched to your fstab), such as (see http://www.skyenet.net/~aross/Linux/.../command2.html for info)
First, 'rm /flashcard' to remove that incorrect file creation.
mkdir /mnt/flashcard
mount -t vfat /dev/hde1 /mnt/flashcard
cp /etc/fstab /mnt/flashcard
ls /mnt/flashcard/
cat /mnt/flashcard/fstab

If mount -t vfat doesn't work, try
mount -t msdos /dev/hde1 /mnt/flashcard


if all that works, you should be happy. If you want to change your file system on the flashcard, see if this link ( http://ldots.org/prodrive/ )might give you some ideas (for examples only, change device names to yours, backup any important files on the device to make sure you have fun, not trouble).
I hope this helps.
 
Old 07-30-2003, 08:09 AM   #3
kronchev
LQ Newbie
 
Registered: Jul 2003
Distribution: Debian (sarge)
Posts: 17

Original Poster
Rep: Reputation: 0
Ah, thank you. Works beautifully. Also, any idea what i'm thinking of with touch? I'm not sure where I picked that up from, and IIRC it came into play when I was getting my NTFS partition to read (which I had no problem with, mind you).
 
Old 07-30-2003, 12:11 PM   #4
faheyd
Member
 
Registered: Jun 2003
Location: Northern California (NorCal)
Distribution: Ubuntu 7.04 and DSL/Puppy etc
Posts: 342

Rep: Reputation: 30
Nope, I just don't know. That one is beyond my ken. The deepest I've gotten, is to make a iso image file, create a /mnt/iso directory and mount it via loopbacks, and it looks like a readable harddrive. I use that to keep my MDK disc 1,2, and 3 always handy, along with my Network books. That way I don't have to always be slapping my CD's in and out of the box.
http://www.talcon.com/cdserver-howto/index.htm
and
http://www.tldp.org/HOWTO/CDServer-HOWTO/index.html
So, essentially, I have my own personal CDRom Tower in my house. Amazing what being lazy will force you to accomplish?
 
  


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
Compact Flash PCMCIA Reader LinuxBlackBox Linux - Hardware 4 05-22-2004 12:01 PM
mounting PCMCIA (compact flash) IDE device superbondbond Linux - Laptop and Netbook 1 02-02-2004 05:07 PM
mounting a flash disk ekoome Red Hat 2 09-24-2003 01:34 AM
mounting disk-on-chip flash memory SirRobbin Linux - Hardware 0 08-20-2003 08:07 AM
Help! linux freezes for a while after mounting flash disk themuppeteer Linux - General 0 12-03-2002 03:49 AM

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

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