Hardkap » Macpup - The beauty of Linux

Macpup does not read USB flash drive

(9 posts)
  1. Mateusz
    Member

    Hi! My name is Mateusz and I come from Poland. I burnt out a CD with ISO file of Macpup and wanted to test it. It appropriate read hard disk, but it did not want to mount any of my USB flash drives and floppy disk. I compared md5 check sums of my downloaded iso file with this given on Macpup site. Their are the same. What I should to do?
    P.S. Sorry for my English ;)

    Posted 8 months ago #
  2. runtt21
    Member

    Which one of the macpups did you download? I use usb flash drives all the time.

    Posted 8 months ago #
  3. pakt
    Member

    I tested your very elegant MacPup Foxy 3 for the first time today. Installing gray's nVidia driver got the resolution perfect :-)

    However, I got a problem when trying to mount a USB stick (sdc1 vfat 243M). Pmount responded with "ERROR: unable to mount sdc1". This may be the same error Mateusz got.

    xerrs.log reported:

    Please wait, probing hardware..."
    mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
    missing codepage or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so

    dmesg reported:

    scsi 7:0:0:0: Direct-Access OTi Flash Disk 2.00 PQ: 0 ANSI: 2
    usb-storage: device scan complete
    ready
    sd 7:0:0:0: [sdc] 512000 512-byte hardware sectors: (262 MB/250 MiB)
    sd 7:0:0:0: [sdc] Write Protect is off
    sd 7:0:0:0: [sdc] Mode Sense: 03 00 00 00
    sd 7:0:0:0: [sdc] Assuming drive cache: write through
    sd 7:0:0:0: [sdc] Assuming drive cache: write through
    sdc: sdc1
    sd 7:0:0:0: [sdc] Attached SCSI removable disk
    FAT: codepage cp850 not found
    #

    The first attempts to mount a USB stick were done running with pfix=ram. I'm now running from a pupsave file and still get the same error. Seems to have to do with 'codepage cp850'. I've got the keyboard set to Swedish. Might be a clue?

    I've tried with two other brands and sizes of USB stick and get the same error.

    Paul

    Posted 7 months ago #
  4. runtt21
    Member

    How are you running Fox3 , just with a pup-save or an install ? If it's just a save file or a frugal install where did you put the zp40305.sfs ,Its on the live cd.

    Yes, for some strange reason the Swedish keyboard setting causes problems for puppy linux , I have no idea why or how to fix that but I think we need to look at the zp.sfs first.

    Did you check your md5sum for your download?

    Posted 7 months ago #
  5. pakt
    Member

    I'm running Fox3 as a frugal install with a pup-save. Here are the details from PUPSTATE

    PUPMODE=12
    PDEV1='sda8'
    DEV1FS='ext3'
    PUPSFS='sda8,ext3,/macpup3/pup-430.sfs'
    PUPSAVE='sda8,ext3,/macpup3/pupsave-macpup3.2fs'
    PMEDIA='atahd'
    #v3.97: kernel with libata pata has both sata and pata drives in ATADRIVES...
    ATADRIVES='sda '
    #these directories are unionfs layers in /initrd...
    SAVE_LAYER='/pup_rw'
    PUP_LAYER='/pup_ro2'
    #The partition that has the pupsave file is mounted here...
    PUP_HOME='/mnt/dev_save'
    #(in /initrd) ...note, /mnt/home is a link to it.
    #this file has extra kernel drivers and firmware...
    ZDRV='sda8,ext3,/macpup3/zp430305.sfs'
    #complete set of modules in the initrd (moved to main f.s.)...
    ZDRVINIT='no'
    PSWAPFILE=''
    PSAVEMARK=''
    FASTPARTS='sda1|ntfs sda5|vfat sda6|ext3 sda8|ext3 '

    Note the location of zp40305.sfs. All files (pup-430.sfs, zp40305.sfs and pupsave-macpup3.2fs) are located in the subdirectory /macpup3.

    My GRUB boot entry for Fox3 is

    title MacPup Foxy 3 on /dev/sda8
    rootnoverify (hd0,7)
    kernel /macpup3/vmlinuz pmedia=satahd psubdir=macpup3 pfix=fsck
    initrd /macpup3/initrd.gz

    Regarding downloads, I always check the md5sum.

    Paul

    Posted 7 months ago #
  6. runtt21
    Member

    "FAT: codepage cp850 not found" this is the issue, Macpup fox 3 , puppy 4.3.0 and 4.3.1 dont have it . I am looking into it.

    Posted 7 months ago #
  7. runtt21
    Member

    Take a look at something please. Go over to /lib/modules/2.6.30.5/kernel/fs/nls

    you will see lots of stuff like cp888.ko ,look to see if everything ends in .ko , if something is .ko.gz rename it to .ko

    Posted 7 months ago #
  8. pakt
    Member

    Ok, I found the reason pmount doesn't work with some foreign keyboards. Barry has modified pmount for Puppy >= 476 so that an NLS parameter is added during mount and this doesn't appear to work properly. However, mounting USB sticks manually works without problems. Using pmount from 4.1.2 works fine.

    Here is the code Barry added to pmount:

    #w476 modify codepage and iocharset (note: this code also in /usr/local/bin/drive_all)...
    #note, could also set iocharset=iso8859-2 (default: codepage=437, iocharset=iso8859-1)
    NLS_PARAM=''
    if [ -f /etc/keymap ];then #set in /etc/rc.d/rc.country
    KEYMAP="cat /etc/keymap | cut -f 1 -d '.'"
    case $KEYMAP in
    de|be|br|dk|es|fi|fr|it|no|se|pt)
    NLS_PARAM=',codepage=850'
    ;;
    slovene|croat|hu101|hu|cz-lat2|pl|ro_win)
    NLS_PARAM=',codepage=852,iocharset=iso8859-2'
    ;;
    esac
    fi
    mount -t vfat -o shortname=mixed,quiet${NLS_PARAM} $DODEV /mnt/$DEVNAME #v411 added quiet.

    Posted 7 months ago #
  9. runtt21
    Member

    Very Cool , Thank you very much for finding this out for us. What I will do is pull pmount out of 4.1.2 and make a .pet out of it so if anyone else runs into this all they will need to do is install the .pet.

    Thank you very much !!!

    Posted 7 months ago #

Important: If you want to be notified for any new post on this thread/topic, please go to your profile, activate favorite notification and then subscribe to this topic.


RSS feed for this topic

Reply

You must log in to post.