08-17-2009
Quote:
Originally Posted by
figaro
Moreover, I regularly need to dos2unix files coming from USB sticks from Windows machines anyway, so the option seems so superfluous.
dos2unix(1) only tranlates carriage return + linefeed (Dos/Windows end of line) to linefeed only (Unix and MAC end of line), it does nothing with filesystems.
Windows cannot mount or read Unix filesystems unless it has had a utility installed to enable it to do so, so a USB stick to be used to transfer files between Windows and Unix is best formatted with a NTFS, FAT32 or DOS filesystem which both Linux and Windows can mount and read.
10 More Discussions You Might Find Interesting
1. Linux
Hello Everybody
I am planning to install Fedora core 8 on an extra PC I have; what I wanna do is to boot from a USB stick then install Fedora from an ISO image I already have via FTP. Could any one tell me how to create bootable USB Stick for Fedora as I already found how to install from FTP... (0 Replies)
Discussion started by: ahmed_nasr2001
0 Replies
2. UNIX for Dummies Questions & Answers
I have a P-Series Machine running AIX 5.3, it has a USB Port on the front of the server, can I use a USB Stick on AIX platforms?? if so how..:rolleyes: (2 Replies)
Discussion started by: BEVAN
2 Replies
3. BSD
I inserted a 8GB usb stick in a number of machine with FreeBSD 7.1, but the medium was not detected:
$ dmesg | grep MB
usable memory = 4263022592 (4065 MB)
avail memory = 4082540544 (3893 MB)
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
ad0: 238475MB <WDC WD2500BEVT-00ZCT0... (6 Replies)
Discussion started by: figaro
6 Replies
4. Filesystems, Disks and Memory
Dummies questions, perfect for this. I cannot mount my idiotic usb stick on Slackware, I input the following on non-graphic mode as root:
Mount -t vfat /dev/sdc1/usbstick
usbstick is the folder i created for mounting my USB, the file system is FAT, and everytime I input that I get some kind... (2 Replies)
Discussion started by: Dax01
2 Replies
5. Shell Programming and Scripting
Hello,
i am using a solaris thinclient that tries to connecting to a terminalserver. (RDP) Everything works fine, but the usb redirection. If i put in a usb stick i always get 2 usb-drives mounted. If i look in /tmp/SUNWut/mnt/<name of the host> i see 2 devices. One with the name of the... (2 Replies)
Discussion started by: anarcy
2 Replies
6. Ubuntu
Hey Guys
I have an Ubuntu CD and I was thinking of creating like a bootable hard drive with various OS so that I can just boot OSs with t drive and not require the CDs. I was just wondering is there a way I can do this, like have Ubuntu boot from a USB stick? If yes how is that possible(even if I... (3 Replies)
Discussion started by: rbansal2
3 Replies
7. SCO
hi
Howto mount an USB stick under SCO 5.0.7?
BTW ist it possible to mount USB stick in the command line using 'tools' at the Boot: prompt from OpenServer Release 5.0.7 installation CD? (1 Reply)
Discussion started by: ccc
1 Replies
8. Ubuntu
I'd like to install the OS on my stick. I would like to be able to save my works there and install apps or customize the OS.
What can I do
Ps. At home I use an iMac, but in the school where I work there are only PC...
Ty (2 Replies)
Discussion started by: Fabio_Puricelli
2 Replies
9. SCO
I am trying to use a USB (Pen?) drive on Unixware 7.1.4.
The USB stick is in the machine and the machine recognises it when I enter usbprobe as follows:
Path - Address Description
-----------------------------
+++++++ BUS #2
0 - 1 - HUB "UHCI Root Hub"
1 - 2 - HID "Chicony Wireless Device"... (1 Reply)
Discussion started by: BernP
1 Replies
10. BSD
I would probably set all my rubber points here to get some real help for creating a boot device on a usb-stick. There is no CD-drive on this machine, thats why I need to use a usb-stick. And scrumming in a CD-drive to fuddle around in the fstab or something like that is out of reach.
My wisdom so... (9 Replies)
Discussion started by: 1in10
9 Replies
LEARN ABOUT DEBIAN
fromdos
tofrodos(1) General Commands Manual tofrodos(1)
NAME
tofrodos - Converts text files between DOS and Unix formats.
SYNOPSIS
fromdos [ options ] [file...]
todos [ options ] [file...]
DESCRIPTION
DOS text files traditionally have carriage return and line feed pairs as their newline characters while Unix text files have the line feed
as their newline character. fromdos converts text files from the DOS format to the Unix format, while todos converts text files from the
Unix format to the DOS format.
The programs accept multiple filenames and wildcards as their arguments. You may also use them in a pipe. If either program finds its
input redirected, it will process stdin and place the output on stdout.
OPTIONS
-a Always convert. If converting from DOS to Unix, this option will cause the program to remove ALL carriage returns. The default is to
remove carriage returns only if they are followed by line feeds. If converting from Unix to DOS, this option will cause the program
to convert ALL linefeeds to carriage return pairs. The default is to convert linefeeds only if they are not already preceded by a
carriage return.
-b Make a backup of original file. The original file is renamed with the original filename and a .bak extension. For example, a file
called "filename.ext" becomes "filename.ext.bak". Important: the program behaves differently if it is compiled for DOS (as compared
to being compiled for Windows, Linux, Mac OS X or other systems). In view of the filename restrictions present on DOS, the DOS exe-
cutable will strip the original file extension, if any, from the file before appending the .bak extension. For example, "file-
name.ext" becomes "filename.bak".
-d Convert from DOS to Unix. This forces the program to convert the file in a particular direction. By default, if the program is named
fromdos or dos2unix, it will assume that the input file is in a DOS format and convert it to a Unix format. If the program is named
todos or unix2dos, it will assume that the input file is in a Unix format and convert it to a DOS format. Using the -d option forces
the program to convert from a DOS format to a Unix format regardless of how the program is named. Likewise, using the -u option
forces the program to convert from a Unix format to a DOS format regardless of the name of the program.
-e Abort processing on any error in any file. Normally, the program will simply skip to process the next file on the command line when
it encounters any errors. This option causes it to abort on errors.
-f Force: convert even if the file is not writeable (read-only). By default, if fromdos or todos finds that the file does not have
write permission, it will not process that file. This option forces the conversion even if the file is read-only.
-h Display a short help screen on the program usage and quit.
-l<logfile>
Log error messages to <logfile>. Note that if your command line has an error, such as when you specify an unknown option, the error
message for the command line option error will be issued to stderr instead and not logged.
-o Overwrite the original file (no backup). This is the default.
-p Preserve file ownership and time. On systems like Linux, the file ownership will only be preserved if the user is root, otherwise it
will just set the file time and silently fail the change of file ownership. If you want a warning message when the file ownership
cannot be changed, use -v.
-u Convert from Unix to DOS. See the -d option above for more information.
-v Verbose.
-V Show version message and quit.
AUTHOR
The program and its documentation are copyrighted (c) 1996-2008 by Christopher Heng. All rights reserved. They are distributed under the
terms of the GNU General Public License Version 2.
The latest version of tofrodos can be obtained from
http://www.thefreecountry.com/tofrodos/index.shtml
2011 Version 1.7.9 tofrodos(1)