10-17-2016
You can't "format the file using vfat". The underlying file system determines the way a file is stored. File systems include ufs (unix file system), ext(2,3,4) (extended fs, linux), vfat (msdos), and others.
If you use e.g. a preformatted external disk, chances are it was formatted as vfat.
Last edited by RudiC; 10-17-2016 at 02:42 PM..
Reason: typo
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I have to do a search on a zip files whose sizes vary from 1GB to 1.5GB.
I dont want to unzip it since if it goes beyond 2GB.......
also will unzip -p filename | grep create any problems, will it unzip the whole file or will it unzip it piece by piece??
I appreciate your inputs...
... (1 Reply)
Discussion started by: baanprog
1 Replies
2. UNIX for Dummies Questions & Answers
Hi folks,
I have a big problem.... and need help from your experience/knowledge.
I previously install and use FREEBSD 7.0 release on my storage/backup
file server, for some reason, I can not transfer any files that is bigger
than 1GB. If I transfer it to Freebsd file server, the system... (2 Replies)
Discussion started by: bsdme2
2 Replies
3. Shell Programming and Scripting
Hi,
I'm trying to use sed within a shell script (bash, running ubuntu). The command works fine from the command line, but when I use it within the script, rather than creating a file with the name I've specified, it creates one that ends with a question mark '?' when you use ls, e.g.... (3 Replies)
Discussion started by: jennykay
3 Replies
4. Shell Programming and Scripting
I have the following awk script to which I pass the file
>
10 0 0
10 0 0
>
12.997 0 5.71132
12.9098 0.0687626 5.48855
12.7506 0.174324 5.13225
12.5913 0.262662 4.80643
12.4316 0.335652 4.50283
12.2717 0.394598 4.21542
12.1113 0.440399 3.93957
11.9506 0.473646 3.67148
11.7894... (2 Replies)
Discussion started by: kristinu
2 Replies
5. Shell Programming and Scripting
I have a script that runs ditto for me, and occasionally (if I exit the script while ditto is running in the background) it will leave an empty file named 0 in the script's directory. The next time I run the script, it generates incorrect data because of this file. I know I can easily insert a... (1 Reply)
Discussion started by: reid
1 Replies
6. Shell Programming and Scripting
I have a script that runs ditto for me, and occasionally (if I exit the script while ditto is running in the background) it will leave an empty file named 0 in the script's directory. The next time I run the script, it generates incorrect data because of this file. I know I can easily insert a... (1 Reply)
Discussion started by: reid
1 Replies
7. Shell Programming and Scripting
Hi All,
I have a script that does daily checks on my storage environment and is run from an AIX host.
The script currently works great but I have been changing and updating bits of it to make it easier for my lesser colleagues to understand :p
However now with the updates I have made I... (1 Reply)
Discussion started by: colinwilson1303
1 Replies
8. Shell Programming and Scripting
Hi All,
I am using a informatica job to create a csv file and a unix script the mail the generated file.Everything is working fine but I am not seeing leading zeros in the csv file sent in the mail.These zeros were present when the .csv file was generated by informatica procees.
Is there any... (11 Replies)
Discussion started by: karthik adiga
11 Replies
9. Red Hat
Hi,
I have created a test script like this :
# cat script1.sh
DAY=$(date +%d)
MONTH=$(date +%b)
YEAR=$(date +%Y)
BC01="Blast_BC01"
BC15="Blast_BC15"
DIR1="$MONTH$YEAR_$BC01"
DIR2="$MONTH$YEAR_$BC07"
DIR3="$MONTH$YEAR_$BC15"
if ;then
mkdir -p "$YEAR/$DIR3"
fi
#
When I... (5 Replies)
Discussion started by: anaigini45
5 Replies
10. Shell Programming and Scripting
I am new to Linux. Using latest version of Ubuntu.
I want to make a script that creates a 1GB file filled with zeros using dd and then formats the file as vfat with a label of "MYFILE".
If anyone can help me it would be appreciated. (1 Reply)
Discussion started by: amandasaza08
1 Replies
MKFS(8) System Manager's Manual MKFS(8)
NAME
mkfs - build a Linux file system
SYNOPSIS
mkfs [-V] [-t fstype] [fs-options] filesys [blocks]
DESCRIPTION
mkfs is used to build a Linux file system on a device, usually a hard disk partition. filesys is either the device name (e.g. /dev/hda1,
/dev/sdb2), or a regular file that shall contain the file system. blocks is the number of blocks to be used for the file system.
The exit code returned by mkfs is 0 on success and 1 on failure.
In actuality, mkfs is simply a front-end for the various file system builders (mkfs.fstype) available under Linux. The file system-spe-
cific builder is searched for in a number of directories like perhaps /sbin, /sbin/fs, /sbin/fs.d, /etc/fs, /etc (the precise list is
defined at compile time but at least contains /sbin and /sbin/fs), and finally in the directories listed in the PATH environment variable.
Please see the file system-specific builder manual pages for further details.
OPTIONS
-V Produce verbose output, including all file system-specific commands that are executed. Specifying this option more than once
inhibits execution of any file system-specific commands. This is really only useful for testing.
-t fstype
Specifies the type of file system to be built. If not specified, the default file system type (currently ext2) is used.
fs-options
File system-specific options to be passed to the real file system builder. Although not guaranteed, the following options are sup-
ported by most file system builders.
-c Check the device for bad blocks before building the file system.
-l filename
Read the bad blocks list from filename
-v Produce verbose output.
BUGS
All generic options must precede and not be combined with file system-specific options. Some file system-specific programs do not support
the -v (verbose) option, nor return meaningful exit codes. Also, some file system-specific programs do not automatically detect the device
size and require the blocks parameter to be specified.
AUTHORS
David Engel (david@ods.com)
Fred N. van Kempen (waltje@uwalt.nl.mugnet.org)
Ron Sommeling (sommel@sci.kun.nl)
The manual page was shamelessly adapted from Remy Card's version for the ext2 file system.
SEE ALSO
fs(5), badblocks(8), fsck(8), mkdosfs(8), mke2fs(8), mkfs.bfs(8), mkfs.ext2(8), mkfs.ext3(8), mkfs.minix(8), mkfs.msdos(8), mkfs.vfat(8),
mkfs.xfs(8), mkfs.xiafs(8)
AVAILABILITY
The mkfs command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
Version 1.9 Jun 1995 MKFS(8)