LinuxQuestions.org
Visit Jeremy's Blog.
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 05-13-2004, 09:02 AM   #1
Nonixnarrez
LQ Newbie
 
Registered: Jan 2004
Location: Germany
Distribution: Fedora Core
Posts: 9

Rep: Reputation: 0
Problem to get PCMCIA Flashdrive to work on Compaq E500 Laptop


Hi folks,

I'm not too proud to admit I'm using Windoze from time to time but
sometimes there are needs to transport some data from A to B.
All pre-information I googled together seemed to make it possible to
configure the Sandisk in the way I described here. I also checked:

http pcmcia-cs.sourceforge.net
http pcmcia-cs.sourceforge.net/ftp/PCMCIA-HOWTO

I have formatted the Flash ATA under W2K in FAT & FAT32 (Block Size 512)
and then tried to mount the drive under Linux with VFAT, with some
(but not enough) success :-( as it turned out...
VFAT & MSDOS Support are definitely compiled into the kernel.

What also confuses me is, why is the drive reported with 3 partitions?

May I "steel" anyone of you GURUs a few minutes for a hint?

#############################################################
bash-2.05b# uname -r
2.6.5-1.356custom # Running Fedora Core 1 & KDE 3.2.2

#############################################################
output of lspci - OK

bash-2.05b# lspci
00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:04.0 CardBus bridge: Texas Instruments PCI1225 (rev 01)
00:04.1 CardBus bridge: Texas Instruments PCI1225 (rev 01)
00:07.0 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:08.0 Multimedia audio controller: ESS Technology ES1978 Maestro 2E (rev 10)
00:09.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 09)
00:09.1 Serial controller: Lucent Microelectronics LT WinModem
01:00.0 VGA compatible controller: ATI Technologies Inc Rage Mobility P/M AGP 2x (rev 64)

#############################################################
dmesg output

hdc: SanDisk SDP3B-1200, CFA DISK drive
ide1 at 0x110-0x117,0x11e on irq 3
hdc: max request size: 128KiB
hdc: 2344608 sectors (1200 MB) w/1KiB Cache, CHS=2326/16/63
hdc: hdc1 hdc2 hdc4
ide-cs: hdc: Vcc = 3.3, Vpp = 0.

#############################################################
output from cardctl status & ident

bash-2.05b# cardctl status
Socket 0:
no card
Socket 1:
3.3V 16-bit PC Card
function 0: [ready], [bat dead], [bat low]

bash-2.05b# cardctl ident
Socket 0:
no product info available
Socket 1:
product info: "SunDisk", "SDP", "5/3 0.6"
manfid: 0x0045, 0x0401
function: 4 (fixed disk)

#############################################################
ide_info output

bash-2.05b# ide_info /dev/hdc
MODEL="SanDisk SDP3B-1200"
FW_REV="vdd 1.00"
SERIAL_NO="360334B0707"

#############################################################
cat /var/lib/pcmcia/stab

Socket 0: empty
Socket 1: ATA/IDE Fixed Disk
1 ide ide-cs 0 hdc 22 0

#############################################################
cat /var/log/messages

May 12 13:02:19 zd4125pc cardmgr[6261]: socket 1: ATA/IDE Fixed Disk
May 12 13:02:19 zd4125pc kernel: hdc: SanDisk SDP3B-1200, CFA DISK drive
May 12 13:02:20 zd4125pc kernel: ide1 at 0x110-0x117,0x11e on irq 3
May 12 13:02:20 zd4125pc kernel: hdc: max request size: 128KiB
May 12 13:02:20 zd4125pc kernel: hdc: 2344608 sectors (1200 MB) w/1KiB Cache, CHS=2326/16/63
May 12 13:02:20 zd4125pc kernel: hdc: hdc1 hdc2 hdc4
May 12 13:02:20 zd4125pc kernel: ide-cs: hdc: Vcc = 3.3, Vpp = 0.0
May 12 13:02:20 zd4125pc cardmgr[6261]: executing: './ide start hdc'

