10-07-2015
Cannot find logical file format for BSD file headers.
Hi. Unix rookie here. Been looking for a few days for reference documents on how BSD UNIX lays the logical file format onto a disk. Goal is to view/edit with hex editor for data repair. Lots of docs are available for how to use Unix commands (like xxd), but I want to learn the map of how Unix stores the file header and file data and cluster information on the hard disk. I've asked on a few forums and emailed companies (like R-tt regarding R-Studio for Mac) and have no answer yet. Anyone know where I can read about this?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
The purpose of those comands are to find the newest file in a directory acvrdind to system date, and it has to be recursively found in each directory.
The problem is that i want to list in a long format every found file, but the commands i use produce unexpected results ,so the output lists in a... (5 Replies)
Discussion started by: alexcol
5 Replies
2. UNIX for Dummies Questions & Answers
Can anyone help me how to include COLUMN HEADER when spooling file to .CSV format through SQL statement.
Thanks,
Akbar (4 Replies)
Discussion started by: s1a2m3
4 Replies
3. Shell Programming and Scripting
Hi ,
I have a typical situation. I have 4 files and with different headers (number of headers is varible ).
I need to make such a merged file which will have headers combined from all files (comman coluns should appear once only).
For example -
File 1
H1|H2|H3|H4
11|12|13|14
21|22|23|23... (1 Reply)
Discussion started by: marut_ashu
1 Replies
4. Shell Programming and Scripting
I have to find the specific formatted file is present in the received list in the directory, for which I have written:
file_list=`ls -lrt /tmp/vinay/act/files |grep "$cdate"| awk '{print $9}'`
while read fileStr
do
find $file_list $fileStr > /dev/null
status=`echo $?`
if ; then
... (3 Replies)
Discussion started by: IND123
3 Replies
5. Shell Programming and Scripting
Hi All,
We are copying all the files into ARCHIVE directory after we process them. We are doing this process from last 2 years, now we have a lot of files in ARCHIVE directory.
Now I need to find when the first file is copied into this directory?
If I Issue,
ls -l /ARCHIVE/*.* | tail -1... (3 Replies)
Discussion started by: Raamc
3 Replies
6. Shell Programming and Scripting
I have an issue with a korn shell script that I am writing. The script parses through a configuration file which lists a heap of path/directories for some files which need to be FTP'd. Now the script needs to check whether there are any files which have not been processed and are X minutes old.
... (2 Replies)
Discussion started by: MickAAA
2 Replies
7. Shell Programming and Scripting
Hi ,
I have a .txt file in which I have multiple headers, the header record starts with $ symbol...like the first column name is $Account.
I have to keep the header in the first line and delete all the remaining headers which are in the file.
I tried using sort adc.txt | uniq -u , but my... (7 Replies)
Discussion started by: gaur.deepti
7 Replies
8. Shell Programming and Scripting
Hi I need to merge 4 files. The issue i am facing is all the files have headers and i do not want them in the final output file. Can anybody suggest how to do it? (5 Replies)
Discussion started by: Arun Mishra
5 Replies
9. UNIX for Dummies Questions & Answers
How do we append the file name to fasta file headers in multiple fasta-files in Linux? (10 Replies)
Discussion started by: Mauve
10 Replies
10. Shell Programming and Scripting
Hi All,
In the file names we have dates.
Based on the file format given by the user,
if any file is not existed for a particular date with in a given interval we should consider that file is missing.
I have the below files in the directory /bin/daily/voda_files.
... (9 Replies)
Discussion started by: nalu
9 Replies
LEARN ABOUT DEBIAN
dvhtool
DVHTOOL(8) System Manager's Manual DVHTOOL(8)
NAME
dvhtool - Disk volume header manipulation tool
SYNOPSIS
dvhtool --device devicename [ option ]
dvhtool -d devicename [ option ]
DESCRIPTION
dvhtool is a utility for displaying SGI disk partition and volume header information as well as for copying files to and from the volume
header.
It is similar to the IRIX(tm) utility of the same name, however the options and usage are quite different. Also, the IRIX utility cannot
display partition and boot file information.
The disk volume header includes the disk partition table and the volume directory. The volume directory is an index to the files stored in
the volume header part of the disk. These files can be anything but are usually standalone programs (like sash, the SGI standalone shell).
The space available for files is usually limited to one, two or a few megabytes, this can only be changed by repartitioning the disk with
fx, the SGI disk formatting and partitioning tool or fdisk.
You must be root to invoke dvhtool. The device name can be /dev/sda for the first disk, /dev/sdb for the second, and so on.
dvhtool will also work on a file image of a disk volume header.
OPTIONS -d, --device devicename Specify the volume header device name (or file image)
--print-volume-header
Show volume header data only
--print-volume-directory
Show volume table of contents
--print-partitions
Show partition data
--print-all
Equivalent to all three above options
--vh-remove name
Remove volhdr file name.
--vh-to-unix name file
Copy volhdr file name to Unix file file
--unix-to-vh file name
Copy Unix file file to volhdr as name
--help Show usage information
SEE ALSO
fdisk(8)
IRIX tools: fx(1M), prtvtoc(1M), vh(7M).
AUTHORS
dvhtool was written by Ralf Baechle <ralf@oss.sgi.com>, Keith M. Wesolowski <wesolows@foobazco.org>, Tor Arntsen <tor@spacetec.no>, Guido
Guenther <agx@debian.org>.
4th Berkeley Distribution July 2000 DVHTOOL(8)