Sunday, May 31, 2009

Format USB drive in linux

http://www.cyberciti.biz/faq/howto-format-usb-pen-drive/

$ sudo mkfs.ext3 /dev/sda1

To see the list of mounted drives, do
$ mount | grep /media
/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush)

To unmount do
$ umount /dev/sdb1

http://www.pgts.com.au/cgi-bin/psql?blog=0808&ndx=b002

Finally create a folder called "games" in the root of the Micro SD disk. You can copy .NDS games into here. While I was about it I created some additional folders, called "pictures", "music" and documents. This enabled the kids to use the Micro SD as memory stick when it wasn't being used as part of the R4DS. Here is a summary of the commands to use for Linux. Take Note: This example uses the values of /dev/sdb1 and the mount point of /media/disk -- As stated earlier, This may vary according to the version and hardware -- Substitute the appropriate device name and/or mount points, for your system, in the commands below:

1. umount /media/disk
2. sudo mkfs.vfat -I -F 32 -v /dev/sdb1
3. Mount the device again (just unplug it and plug it again -- if you have automount, or use "mount" if you know the command)
4. Change directory to the location where you downloaded the RAR file, and enter this command:
unrar x English-1.18.rar
5. chdir English
6. cp -rp * /media/disk/
7. mkdir /media/disk/games /media/disk/pictures /media/disk/music
8. You can now copy games to the /media/disk/games folder.
9. umount /media/disk
(or use "Safely Remove" option).

If you are a windoze user, (what are you doing reading this blog?), these commands should work:

1. Use WinZip to upack the RAR, make sure that you preserve the Folders. Copy it to a separate folder (eg. C:\FOO)
2. Insert the USB stick (with the Micro SD in it). Determine which drive it has mounted as. (Check with Windoze Explorer). I'll assume that it is drive E:. Substitute the appropriate drive.
3. format e: /fs:fat32
4. e:
5. xcopy /s c:\foo\English\*
6. mkdir games
7. mkdir pictures
8. mkdir music

No comments: