10-24-2003
Creating disk images
I'm sure this is an easy one to answer - how do I turn a directory into a disk image of the sort that is mountable via mount -o loop?
I've been playing with comressed ram disk images on floppies
(dd if=/dev/fd0 of=disk1.img.gz; gzip -d disk1.img), and it seems that when i mount them and alter their structure and contents, the image file itself remains unchanged. All I'd like to know is how to roll my own - I've been thinking about setting up a few 1.44 meg logical partitions so i can just dd them into files, but surely there's an easier way...
9 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hi there,
I'm not sure if this is possible, but here is what I'd like to do..
I have an existing 160GB drive in my Redhat 9.0 server that I would like to add an additional 160GB drive to and create a mirrored RAID of the first disk to the new disk. I would like to do this without having to... (2 Replies)
Discussion started by: sysera
2 Replies
2. UNIX for Advanced & Expert Users
Hi,
Is there any tool for Solaris (or Linux) to create thumbnails of .TIF/.pdf images? I heard of “Image Magick” but not much of info got to implement it. It must provide CLI tool so I can do for few millions of images by using scripting.
TIA
Prvn (0 Replies)
Discussion started by: prvnrk
0 Replies
3. HP-UX
I am trying to copy a HP-UX disk. Both the OS and H/W are quite old
HP-UX hpeval3 B.09.10 A 9000/382 080009789a46
I have a 1.5Gb disk and a new 2Gb disk. I have been using the following method to create the copy, which must be a bootable disk.
#mediainit /dev/rdsk/cEd1s0
(2Gb disk) cEd0s0... (9 Replies)
Discussion started by: malcqv
9 Replies
4. Linux
Hi all,
thanks for so many helps in many problems!
Can anyone guide, how to create a bootable cd/dvd from downloaded iso images of CentOS 5? I have collected all the iso in a dvd but it is not booting the system. Any response will be appreciable... (2 Replies)
Discussion started by: naw_deepak
2 Replies
5. Solaris
Hi ,
I tried creating two metadevices from same disk , but using different slices
it gave me an error saying that the new device overlaps with the earlier metadevice.
is there any rule that we cannot use same disk for two metadevices.
first i tried creating a concatenated volume from a... (2 Replies)
Discussion started by: Laxxi
2 Replies
6. Shell Programming and Scripting
Ultimately, I'm looking to create a script that allows me to plug in a usb drive with lots of jpegs on it & copy them over to a folder on my hard drive. So in the process of copying I am looking to hash check them, record dupes to a file, copy only 1 of the identical files (if it doesn't exsist... (1 Reply)
Discussion started by: JonaQuinn
1 Replies
7. Solaris
Hi all,
I am using SPARC Solaris 11.1 with EFI labelled disks.
I am new to ZFS file systems and slightly stuck when trying to create a partition (slice) on one of my LUNs.
EFI labels use sectors and blocks and I am not sure how exactly it works.
From here I can try and create a... (2 Replies)
Discussion started by: selectstar
2 Replies
8. Solaris
Hi,
I am very new to scripting. I need to create a script which does following.
Scenario:
First get the format command output echo | format
Insert the new disk to Solaris Server
Get Zpool status
format the new disk
( Here I need to select the new disk which have been inserted, I do... (1 Reply)
Discussion started by: praveensharma21
1 Replies
9. Shell Programming and Scripting
I should start by saying that I am totally new to linux...
I am trying to create a script that downloads images from multiple cameras into a specific folder on my machine. Ideally renaming the images as they are downloaded.
I have installed gphoto2 which as a command line interface that... (0 Replies)
Discussion started by: benpems
0 Replies
LEARN ABOUT SUSE
xfs_freeze
xfs_freeze(8) System Manager's Manual xfs_freeze(8)
NAME
xfs_freeze - suspend access to an XFS filesystem
SYNOPSIS
xfs_freeze -f | -u mount-point
DESCRIPTION
xfs_freeze suspends and resumes access to an XFS filesystem (see xfs(5)).
xfs_freeze halts new access to the filesystem and creates a stable image on disk. xfs_freeze is intended to be used with volume managers
and hardware RAID devices that support the creation of snapshots.
The mount-point argument is the pathname of the directory where the filesystem is mounted. The filesystem must be mounted to be frozen
(see mount(8)).
The -f flag requests the specified XFS filesystem to be frozen from new modifications. When this is selected, all ongoing transactions in
the filesystem are allowed to complete, new write system calls are halted, other calls which modify the filesystem are halted, and all
dirty data, metadata, and log information are written to disk. Any process attempting to write to the frozen filesystem will block waiting
for the filesystem to be unfrozen.
Note that even after freezing, the on-disk filesystem can contain information on files that are still in the process of unlinking. These
files will not be unlinked until the filesystem is unfrozen or a clean mount of the snapshot is complete.
The -u flag is used to un-freeze the filesystem and allow operations to continue. Any filesystem modifications that were blocked by the
freeze are unblocked and allowed to complete.
One of -f or -u must be supplied to xfs_freeze.
NOTES
A copy of a frozen XFS filesystem will usually have the same universally unique identifier (UUID) as the original, and thus may be pre-
vented from being mounted. The XFS nouuid mount option can be used to circumvent this issue.
In Linux kernel version 2.6.29, the interface which XFS uses to freeze and unfreeze was elevated to the VFS, so that this tool can now be
used on many other Linux filesystems.
SEE ALSO
xfs(5), lvm(8), mount(8).
xfs_freeze(8)