Creating disk images


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Creating disk images
# 1  
Old 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...
# 2  
Old 10-27-2003
If anyone else has this problem,
/usr/src/linux/Documentation/ramdisk.txt explains it in detail Smilie just avoid using /dev/ram0 O.o
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating a script to download images from multiple cameras using ghoto2

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

2. Solaris

Need help in creating script for disk mirror and backup

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

3. Solaris

Trouble creating a disk partition slice (EFI)

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

4. Shell Programming and Scripting

Bash Script to find/sort/move images/duplicate images from USB drive

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

5. Solaris

Unable to use same disk for creating two metadevicse

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. Linux

Creating a bootable dvd/cd disk

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

7. HP-UX

Creating a bootable disk in 9.10

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

8. UNIX for Advanced & Expert Users

creating thumbnails of images

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

9. Filesystems, Disks and Memory

Creating a Mirror RAID With Existing Disk

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
Login or Register to Ask a Question