LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 09-03-2008, 06:35 AM   #16
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64
Posts: 506

Original Poster
Rep: Reputation: 32

Quote:
Originally Posted by keefaz View Post
Congrat Glore!
Now if you don't want to repeat the mistake with formating the USB drive, may be write a script like:
Script name: format_my_usb_drive.sh (or choose a better name, choose the program name is the most difficult thing in programming imho )
Code:
#!/bin/sh
mkdosfs -I -v /dev/sdb
(use whatever option you like for mkdosfs)
Then chmod +x format_my_usb_drive.sh
and execute it with: ./format_my_usb_drive.sh
The reason to make a script for this is as as you have written the name in the file, you won't be able to do the same mistake (format /dev/sda), and another reason is less words to type
You're right keefaz!!!
As soon as I get home I will create the script. No doubt mkdosfs is a powerful and risky command. I can assure that!!! :-)

This was the command I've used:

mkdosfs -I -F 16 /dev/sda (instead of sdb, of course :-(

What would you recommend to format the usb mp4 player? Do I need to use -F 16 (FAT)? If I use the command you've suggested, What filesystem will the mp4 have?


Thanks for always keeping in touch.
Glore2002.-

Last edited by glore2002; 09-03-2008 at 06:40 AM.
 
Old 09-03-2008, 07:44 AM   #17
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
from man mkdosfs, it seems that you don't need the -F 16 option, it will select it for you. If you wanted a Fat32 you have to use -F 32 (if I read correctly the man page). I used the -v option, because I like verbose mode
I would use a Fat32 filesystem if the drive size > 1 GB, else Fat16
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-compiling Slackware from scratch intens Slackware 7 01-15-2007 03:26 AM
Installing Slackware 10.2 from scratch dfresh Slackware - Installation 9 11-10-2005 02:44 PM
Slackware from Scratch? dhave Slackware 10 02-07-2005 05:04 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 06:11 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration