[opensuse] formatting a flash drive
I'm trying to run rsync against a hard drive directory to a usb flash drive directory and I'm getting errors about can't change the permissions. Currently, it's mkdosfs -F 32 What should a flash drive be formated as (specifically if I want to run rsync to it) ? -- Duaine Hechler Piano, Player Piano, Pump Organ Tuning, Servicing & Rebuilding Reed Organ Society Member Florissant, MO 63034 (314) 838-5587 dahechler@charter.net www.hechlerpianoandorgan.com -- Home & Business user of Linux - 10 years -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Duaine & Laura Hechler wrote:
I'm trying to run rsync against a hard drive directory to a usb flash drive directory and I'm getting errors about can't change the permissions.
Currently, it's mkdosfs -F 32
What should a flash drive be formated as (specifically if I want to run rsync to it) ?
Your flash drive is fine, change your rsync options. I suspect you are trying to use rsync -a. '-a' implies -rlptgoD. You are not going to preserve -l (links) -p (permissions) -g (group) -o (owner) -D (special devices) on a fat32 file system. Just change your rsync options to -rt and you should be fine. If you need to preserve everything, then yes reformat. google is your friend: (http://sathyasays.com/2007/06/13/formatting-usb-pen-drive-in-linux-using-ter...) nsert your USB pen drive. Let it get detected and mounted. Open Terminal. Type The Following commands 1. dmesg |tail –> here the ‘|’ key is the pipe, ie, the key before the backspace key(the upper one, so press shift) You’ll get something like sathya@shaman:~$ dmesg |tail [ 9921.681164] sda: Write Protect is off [ 9921.681174] sda: Mode Sense: 23 00 00 00 [ 9921.681178] sda: assuming drive cache: write through [ 9921.709138] SCSI device sda: 4030464 512-byte hdwr sectors (2064 MB) [ 9921.720951] sda: Write Protect is off [ 9921.720963] sda: Mode Sense: 23 00 00 00 [ 9921.720967] sda: assuming drive cache: write through [ 9921.721225] sda: [ 9921.727896] sd 0:0:0:0: Attached scsi removable disk sda [ 9921.744187] sd 0:0:0:0: Attached scsi generic sg0 type 0 Note the terms in bold. In your system it will be different, maybe sdb or something. Whatever it may be, make sure to substitute it in the commands below, else your hard disk may get formatted. 2. Unmount your pen drive by using sudo umount /dev/sda (In your case, please substitute sda with the appropriate device, listed above. 3. use the mkfs.vfat command to format to FAT32 filesystem, or mkfs.ext3 to format to ext3 filesystem sudo mkfs.vfat -n ‘Label’ -I /dev/sda Replace Label with the name you want the pen drive to have. 4. That’s it! When done formatting, you’ll be returned to the prompt sathya@shaman:~$ mkfs.vfat -n ’sathya’ -I /dev/sda mkfs.vfat 2.11 (12 Mar 2005) sathya@shaman:~$ Remove and insert the pen drive to have mounted again! -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
David C. Rankin
-
Duaine & Laura Hechler