Sponsored Content
Full Discussion: Format question
Top Forums UNIX for Dummies Questions & Answers Format question Post 97818 by Perderabo on Thursday 2nd of February 2006 02:19:39 PM
Old 02-02-2006
Often there is a label on the drive. The drive should have come with documentation, look though the docs. Look at the manufacturers web site...they get this question a zillion times a day and they have all info on the web. Or contact the manufacturer and ask.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

format and pkginfo -l question

I have a Solaris 2.6 box flagging an "Error block: 308918" in the messages file when I execute a pkginfo -l. pkginfo with no flags returns no errors. I think I need to use format to mark this block and then restore the database used by pkginfo for backup. Any advice/input welcome. Thanks (4 Replies)
Discussion started by: 98_1LE
4 Replies

2. Shell Programming and Scripting

Date format question

I have a string that looks like this: 2008 04 09 18 45 30 0 I would like to convert it to a date format like this: Wed Apr 09 18:45:30.000 GMT 2008 I have been searching all over and can't find anything to help me. I am using ksh on a sun solaris unix machine. Thank you. Allyson (2 Replies)
Discussion started by: ajgwin
2 Replies

3. Shell Programming and Scripting

awk/nawk question to format a file

Hi, I am new to awk/nawk, needs help. I want to merge the rows having emplid attribute same into a single row in the following file. In actual this kind of file will have around 50k rows. Here is my input file id|emplid|firstname|dep|lastname 1|001234|test|1001|1 2|002345|test|1032|2... (7 Replies)
Discussion started by: kumar04
7 Replies

4. Solaris

Disk Format Question

Wondering if anyone could tell about how long it will take to perform 3 passes on a 72 GB disk? I have a Sun V240 and will have to format all 4. Thanks. (1 Reply)
Discussion started by: buckhtr77
1 Replies

5. Solaris

SFTP file format question

Hi, We here at State of Iowa are trying to SFTP an ascii text file off of an IBM server over to our DOL SUN Server using Solaris 5.8. After doing the secure handshake login all I am doing at present is "sftp> get testfile". Somehow in pulling the file in from the IBM server to the SUN server it... (2 Replies)
Discussion started by: wsiefkas
2 Replies

6. Shell Programming and Scripting

Retaining the Unix CSV format in Excel format while exporting

Hi All, I have created a Unix Shell script whch creates a *.csv file and export it to Excel. The problem i am facing is that Users wants one of the AMOUNT field in comma separted values. Example : if the Amount has the value as 3000000 User wants to be in 3,000,000 format. This Amount format... (2 Replies)
Discussion started by: rawat_me01
2 Replies

7. Shell Programming and Scripting

Converting windows format file to unix format using script

Hi, I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix. My requirement here is that i want to do it automatically using a... (5 Replies)
Discussion started by: sarbjit
5 Replies

8. Shell Programming and Scripting

perl module to convert xlsx format to xls format

Hi Folks, I have written a perl script that reads data from excel sheet(.xls) using Spreadsheet::ParseExcel module. But the problem is this module doesn't work for excel sheets with extension .xlsx. I have gone through Spreadsheet::XLSX module with which we can read from .xlsx file directly.... (1 Reply)
Discussion started by: giridhar276
1 Replies

9. Shell Programming and Scripting

Question about awk format

Hi, Guys, There is one question about AWK format. Here is the code: gawk -F: '/^Dan/ {print "Dan's phone number is ",$2}' lab3.data An syntax error will come out because the quote mark between Dan and s and first quote mark are recognized as a quote pair. I want to get the input like this:... (5 Replies)
Discussion started by: franksunnn
5 Replies

10. UNIX for Beginners Questions & Answers

Format Question

Hello friends i have a file that outputs like this: lineA lineB lineC I would like it to format it like this as output: 'lineA','lineB','lineC' Can you help? Thank you (2 Replies)
Discussion started by: DallasT
2 Replies
mformat(1)						      General Commands Manual							mformat(1)