May 13 13:58:05 zd4125pc kernel: hdc: task_in_intr: status=0x51 { DriveReady SeekComplete Error }
May 13 13:58:05 zd4125pc kernel: hdc: task_in_intr: error=0x10 { SectorIdNotFound }, LBAsect=259158629, sector=1869771365
May 13 13:58:05 zd4125pc kernel: end_request: I/O error, dev hdc, sector 1869771365
May 13 13:58:05 zd4125pc kernel: FAT: unable to read boot sector

#############################################################
/etc/pcmcia/ide.opts

# ATA/IDE drive adapter configuration
#
# The address format is "scheme,socket,serial_no[,part]".
#
# For multi-partition devices, first return list of partitions in
# $PARTS. Then, we'll get called for each partition.
#
case "$ADDRESS" in
*,*,360334B0707,1)
INFO="SanDisk SDP3B-1200"
DO_FSTAB="y" ; DO_FSCK="y" ; DO_MOUNT="y"
FSTYPE="vfat"
OPTS="fat=32"
MOUNTPT="/mnt/sandisk"
;;
*,*,360334B0707)
PARTS="1"
# Card eject policy options
NO_CHECK=n
NO_FUSER=n
;;
esac

#############################################################
error when mounting with msdos / vfat / auto

/dev/hdc1: Input/output error
mount: /dev/hdc1: can't read superblock

#############################################################
file system check reports following

bash-2.05b# fsck -t vfat /dev/hdc1
fsck 1.34 (25-Jul-2003)
dosfsck 2.8, 28 Feb 2001, FAT32, LFN
Read 512 bytes at 0:Input/output error

#############################################################

If any important system information is missing, please tell me.



Regards /// Marc
 
Old 05-13-2004, 11:29 AM   #2
Nonixnarrez
LQ Newbie
 
Registered: Jan 2004
Location: Germany
Distribution: Fedora Core
Posts: 9

Original Poster
Rep: Reputation: 0
Hi again,

just fixed the problem described above
I took parted to remove all the mad stuff Windoze created on the Flashdrive

Commands - one by one
parted /dev/hdc
(parted) print
(parted) rm 1/2/3/4

Then I created one big primary partition (in the first step, lets see if I change that later)
(parted) mkpartfs primary fat32 0 1144

The outcome was as follows:
(parted) print
Disk geometry for /dev/hdc: 0.000-1144.828 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 1144.828 primary fat32 lba

I also removed the "fat=32" option from the ide.opts and tried again and it looks better now:
hdc: SanDisk SDP3B-1200, CFA DISK drive
ide1 at 0x110-0x117,0x11e on irq 3
hdc: max request size: 128KiB
hdc: 2344608 sectors (1200 MB) w/1KiB Cache, CHS=2326/16/63
hdc: hdc1
ide-cs: hdc: Vcc = 3.3, Vpp = 0.0
hdc: hdc1
hdc: hdc1
Unable to load NLS charset cp437

The last error disappeared, when I changed my kernel config to support this code page
by compiling it into the kernel.

Hope this helps some other newbies with similar problems.

Regards /// Marc


bash-2.05b# fsck /dev/hdc1
fsck 1.34 (25-Jul-2003)
dosfsck 2.8, 28 Feb 2001, FAT32, LFN
Warning: FAT32 support is still ALPHA.
/dev/hdc1: 0 files, 1/292492 clusters
 
  


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
Compaq 1201z laptop - pcmcia card recognition problem papikondalu Linux - Laptop and Netbook 0 07-11-2005 05:36 AM
compaq armada e500 killermilleR Linux - Laptop and Netbook 1 10-22-2004 01:42 PM
compaq armada e500 killermilleR Linux - Laptop and Netbook 0 10-14-2004 09:37 AM
Compaq E500 Suse 9.0 Xfree Problem Jasper73 Linux - Laptop and Netbook 0 05-26-2004 03:54 AM
Compaq Armada e500 rh_walt Linux - Laptop and Netbook 7 01-10-2004 02:01 PM


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