LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-31-2005, 08:50 PM   #1
larry.barnes
LQ Newbie
 
Registered: Sep 2003
Location: Dallas, Texas
Distribution: SUSE 9.2, FC3,Vect 5.0 SOHO
Posts: 8

Rep: Reputation: 0
smart media card in PCMCIA adapter


I have Suse 9.2 pro (downloaded version) installed on an HP ze5700 laptop. I can not get Suse to see a smart media card in the PCMCIA adapter (NO USB INVOLVED). I have the PCMCIA support installed, when I insert the card I see it recognizedand it tries to mount itbut something fails and it is umounted. This repeats as long as the card is in the adapter. I have included part of the /var/log/messages file. I'm sure it's something simple, any words of wisdom appreciated, thanks, NEWBIE

Jan 31 20:43:35 HPLapLinux kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
Jan 31 20:43:35 HPLapLinux cardmgr[3382]: socket 0: ATA/IDE Fixed Disk
Jan 31 20:43:35 HPLapLinux kernel: Probing IDE interface ide2...
Jan 31 20:43:35 HPLapLinux kernel: hde: , CFA DISK drive
Jan 31 20:43:35 HPLapLinux kernel: ide2 at 0x100-0x107,0x10e on irq 3
Jan 31 20:43:36 HPLapLinux kernel: hde: max request size: 128KiB
Jan 31 20:43:36 HPLapLinux kernel: hde: 256000 sectors (131 MB) w/0KiB Cache, CHS=500/16/32
Jan 31 20:43:36 HPLapLinux kernel: hde: cache flushes not supported
Jan 31 20:43:36 HPLapLinux kernel: hde:hde: set_geometry_intr: status=0x51 { DriveReady SeekComplete Error }
Jan 31 20:43:36 HPLapLinux kernel: hde: set_geometry_intr: error=0x04 { DriveStatusError }
Jan 31 20:43:36 HPLapLinux kernel: ide: failed opcode was: unknown
Jan 31 20:43:36 HPLapLinux kernel: hde1
Jan 31 20:43:36 HPLapLinux kernel: ide-cs: hde: Vcc = 5.0, Vpp = 0.0
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: executing: './ide start hde 2>&1'
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + /sbin/fsck -Ta /dev/hde1
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + open /dev/hde1: No such file or directory
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + Aborting.dosfsck 2.10, 22 Sep 2003, FAT32, LFN
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + mount -v -t vfat /dev/hde1 /mnt/ide
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + mount: special device /dev/hde1 does not exist
Jan 31 20:43:45 HPLapLinux kernel: hde: hde1
Jan 31 20:43:45 HPLapLinux kernel: hde: hde1
Jan 31 20:43:45 HPLapLinux /etc/dev.d/block/50-hwscan.dev[5382]: new block device /block/hde/hde1
Jan 31 20:43:45 HPLapLinux /etc/dev.d/block/50-hwscan.dev[5386]: new block device /block/hde
Jan 31 20:43:45 HPLapLinux /etc/dev.d/block/51-subfs.dev[5414]: mount block device /block/hde
Jan 31 20:43:45 HPLapLinux /etc/dev.d/block/51-subfs.dev[5404]: mount block device /block/hde/hde1
Jan 31 20:43:45 HPLapLinux /etc/dev.d/block/51-subfs.dev[5467]: umount block device /block/hde/hde1
Jan 31 20:43:45 HPLapLinux /etc/dev.d/block/51-subfs.dev[5467]: umount: /dev/hde1: not mounted
Jan 31 20:43:46 HPLapLinux kernel: hde: hde1
Jan 31 20:43:46 HPLapLinux /etc/dev.d/block/50-hwscan.dev[5561]: new block device /block/hde/hde1
Jan 31 20:43:46 HPLapLinux /etc/dev.d/block/51-subfs.dev[5571]: mount block device /block/hde/hde1
Jan 31 20:43:46 HPLapLinux /etc/dev.d/block/51-subfs.dev[5611]: umount block device /block/hde/hde1
Jan 31 20:43:46 HPLapLinux /etc/dev.d/block/51-subfs.dev[5611]: umount: /dev/hde1: not mounted
Jan 31 20:43:46 HPLapLinux kernel: hde: hde1
Jan 31 20:43:46 HPLapLinux /etc/dev.d/block/50-hwscan.dev[5695]: new block device /block/hde/hde1
Jan 31 20:43:46 HPLapLinux /etc/dev.d/block/51-subfs.dev[5705]: mount block device /block/hde/hde1
Jan 31 20:43:46 HPLapLinux /etc/dev.d/block/51-subfs.dev[5745]: umount block device /block/hde/hde1
Jan 31 20:43:46 HPLapLinux /etc/dev.d/block/51-subfs.dev[5745]: umount: /dev/hde1: not mounted
Jan 31 20:43:47 HPLapLinux kernel: hde: hde1
Jan 31 20:43:47 HPLapLinux /etc/dev.d/block/50-hwscan.dev[5826]: new block device /block/hde/hde1
Jan 31 20:43:47 HPLapLinux /etc/dev.d/block/51-subfs.dev[5836]: mount block device /block/hde/hde1
Jan 31 20:43:47 HPLapLinux /etc/dev.d/block/51-subfs.dev[5879]: umount block device /block/hde/hde1
Jan 31 20:43:47 HPLapLinux /etc/dev.d/block/51-subfs.dev[5879]: umount: /dev/hde1: not mounted
Jan 31 20:43:47 HPLapLinux kernel: hde: hde1
Jan 31 20:43:47 HPLapLinux /etc/dev.d/block/50-hwscan.dev[5960]: new block device /block/hde/hde1
Jan 31 20:43:47 HPLapLinux /etc/dev.d/block/51-subfs.dev[5973]: mount block device /block/hde/hde1
Jan 31 20:43:47 HPLapLinux /etc/dev.d/block/51-subfs.dev[6013]: umount block device /block/hde/hde1
Jan 31 20:43:47 HPLapLinux /etc/dev.d/block/51-subfs.dev[6013]: umount: /dev/hde1: not mounted
Jan 31 20:43:48 HPLapLinux /etc/dev.d/block/51-subfs.dev[6097]: umount block device /block/hde
Jan 31 20:43:48 HPLapLinux /etc/dev.d/block/50-hwscan.dev[6080]: new block device /block/hde/hde1
Jan 31 20:43:48 HPLapLinux /etc/dev.d/block/51-subfs.dev[6097]: umount: /dev/hde: not mounted
Jan 31 20:43:48 HPLapLinux /etc/dev.d/block/51-subfs.dev[6115]: mount block device /block/hde/hde1
Jan 31 20:43:48 HPLapLinux /etc/dev.d/block/51-subfs.dev[6160]: umount block device /block/hde/hde1
Jan 31 20:43:48 HPLapLinux /etc/dev.d/block/51-subfs.dev[6160]: umount: /dev/hde1: not mounted
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: executing: './ide stop hde 2>&1'
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde2 b 33 2
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde2': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde3 b 33 3
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde3': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde4 b 33 4
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde4': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde5 b 33 5
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde5': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde6 b 33 6
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde6': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde7 b 33 7
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde7': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde8 b 33 8
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde8': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde9 b 33 9
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde9': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde10 b 33 10
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde10': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde11 b 33 11
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde11': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde12 b 33 12
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde12': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde13 b 33 13
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde13': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde14 b 33 14
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde14': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde15 b 33 15
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde15': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod /dev/hde16 b 33 16
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + mknod: `/dev/hde16': File exists
Jan 31 20:43:48 HPLapLinux cardmgr[3382]: + open() failed: No such device or address
Jan 31 20:43:58 HPLapLinux /etc/dev.d/block/51-subfs.dev[6312]: umount block device /block/hde/hde1
Jan 31 20:43:58 HPLapLinux /etc/dev.d/block/51-subfs.dev[6312]: umount: /dev/hde1: not mounted
 
Old 02-08-2005, 04:08 AM   #2
wsaschakiss
LQ Newbie
 
Registered: Dec 2004
Location: Essen, Germany
Distribution: SuSE 9.1 & SuSE 9.2
Posts: 11

Rep: Reputation: 0
Re: smart media card in PCMCIA adapter

Hi!

I have exactly the same problem with a Kingston PCMCIA compact flash card reader on a Nexus Osiris S602 Laptop running SuSE 9.2. I found another thread on lists.suse.com (http://lists.suse.com/archive/suse-l...-Jan/0108.html) in German describing the same problem. Unfortunately I haven't got a resolution for this problem but as said in the mentioned thread, it seems to be a general problem in 9.2 and has nothing to do with a special hardware setup. The problem doesn't occur in SuSE 9.0.

In the above mentioned thread you'll find a link to an bug report (http://bugme.osdl.org/show_bug.cgi?id=3223). Probably this is already the key to the solution.

Unfortunately I don't have the time to test it right now, maybe you have.

Last edited by wsaschakiss; 02-08-2005 at 04:34 AM.
 
Old 02-08-2005, 07:02 AM   #3
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
I have had the same problem, and after several experiments I found the reason.
The problem is that the hotplug system is invoking the 51-subfs script until
the inserted media gets mounted. However the 51-subfs will not mount
cards inserted via PCMCIA

The Problem is in the 51-subfs will *not* mount media inserted via PCMCIA
since Linux handles it as IDE drive and 51-subfs is designed only to mount
media attached via USB that are handled by Linux as SCSI devices.

You can find more details (in German) in my posting in the SuSE
laptop mailing list.

http://lists.suse.com/archive/suse-l...-Feb/0031.html

What's the solution ?

I have changed the 51-subfs.dev script so it can also mount IDE media,
with other words cards attached via PCMCIA adapter.

Below the changed script.

1) Backup your old 52-subfs script
cp /etc/dev.d/block/51-subfs.dev /etc/dev.d/block/51-subfs.dev.bak


2) Then copy/paste teh listing below in a new file and save it
as /etc/dev.d/block/51-subfs.dev

This should fix the problem. I also have changed the script a little bit,
so that if you have a mountpoint entry in the /etc/fstab for your device
it will use it instead of a automatically generated one.

Hope this helps! For me it worked!


#!/bin/bash
# $Id: 51-subfs.dev 262 2004-08-09 12:22:13Z hare $
# set -x
#
# block hotplug policy agent for Linux kernels
#
# Kernel BLOCK hotplug params include:
# # ACTION=%s [add or remove]
# DEVPATH=%s
#
# bash required due to echo | while read line ; do : ; done
#
# Logic is like this:
# - call hwscanqueue --block for all full disks
# - call hwscanqueue --scan only for usb-storage disks
# - mount devices (either full disks or partitions) if
# HOTPLUG_DO_MOUNT is not 'no' and if an matching entry
# from /etc/fstab or /proc/mounts is found.
#

cd /etc/hotplug
. ./hotplug.functions
. ./hotplug.subfs.functions
# DEBUG=yes export DEBUG

lockfile=/var/lock/block.agent.lock

if [ "$DEVPATH" = "" ]; then
mesg Bad BLOCK invocation: \$DEVPATH is not set
exit 1
fi

# Check whether we need to execute anything at all
if [ "$HOTPLUG_DO_MOUNT" == "no" ]; then
exit 0
fi

waitforlock()
{
local pid=""
local i=""
# fail redir if file exists
set -o noclobber
while ! { echo $$ > $lockfile; } 2>/dev/null; do
read i < $lockfile
if [ -z "$i" -o ! -d "/proc/$i" ] ; then
rm -f $lockfile
else
if [ "$i" != "$pid" ] ; then
mesg "waiting for $lockfile, process $i holds it"
pid=$i
fi
## sleep between .4 and 1 second
#usleep $((RANDOM%6000*100+400000))
usleep 400000
fi
done
trap "rm -f $lockfile" EXIT;
set +C
}

check_mount_entry ()
{
ncookie=$(udevinfo -p $DEVPATH -q name)
scookie=$(udevinfo -p $DEVPATH -q symlink)
debug_mesg ncookie $ncookie
debug_mesg scookie $scookie
if [ -n "$scookie" -o -n "$ncookie" ] ; then
for entry in $scookie $ncookie ; do
i="`echo ${i} | sed -e 's@/@\\/@g'`"
i=`sed -e "/\/dev\/$i[[:blank:]]/q;d" /etc/fstab`
if [ ! -z "$i" ] ; then
debug_mesg found $entry in fstab
entry=""
break
fi
i=`sed -e "/\/dev\/$i[[:blank:]]/q;d" /proc/mounts`
if [ ! -z "$i" ] ; then
debug_mesg found $entry in /proc/mounts
entry=""
break
fi
done
fi

if [ -z "$scookie" ] ; then
entry=$ncookie
else
entry="${scookie%% *}"
fi

echo $entry
}

#
# generic section
#

if [ ! -w /media ]; then
# Can't write to /media, nothing to do here
exit 0;
fi

# we need locking to avoid races when modifying fstab
if [ "$HOTPLUG_MOUNT_TYPE" = fstab ] ; then
waitforlock
fi

do_mount=
if [ "$DEVNAME" ] ; then
real_device="$DEVNAME"
else
real_device=/dev/${DEVPATH##*/}
fi
# do only mount devices connected via USB or Firewire

# check whether the devpath has a 'device' link
pname=""
if [ -e /sys$DEVPATH/device ]; then
dname=`cd -P /sys$DEVPATH/device; echo $PWD`
else
if [ -e /sys$DEVPATH/../device ]; then
dname=`cd -P /sys$DEVPATH/../device; echo $PWD`
fi
fi

# Get the type of disk
if [ -n "$dname" -a -f ${dname}/scsi_level ]; then
pname=${dname%/*}
pname=/sys/class/scsi_host/${pname##*/}/proc_name
if [ -f "$pname" ]; then
read dtype < "$pname"
if [ "$dtype" = "usb-storage" -o "$dtype" = "sbp2" ]; then
# We only need to mount USB and FireWire devices
do_mount=maybe
fi
fi
fi
############ Change by V.A #########################
##### Now we check also for PCMICIA Discs ##########
if [ -n "$dname" -a -z "$do_mount" ]; then
pt_name=${DEVNAME##*/}
path_name=$dname/block/$pt_name
if [ -d $path_name ]; then
do_mount=whynot
fi
fi
########### Change End ############################

#
# do the real action
#

case $ACTION in
add)
mesg "mount block device $DEVPATH"
# entry=`check_mount_entry` #This line disabled by V.A.
############ Change by V.A ########################
####### Check if there is already an entry ########
####### in /etc/fstab for the device ########
####### if there use it as mountpoint ########
###################################################
entry=$(grep $real_device /etc/fstab|awk '{print $2'})
if [ -z "$entry" ]; then
entry=`check_mount_entry`
fi
############# Change End ##########################
if [ -n "$entry" -a -n "$do_mount" ] ; then
mount_media "$entry" "$real_device"
fi
rm -f $lockfile
;;

remove)
mesg "umount block device $DEVPATH"
# entry=`check_mount_entry` #This line disabled by V.A.
############ Change by V.A ########################
entry=$(grep $real_device /etc/fstab|awk '{print $2'})
if [ -z "$entry" ]; then
entry=`check_mount_entry`
fi
############# Change End ##########################
if [ -n "$entry" ] ; then
unmount_media "$entry" "$real_device"
fi
rm -f $lockfile
;;
*)
debug_mesg BLOCK $ACTION event not supported
exit 1 ;;
esac
 
Old 02-08-2005, 08:13 AM   #4
wsaschakiss
LQ Newbie
 
Registered: Dec 2004
Location: Essen, Germany
Distribution: SuSE 9.1 & SuSE 9.2
Posts: 11

Rep: Reputation: 0
Thank you for the hint, but even after copying the provided script into the 51-subfs.dev file doesn't change the behavior on my laptop. My computer is still running in 100% CPU and my /var/log/messages is still put full of mounts and umounts.

It seems as if you had another problem with your compact flash card drive.

Do you have another idea? If not Im continuing searching for a solution!
 
Old 02-08-2005, 09:04 AM   #5
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
OK!

check please first your
/etc/dev.d/block/51-subfs.dev
file with ls -l

It has to have root as owner and root as group.
It has to have following access rights
rwxr-xr-x 1 root root 4717 Feb 5 21:16 51-subfs.dev

So owner can read/write/execute
group and others can read and execute

If this is OK, then try following and you still encounter the problem
then try following:
Stop the hotplug subsystem
/etc/init.d/boot.hotplug stop

Insert the PCMCIA card and then mount manually.
Let assume your card is /dev/hde and the partition on it is /dev/hde1
then
mount /dev/hde1 -t auto /mnt

Is this working ??

Additionaly to that, send me an e-mail and I will send you my 51-subfs script as
attachment. It might be that copy/paste did also copy some additional
characters.

Last edited by Vlad-A; 02-08-2005 at 09:06 AM.
 
Old 02-08-2005, 09:52 AM   #6
wsaschakiss
LQ Newbie
 
Registered: Dec 2004
Location: Essen, Germany
Distribution: SuSE 9.1 & SuSE 9.2
Posts: 11

Rep: Reputation: 0
I did as you adviced.

1) The user rights are set exactly as you described. So this is not causing any problem

2) I stopped hotplug and mounted the hde1 (this is indeed the device I have to mount :-)) device manually and got an error message. In the end I found out that my /dev/hde1 device didn't exist on my hard drive. I don't know what deleted it...

So I created a new one with mknod, inserted the CF Card, mounted it and it worked.

After that I started hotplug again and I got the same problem as in the beginning. After removing the card I saw that the /dev/hde1 file was again missing. It seems as if hotplug on my computer is a problem... Do you have an idea what can cause the deletion of the file?

Thanx for your help and regards, Sascha.....*>
 
Old 02-08-2005, 10:07 AM   #7
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
Hi Sascha,

what kernel version are you using ?

uname -a

I suggest you run an YOU (YAST Online update) and check again.

I have: kernel-default 2.6.8-24.11


If you still encounter the problem, then try to create the hde and hde1 node
not under /dev but let's say under /home.

Then you may mount via
mount /home/hde1 /mnt -t auto.

Last edited by Vlad-A; 02-08-2005 at 10:49 AM.
 
Old 02-09-2005, 07:59 AM   #8
wsaschakiss
LQ Newbie
 
Registered: Dec 2004
Location: Essen, Germany
Distribution: SuSE 9.1 & SuSE 9.2
Posts: 11

Rep: Reputation: 0
Hi Vlad,

I have exactly the same kernel.

But I guess I'm gonna wait until I get a solution from suse via online update. The problem that flash cards cannot be used on my computer is not that urgent at the moment. I will need the laptop around may and till then I hope the suse provides a fix.

But thank you anyway,

Sascha.....*>
 
Old 02-09-2005, 07:45 PM   #9
larry.barnes
LQ Newbie
 
Registered: Sep 2003
Location: Dallas, Texas
Distribution: SUSE 9.2, FC3,Vect 5.0 SOHO
Posts: 8

Original Poster
Rep: Reputation: 0
Vlad, tried your sdcript and I get the same results also. I have the same kernel as you listed so it's not that. I double checked the permissions also. You are on the right track though, I disabled hot plug and was able to manually mount the card so it's not the hardware. I defined the file type as VFAT in the /etc/pcmcia/ide.opts. Thanks for the info, I appreciate it, I'll keep tinkering, Larry.
 
Old 02-12-2005, 01:44 AM   #10
BobT
LQ Newbie
 
Registered: Feb 2005
Location: Holland, Michigan USA
Distribution: Suse 9.2
Posts: 5

Rep: Reputation: 0
Related thread:

http://www.linuxquestions.org/questi...hreadid=286082

I'm getting closer. After stopping hotplug and recreating /dev/hde1 with mknod I was able to do a manual mount and view the files on my compact flash card.

Unfortunately, Vlad's script didn't help me either. (Thanks anyway Vlad, I'm a lot closer to a solution than before)
 
Old 02-14-2005, 12:51 AM   #11
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
Hello Bob & Larry,

it may be that we have a little bit different set-up regarding hotplug and PCMCIA.

1) I do not use /etc/pcmcia/ide.opts or more precise i "commented-out" the
options in ide.opts. I am just using subfs for mounting PCMCIA cards.
Below the section regarding ide-cards from my /etc/pcmcia/ide.opts.
As you can see, all the entries related to mounting PCMCIA ide
devices are commented-out.
......
case "$ADDRESS" in
*,*,*,1)
#INFO="Sample IDE setup"
#DO_FSTAB="y" ; DO_FSCK="y" ; DO_MOUNT="y"
#FSTYPE="msdos"
#OPTS=""
#MOUNTPT="/mnt/ide"
;;
.......

As I can see in Larry's /var/log/messages output:
.....................
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: executing: './ide start hde 2>&1'
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + /sbin/fsck -Ta /dev/hde1
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + open /dev/hde1: No such file or directory
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + Aborting.dosfsck 2.10, 22 Sep 2003, FAT32, LFN
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + mount -v -t vfat /dev/hde1 /mnt/ide
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + mount: special device /dev/hde1 does not exist
.....................

So I think in his case the mount options in /etc/pcmcia/ide.opts are enabled.
I assume that /dev/ede1 is not present since SuSE 9.2 is using udev, that creates
the /dev entry for a particular device only when the deivice is really there and deletes
it afterwards.

So you may consider to disable the mount options in your /etc/pcmcia/ide.opts


2) Check your:
/etc/sysconfig/hotplug file and check the settings for
HOTPLUG_DO_MOUNT and HOTPLUG_MOUNT_TYPE
I have there:
for
HOTPLUG_DO_MOUNT="yes"
and for
HOTPLUG_MOUNT_TYPE="fstab"

So Hotplug shall mount and the mount type is fstab.
Do not forget to restart the hotplug system after changing something in the hotplug file.

Try then the script I posted in this thread. Does it work now ?

REMARK: It takes caouple of seconds until the card get's mounted. Check with
mount
from time to time if and where the card get's mounted (it may be that subfs creates
it's own mountpoint and mounts the device there)

If nothing helps try the brute-force approach:

Tke a look on /etc/dev.d/block/51-subfs.dev

In the last section of the script (independent whether the on eposted here or the original)
you will find a case branch block.
It looks like
.
.
.
case $ACTION in
add)
mesg "mount block device $DEVPATH"
.
.
.

Put it in the row just abowe case $ACTION
do_mount=yes

So it shall look now like:
.
.
.
do_mount=yes
case $ACTION in
add)
mesg "mount block device $DEVPATH"
.
.
.
 
Old 02-14-2005, 07:34 AM   #12
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
Hello,

I have just verified:
The alternative script like given in one of my previous postings in this thread works
then *and only* then when in /etc/sysconfig/hotplug, the setting are:
HOTPLUG_DO_MOUNT="yes"
and for
HOTPLUG_MOUNT_TYPE="fstab"

For all other values of HOTPLUG_DO_MOUNT and HOTPLUG_MOUNT_TYPE the script will
*not* solve the problem.

This might be the reason, why the script did not work with your systems.

So what to do, if those setting are not OK for you ?

I have experimented a little bit more and found following alternative.

1) First of all it's important that you use the original
/etc/dev.d/block/51-subfs.dev script (just like provided by SuSE).

2) Take a look on
/etc/udev/rules.d/50-udev.rules
There you will find an entry that looks like:
BUS="ide", PROGRAM="/sbin/udev.get_persistent_device_name.sh", NAME="%k" SYMLINK="%c{1+}"
It shall be in the top section of the file.
You need to comment-out this line with a #, so
#BUS="ide", PROGRAM="/sbin/udev.get_persistent_device_name.sh", NAME="%k" SYMLINK="%c{1+}"

When you now insert the FlashCard/Microdrive in teh PCMCIA slot, a device node will be created under /dev
(very likely /dev/hde and /dev/hde1). You now need to mount /dev/hde1 by invoking
mount /dev/hde1 -t auto /mnt

the above approach will also work with other values for HOTPLUG_DO_MOUNT and HOTPLUG_MOUNT_TYPE

I hope this helps!!

Last edited by Vlad-A; 02-14-2005 at 07:35 AM.
 
Old 02-22-2005, 09:57 AM   #13
wsaschakiss
LQ Newbie
 
Registered: Dec 2004
Location: Essen, Germany
Distribution: SuSE 9.1 & SuSE 9.2
Posts: 11

Rep: Reputation: 0
Hi Vlad!

I commented out the line in the /etc/udev/rules.d/50-udev.rules file as mentioned and voila, I can now use my PCMCIA card reader. Thanx for your help so far. This is not the most elegant solution but until a fix is provided by SuSE I can use it at least.

Sascha.....*>
 
Old 02-23-2005, 06:57 AM   #14
BobT
LQ Newbie
 
Registered: Feb 2005
Location: Holland, Michigan USA
Distribution: Suse 9.2
Posts: 5

Rep: Reputation: 0
I tried both the new script and the /etc/udev/rules.d/50-udev.rules modification and I'd say changing 50-udev.rules is better. Even with the new script, CPU utilization remained very high while the flashcard was mounted. When unmounting the flash card you should follow the "umount" command with "cardctl eject" or CPU utilization will go to 100% after you eject the card.
 
Old 02-23-2005, 11:54 AM   #15
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
Well as already said both ways are possible. Indeed the CPU Utilization will go up untill the device is mounted, but this is a short time intervall. Once mounted the CPU utilization is normall. In any way you are supposed to use cardctl eject!

Last edited by Vlad-A; 02-23-2005 at 11:56 AM.
 
  


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
Smart Media Card Problems sprflyzapp Linux - Hardware 2 09-26-2005 07:56 AM
386 + ISA-PCMCIA adapter + PCMCIA Ralink wifi card v6sa Linux - Newbie 0 05-19-2005 12:42 PM
RSA Smart Card (pcmcia) support for linux? bingbong Linux - Enterprise 2 01-20-2005 05:33 PM
Wireless PCMCIA to PCI adapter and card help! ragingtarrasque Linux - Hardware 3 01-18-2005 10:09 PM
smart media card support fatherg Linux - General 17 12-22-2004 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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