Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sun Feb 05, 2023 10:53 pm


Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.
     

Topic review - FreeBSD - How to retrieve the newfs command that was used to create an existing UFS filesystem
Author Message
Post subject: FreeBSD - How to retrieve the newfs command that was used to create an existing UFS filesystem  |  Post Posted: Mon Jul 22, 2013 9:55 am
FreeBSD - How to retrieve the newfs command that was used to create an existing UFS filesystem

Again, this is performed using the dumpfs FreeBSD utility. Quote man:
Quote:
# man dumpfs
DUMPFS(8) FreeBSD System Manager's Manual DUMPFS(8)

NAME
dumpfs -- dump file system information

SYNOPSIS
dumpfs [-f] [-m] filesys | device

DESCRIPTION
The dumpfs utility prints out the super block and cylinder group informa-
tion for the file system or special device specified, unless the -f or -m
flag is specified. The listing is very long and detailed. This command
is useful mostly for finding out certain file system information such as
the file system block size and minimum free space percentage.

If -f is specified, a sorted list of all free fragments and free fragment
ranges, as represented in cylinder group block free lists, is printed.
If the flag is specified twice, contiguous free fragments are not col-
lapsed into ranges and instead printed in a simple list. Fragment num-
bers may be converted to raw byte offsets by multiplying by the fragment
size, which may be useful when recovering deleted data.

If -m is specified, a newfs(8) command is printed that can be used to
generate a new file system with equivalent settings.

SEE ALSO
disktab(5), fs(5), disklabel(8), fsck(8), newfs(8), tunefs(8)

HISTORY
The dumpfs utility appeared in 4.2BSD.

FreeBSD 7.4 January 19, 2003 FreeBSD 7.4


Code:
# dumpfs -m /store2
# newfs command for /store2 (/dev/twed1s1)
newfs -O 2 -U -a 4 -b 32768 -d 32768 -e 4096 -f 4096 -g 16384 -h 64 -m 8 -o time -s 3907024000 /dev/twed1s1


Also see "How to read UFS filesystem super block information in FreeBSD" http://forum.ivorde.ro/how-to-read-ufs-filesystem-super-block-information-in-freebsd-t14761.html
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO