LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   impossible to transfer file from laptop to MP3 player (https://www.linuxquestions.org/questions/linux-newbie-8/impossible-to-transfer-file-from-laptop-to-mp3-player-4175462537/)

wuthering 05-18-2013 11:53 PM

impossible to transfer file from laptop to MP3 player
 
Hi,
when I want to transfer my MP3 files to my MP3 player, I click the right button of the mouse and the option "paste" does not appear .

Any idea?

ali.abry 05-19-2013 12:29 AM

try keyboard shortcut :
Ctrl+V

some time for me in ubuntu 12.04 this happens but keyboard shortcut works .

ceyx 05-19-2013 01:57 AM

Where you are trying to paste the file is 'read-only'

wuthering 05-19-2013 03:19 AM

Correct, the file is "read only" but how can I change the "properties" and be able to "write "?

era31415 05-19-2013 04:33 AM

It is not the file but the directory ceyx was talking about.

How are you locating the mp3 file ?

If you are browsing and trying to save from it, often web sites do not want you to download and save the files and will sometimes write javascript to disable right-click functions.

You might have better luck at the shell prompt using 'wget URL.mp3' to fetch from the web site into the current directory.

More specific advise could be given if we knew what you are trying to do in greater detail. Perhaps you might even tell what URL.

If it is attempting to copy a CD that requires specialised software. http://www.cyberciti.biz/faq/linux-r...g-audio-files/ Google 'rip CD linux' to find more pointers.

Ed Allen
era31415

wuthering 05-19-2013 06:18 AM

@Ed Allen:


cdparanoia is too complicated for me, it sucks.

Moreover, I just to convert my ogg files into mp3 format.

TobiSGD 05-19-2013 06:24 AM

Just to summarize: You want to copy MP3 files to your MP3 player, which is, I assume, formatted with FAT32 (most MP3 players are)? If not, please correct me.
Usually when the Paste entry in the menu is greyed out you have not the permissions to write at that directory. For FAT32 disks this usually means that you have not specified an UID/GID when mounting the disk, so that only root has privileges to write to it.

wuthering 05-19-2013 10:32 AM

@ TOBISGD:

correct: how can I mount my player in order to be able to copy-paste the files?

Thanx

TobiSGD 05-19-2013 11:15 AM

Assuming that your UID and GID are both 1000 (they are on many Linux distributions for the first user) try it with
Code:

mount -t vfat -o uid=1000,gid=1000 /dev/sdX /your-mount-point
where you have to replace /dev/sdX with the actual device and /your-mount-point with the directory where you want to mount the device.

wuthering 05-19-2013 12:01 PM

[root@localhost ~]# mount -t vfat -o uid=1000,gid=1000 /dev/sdX /ho
mount: le périphérique spécial /dev/sdX n'existe pas
[root@localhost ~]#

I don't know how to find "/dev/sdX"

TobiSGD 05-19-2013 12:10 PM

As I stated, you have to replace /dev/sdX with the actual device. Launch as root the command
Code:

fdisk -l
It will show all your storage devices, just choose the one that is your MP3 player. This is how it looks on my laptop when I attach my MP3 player to it:
Code:

root ~ ☺ # fdisk -l

Disk /dev/sda: 40.0 GB, 40020664320 bytes
32 heads, 32 sectors/track, 76333 cylinders, total 78165360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x48dde035

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              32    8000511    4000240  82  Linux swap
/dev/sda2  *    8000512    78165359    35082424  83  Linux

Disk /dev/sdb: 4043 MB, 4043309056 bytes
8 heads, 32 sectors/track, 30848 cylinders, total 7897088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x221e5780

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          32    7897087    3948528    b  W95 FAT32

As you can see I have one internal disk (40GB,/dev/sda) with two partitions and an external device (4GB, /dev/sdb) which contains one partition /dev/sdb1. This is the name you have to use for the mount-command.

wuthering 05-19-2013 12:37 PM

[root@localhost ~]# mount -t vfat -o uid=1000, gid=1000 /dev/sdb1 /home

Utilisation*:
mount [-lhV]
mount -a [options]
mount [options] <source> | <répertoire>
mount [options] <source> <répertoire>
mount <opération> <pointdemontage> [<cible>]

Options*:
-a, --all monter tous les systèmes de fichiers indiqués dans fstab
-c, --no-canonicalize ne pas canoniser les chemins
-f, --fake répétition, sauter l'appel système mount(2)
-F, --fork bifurquer pour chaque périphérique (utiliser avec -a)
-T, --fstab <chemin> autre fichier pour /etc/fstab
-h, --help afficher cette aide et quitter
-i, --internal-only ne pas appeler les assistants mount.<type>
-l, --show-labels afficher la liste de tous les montages avec les étiquettes
-n, --no-mtab ne pas écrire dans /etc/mtab
-o, --options <liste> liste séparée par des virgules d'options de montage
-O, --test-opts <liste> limiter l'ensemble de systèmes de fichiers (utiliser avec -a)
-p, --pass-fd <num> lire le mot de passe depuis le descripteur de fichier
-r, --read-only monter le système de fichiers en lecture seule (comme -o ro)
-t, --types <liste> limiter l'ensemble de types de système de fichiers
-v, --verbose expliquer les actions en cours
-V, --version afficher les informations de version et quitter
-w, --read-write monter le système de fichiers en lecture/écriture (par défaut)

-h, --help display this help and exit
-V, --version output version information and exit

Source*:
-L, --label <étiquette> synonyme de LABEL=<étiquette>
-U, --uuid <uuid> synonyme de UUID=<uuid>
LABEL=<étiquette> indiquer le périphérique par étiquette de système de fichiers
UUID=<uuid> indiquer le périphérique par UUID de système de fichiers
<périphérique> indiquer le périphérique par chemin
<répertoire> point de montage pour remontages (consultez --bind/rbind)
<fichier> fichier régulier pour configuration de périphérique boucle

Opérations*:
-B, --bind monter un sous-répertoire ailleurs (comme -o bind)
-M, --move déplacer un sous-répertoire ailleurs
-R, --rbind monter un sous-répertoire et tous les sous-montages ailleurs
--make-shared marquer un sous-répertoire comme partagé
--make-slave marquer un sous-répertoire comme esclave
--make-private marquer un sous-répertoire comme privé
--make-unbindable marquer un sous-répertoire comme non remontable
--make-rshared marquer récursivement un sous-répertoire complet comme partagé
--make-rslave marquer récursivement un sous-répertoire complet comme esclave
--make-rprivate marquer récursivement un sous-répertoire complet comme privé
--make-runbindable marquer récursivement un sous-répertoire complet comme non remontable

For more details see mount(8).
[root@localhost ~]#
who the fuck is the prick that corrupts my OS to print man page instead of the answer?when will they stop bugging me?

TobiSGD 05-19-2013 12:42 PM

Please watch your language.
Nobody is corrupting your OS, if someone gives you a command you have to use it in the exactly the same way as is written down, in this case you have caused the error by adding a space after the comma in -o uid=1000,gid=1000.
Also, mounting to /home is not a good idea, it will hide your users' home-directories, so that any files in it are inaccessible.


All times are GMT -5. The time now is 01:35 AM.