NAME
mformat - mtools utility to add a DOS file system to a low-level formatted diskette SYNOPSIS
mformat [-t tracks] [-h heads] [-s vectors] [-l volumelabel] drive: OPTIONS
Specifies the number of tracks (not cylinders) on the diskette. Specifies the number of heads (sides) on the diskette. Specifies the num- ber of sectors per track. Specifies the volume label. This is an optional option. DESCRIPTION
Note You must specify the floppy disk storage device that is to be formatted. If you do not specify a device, or if a device is not found, the command may incorrectly format a SCSI device which could be a system or data disk. The mformat command adds a minimal DOS compatible file system (boot sector, FAT, and root directory) to a UNIX formatted diskette. If the diskette is unformatted, you must low-format the disk. You can do this with a PC system, or on Tru64 UNIX using either the scu utility or the fddisk utility, depending on your floppy drive. Tru64 UNIX supports both FDI and SCSI attached 3.5" floppy drives with DD, HD, or ED media. Not all floppy drives are compatible with ED media. The following track/head/sector values are supported: --------------------------------------------------------------- Media Capacity Tracks Heads Sectors type KB/MB Bytes Sectors -t -h -s --------------------------------------------------------------- DD 720KB 737280 1440 80 2 9 HD 1.44MB 1474560 2880 80 2 18 ED 2.88MB 2949120 5760 80 2 36 --------------------------------------------------------------- To format a diskette for other than the ED 2.88MB default capacity, you must specify the number of sectors per track with the -s option. No error is returned if you use mformat to put an ED file system onto an HD floppy, but you will get errors from other utilities if you try to write beyond the physical end of the media. RESTRICTIONS
The following restrictions apply: The mformat command requires a low-level format utility from UNIX. The mformat command does not detect (or record) bad block information. EXIT STATUS
The following exit values are returned: Success. Failure. EXAMPLES
In the following example, a SCSI floppy diskette is formatted at the ED 2.88MB capacity, then a DOS file system is initialized with mfor- mat: $ /sbin/scu -f /dev/rdisk/dsk/6a format density ED $ mformat a: In the following example, an FDI floppy diskette is formatted at the HD 1.44MB capacity, then a DOS file system is initialized with mformat, a file is copied to the diskette, and the mdir command is used to check the contents of the diskette. The mlabel command is used to add a label and mdir is used to again check the diskette contents. Finally, a DD file system is placed on the diskette, mcopy is used to place a file on it, and mdir is used to verify the diskette contents: $ fddisk -fmt /dev/rfd0a NOTE: Setting interleave factor to ``-i2:4''. Use ``-i<nnn>[:<ccc>]'' option to override. Disk type: 3.50 inch, HD (1.44MB) Number of sectors per track: 18 Number of surfaces: 2 Number of cylinders: 80 Sector size: 512 interleave factor: 2:4 Formatting disk... Percentage complete: Format complete, checking... Quick check of disk passes OK. $ mformat -s 18 a: $ mcopy README a: Copying README $ mdir a: Volume in drive A has no label Directory for A:/ README 769 6-04-97 8:59a 1 File(s) 1456640 bytes free $ mlabel a: Volume in drive A is unlabeled Enter the new volume label (11 characters): hddisk $ mdir a:Volume in drive A is hddisk Directory for A:/ README 769 6-04-97 8:59a 1 File(s) 1456640 bytes free $ mformat -s 9 -l dddisk a: $ mcopy README a:README.1 $ mdir a: Volume in drive A is dddisk Directory for A:/ README 1 769 6-04-97 9:16a 1 File(s) 729088 bytes free In the following example, an unformatted 2.8Mb floppy diskette is formatted using the scu command, followed by the mformat command. Once it is formatted by both the scu and mformat commands, it is ready for use: $ /sbin/scu -f /dev/disk/floppy format density ED $ mformat -t 80 -h 2 -s 36 a: FILES
Executable file SEE ALSO
Commands: mlabel(1), mtools(1) Utilities: fddisk(8), scu(8) Floppy disk interface: fd(7) mformat(1)
All times are GMT -4. The time now is 08:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy