Results 1 to 8 of 8

Thread: How can I save data on my Memory stick ?

  1. #1
    Junior Member
    Join Date
    Dec 2004
    Posts
    1

    How can I save data on my Memory stick ?

    Hello, I use knoppix for my linux assigments at collage.
    I have winXP pro installed and when I need to use linux, I run the knoppix boot cd.

    As I understand, knoppix allows me to save data only on my flopy drive. Since I do not have one on my PC, I would like to write my data on my Memory stick. However, Knoppix do not allow me to save data on it.
    How do I enable saving data on my "Disk on key" USB device ?

  2. #2
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    rightclick and chose "remount read/write" or something like it (not on knoppix just now)

  3. #3
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981

    Re: How can I save data on my Memory stick ?

    Quote Originally Posted by spree
    Hello, I use knoppix for my linux assigments at collage.
    I have winXP pro installed and when I need to use linux, I run the knoppix boot cd.

    As I understand, knoppix allows me to save data only on my flopy drive. Since I do not have one on my PC, I would like to write my data on my Memory stick. However, Knoppix do not allow me to save data on it.
    How do I enable saving data on my "Disk on key" USB device ?
    right click on the desktop icon. ; 'change to read/write mode' should be under 'actions'

    or manually mount it read/write: the command is 'sudo mount -rw /dev/???'
    (somebody else has to help out here, I dunno what a usb /dev/??? is since I don't have one but I thought I should add the manual command since it is sometimes more reliable than the desktop icon action script.)

  4. #4
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949

    Re: How can I save data on my Memory stick ?

    Quote Originally Posted by CrashedAgain
    Quote Originally Posted by spree
    Hello, I use knoppix for my linux assigments at collage.
    I have winXP pro installed and when I need to use linux, I run the knoppix boot cd.

    As I understand, knoppix allows me to save data only on my flopy drive. Since I do not have one on my PC, I would like to write my data on my Memory stick. However, Knoppix do not allow me to save data on it.
    How do I enable saving data on my "Disk on key" USB device ?
    right click on the desktop icon. ; 'change to read/write mode' should be under 'actions'

    or manually mount it read/write: the command is 'sudo mount -rw /dev/???'
    (somebody else has to help out here, I dunno what a usb /dev/??? is since I don't have one but I thought I should add the manual command since it is sometimes more reliable than the desktop icon action script.)
    Don't know what you mean by more reliable, the scripts baiscly(sp) runs that command.

  5. #5
    Senior Member registered user
    Join Date
    Aug 2003
    Posts
    126

    Re: How can I save data on my Memory stick ?

    Hi all,
    I have found the following scripts work. Firstly, I have included the scripts I use for start-up of a customised Knoppix based Linux Apache MySQL PHP (LAMP) server which runs in RAM. This should put the USB scripts in context. The scripts for saving and restoring data to and from a USB device follow.

    For start-up LAMP (This is a command initiated by clicking a desktop icon with the following "Execute" command attached):
    sudo /KNOPPIX/usr/local/bin/startLAMP
    in /etc/skel/Desktop
    and
    #!/bin/bash
    # Start Apache and MySQL. Put toophpix database into RAM. Open Mozilla browser. Filename=startLAMP

    /etc/init.d/apache start
    rm -rf /var/lib/mysql
    cp -rp /KNOPPIX/var/lib/mysql /var/lib
    mysqld_safe &
    mozilla "http://127.0.0.1/Toophpix/page3.php"

    goes in /KNOPPIX/usr/local/bin/ directory


    I use the same directories for the USB scripts.

    For save to USB the commands I am using are:
    sudo /usr/local/bin/saveToUSB
    and
    #!/bin/bash

    # Back up toophpix data to USB device.Filename=saveToUSB

    modprobe usb-storage
    mkdir /mnt/usbstore
    mount -t vfat /dev/sda1 /mnt/usbstore
    mysqldump --opt -u root toophpix > /mnt/usbstore/toophpix.sql
    umount /mnt/usbstore


    For restore from USB the commands I am using are:
    sudo /usr/local/bin/restoreFromUSB

    and

    #!/bin/bash

    # Restore MySQL toophpix database from USB device.Filename=restoreFromUSB

    modprobe usb-storage
    mkdir /mnt/usbstore
    mount -t vfat /dev/sda1 /mnt/usbstore
    mysql -u root toophpix < /mnt/usbstore/toophpix.sql
    umount /mnt/usbstore

    The umount commands at the end help ensure that the USB device can be
    mounted if the user clicks on the
    Desktop icon for the USB stick (Hard-Disk Partition sda1) that appears once Knoppix has
    booted up, or when the USB device is identified when inserted.
    toophpix is the name of the database that is backed up.
    These work on Knoppix 3.3 and I presume with slight modifications should achieve your aims.
    I would be delighted to hear about any improvements that could be made to these scripts
    Regards,
    Mark Preston

  6. #6
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY, USA
    Posts
    1,256
    I've heard alot about LAMP lately. What do you find it useful for?

    Just Curious,
    AJG

  7. #7
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981

    Re: How can I save data on my Memory stick ?

    Quote Originally Posted by firebyrd10
    Quote Originally Posted by CrashedAgain
    (somebody else has to help out here, I dunno what a usb /dev/??? is since I don't have one but I thought I should add the manual command since it is sometimes more reliable than the desktop icon action script.)
    Don't know what you mean by more reliable, the scripts baiscly(sp) runs that command.
    I haven't run directly from CD much but once installed to HD I have found that the action script often doesn't work. Haven't looked into this in great detail, one of the first customisations I do is set up fstab to mount the drives the way I want them & get rid of the desktop icons but I have found that the there was no action from the action script.

  8. #8
    Senior Member registered user
    Join Date
    Aug 2003
    Posts
    126
    Quote Originally Posted by A. Jorge Garcia
    I've heard alot about LAMP lately. What do you find it useful for?

    Just Curious,
    AJG
    Hi Jorge,

    LAMP applications are many and varied across the web. This server (www.knoppix.net) is probably running using LAMP.

    I have been experimenting with remastering Knoppix to produce a CdRom for my dental patients. By putting the MySQL database files into RAM it is possible to modify data files, and this enables addition and deletion of records from web forms whilst running Linux from the CdRom. I plan to distribute these CdRoms by leaving them on my Reception desk free for anyone who wants to take one. In addition to Knoppix they contain information about my dental practice and other dental services in South-East Essex. One of the features I hope to put in is to enable users to fill in a form with their name and address details on so that they can put this information on a floppy disk or USB stick by clicking desktop icons. If they subsequently hand such a floppy disk to my receptionist she will be able to use this to add/update these details to the details held on the computer at the reception.
    This should speed up the registration process, and enable computer savvy patients to have slightly more control over their contact details, as well as having the happy side-effect of introducing some people to Linux. It also avoids the patient confidentiality issues, and expense, associated with running a server on the internet.
    I have produced another similar version for dentists for sharing template files and a dental fee calculator/guide.
    This can be downloaded by visiting
    http://truth.positive-internet.com/~...ophpix0412.iso

    or using
    wget -c http://truth.positive-internet.com/~...ophpix0412.iso

    from the command line.
    This has the saveToUSB and restoreFromUSB functions I described previously.
    It is a 717Mb file (Knoppix 3.3 plus some added pages / LAMP).

    You might find the following commands useful as well to burn the cd to a 700Mb disc under Linux:
    cdrecord -scanbus
    cdrecord -overburn dev=0,0,0 toophpix0412.iso

    the three numbers (0,0,0) are those returned from the scanbus command.


    I note from your details that you are a mathematician.
    If you have a DVD rewriter you might prefer to download another remastered Knoppix called LiveZope. The latest version is 3.1.
    visit
    ftp://math.cgu.edu.tw/pub/KNOPPIX/
    The .iso you want is
    LiveZope_CAS_LAM2P-3.1.iso
    Since you are outside Taiwan and thus the connection gets regularly broken you would need to use the command
    wget -c ftp://math.cgu.edu.tw/pub/KNOPPIX/Li..._LAM2P-3.1.iso
    to obtain this file.
    This has a number of maths related projects as well as LAMP and Zope based servers. If you email the developer
    cchuang@mail.cgu.edu.tw
    he may be able to include some of your maths projects in future releases.
    Regards,
    Mark Preston

Similar Threads

  1. umount memory stick
    By Ming in forum MS Windows & New to Linux
    Replies: 3
    Last Post: 11-03-2005, 07:37 PM
  2. Is there a HOWTO using CD with memory stick ?
    By Prayer in forum General Support
    Replies: 1
    Last Post: 09-14-2005, 11:06 PM
  3. Mounting a USB memory stick
    By pjafrombbay in forum Hardware & Booting
    Replies: 2
    Last Post: 05-03-2005, 06:58 AM
  4. Run Knoppix from a 256 MB memory stick ?
    By i2hhj in forum Laptops
    Replies: 7
    Last Post: 01-31-2005, 07:57 PM
  5. Problem using USB memory stick
    By hgpuke in forum General Support
    Replies: 2
    Last Post: 01-07-2004, 10:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


VINTAGE, HARMAN KARDON, MULTIMEDIA COMPUTER SPEAKERS:  #HK 195 picture

VINTAGE, HARMAN KARDON, MULTIMEDIA COMPUTER SPEAKERS: #HK 195

$35.00



Vintage Apple Computer Notepad 39 Sheets Lined Paper 11

Vintage Apple Computer Notepad 39 Sheets Lined Paper 11" x 8.5" Key Hole Striped

$19.95



Bunch of Macintosh LaserWriter NT Vintage Books ~ Owner's, Setup Guides picture

Bunch of Macintosh LaserWriter NT Vintage Books ~ Owner's, Setup Guides

$9.00



Vintage Hot Wheels 93 Camaro Car Computer 1.44 MB Floppy Disk Software RARE picture

Vintage Hot Wheels 93 Camaro Car Computer 1.44 MB Floppy Disk Software RARE

$19.99



Vintage Teac FD-235HF, C291 - 3.5

Vintage Teac FD-235HF, C291 - 3.5" PC Floppy Drive Reader 193077C291

$18.99



NMB KEYBOARD RT2258TW NMB PS/2 BEIGE 121944-101 REV A VINTAGE NEW OLD STOCK picture

NMB KEYBOARD RT2258TW NMB PS/2 BEIGE 121944-101 REV A VINTAGE NEW OLD STOCK

$25.99



AppleCD 300e Plus User's Guide ~ Apple Macintosh Book, Vintage MAC picture

AppleCD 300e Plus User's Guide ~ Apple Macintosh Book, Vintage MAC

$10.00



Introduction to APPLE WRITER Word Processing ~ Vintage Computer Book, Textbook picture

Introduction to APPLE WRITER Word Processing ~ Vintage Computer Book, Textbook

$8.50



VINTAGE APPLE POWER MACINTOSH 6500/250 DESKTOP COMPUTER POWERPC BOOTS picture

VINTAGE APPLE POWER MACINTOSH 6500/250 DESKTOP COMPUTER POWERPC BOOTS

$249.50



Vintage Comfort Keyboard Systems Ergomagic Mechanical AT/PS2 Keyboard picture

Vintage Comfort Keyboard Systems Ergomagic Mechanical AT/PS2 Keyboard

$134.99