Find the answer to your Linux question:
Results 1 to 4 of 4
Hi all, I am using GNU/Linux with kernel 2.4.29. When I copying a file using the following command: Code: cp /root/speakfb-7.6a.zip /mnt/usb where /mnt/usb is the dir at which I ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    2

    file name changed when copying

    Hi all,
    I am using GNU/Linux with kernel 2.4.29.
    When I copying a file using the following command:
    Code:
    cp /root/speakfb-7.6a.zip /mnt/usb
    where /mnt/usb is the dir at which I mount my usb stick (mass storage),
    I get a same file named 'speakfb-.6a' in the usb stick.
    Why is the file name changed?
    I have remount the usb stick and tryed it a lot of times, but get the same
    result.
    Any ideas?
    Thanks!

  2. #2
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    Quote Originally Posted by boullist View Post
    Any ideas?
    Thanks!
    Not the faintest :S

    What happens if you do this?
    Code:
    cp /root/speakfb-7.6a.zip /mnt/usb/speakfb-7.6a.zip
    And is the problem specific for this file, or do (almost) all filenames change? What happens if you copy the file to another directory, /home/$USERNAME for example? And if you cp the file from that directory to the usb?

  3. #3
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Quote Originally Posted by boullist View Post
    Hi all,
    I am using GNU/Linux with kernel 2.4.29.
    When I copying a file using the following command:
    Code:
    cp /root/speakfb-7.6a.zip /mnt/usb
    where /mnt/usb is the dir at which I mount my usb stick (mass storage),
    I get a same file named 'speakfb-.6a' in the usb stick.
    Why is the file name changed?
    I have remount the usb stick and tryed it a lot of times, but get the same
    result.
    Any ideas?
    Thanks!
    Can you run the following against the USB stick after you copy the file
    Code:
    ls -l spea*
    file spea*
    Post the result back here.

  4. #4
    Just Joined!
    Join Date
    Jun 2007
    Posts
    2

    problems going on

    The result of 'ls -l spea*' is as follows.
    Code:
    -rwxr-xr-x  1 root root 705862 2007-06-12 07:20 speakfb-.6a
    And the result of 'file spea*' is as follows.
    Code:
    speakfb-.6a: Zip archive data, at least v2.0 to extract
    And note that the name of some of other files also be changed when copying to the usb stick (flash memory), while some are not. But the 'cp' command works well with the native disks and the usb mobile disks (hard drive).
    I am very curious about the reason and want to fix the problem.

Posting Permissions

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