General :: Disk Image Starting At Specific Inode?
Mar 9, 2010
I deleted some files on the command line and would like to learn if it's possible to recover them. It's not a terrible thing if they are gone, but I want to see what I can do. The server is configured as a hardware RAID5+1 (ext3, Debian Stable) and I *really* don't want to take a dd of the entire disk.
ls -id gets me the inode value of the directory(155655)
I'd like to create a disk image starting at that specific inode. Then there is the issue of picking an outer boundary of the disk image. I'm hoping there's a dd/ext3 genius out there to advise.
View 1 Replies
ADVERTISEMENT
May 18, 2010
I want to record an internet radio station starting at 2:00am tomorrow morning. The specific program on the radio station lasts until 6:00am. The command I need to run to record the station is: Code:mplayer http://wjcu.jcu.edu:8001/listen.pls -ao pcm:file=indie_heat_of_the_night.wav -vc dummy -vo nullI'd use cron, but 1. I'm not sure how to and 2. it seems unnecessarily complicated for something that I only want to run once. If cron is the only/easiest solution, I guess I'll just have to resort to that, but I'd rather not.
View 12 Replies
View Related
Oct 27, 2010
So right now VNC is starting a session using :1. When I connect to that session, the terminal is logged in as root. I'd like for the terminal to be logged in as a different user as some of my end users are going to be using this and don't require such privileges. I found that I can "su" to a different user and start a new VNC daemon on :2 and when I connect to that session, the terminal is logged in as that user. What I want to do is get that to run at boot-up.
View 4 Replies
View Related
Nov 23, 2010
Im writing a script that extracts part of the path name:I drop a file in terminal and set the directory name of the file to x using dirname $0note: ( directory is different every time since not all files are from the same location)
ex.
x="/home/Downloads/yesterday/photo/.../image.png" /image.png
/.../ means I dont know the name of folders between but I know the path name always starts
[code]...
View 3 Replies
View Related
Jul 27, 2011
A function by name abc is called in many files. I want to copy all the lines with the function call to an output file.A simple grep on function name doesn't help me as the function call is spanning across multiple lines as follows:
abc(parameter1,
parameter2,
parameter3);
So I want to copy all the three lines (till semicolon) to the output file.The problem is because there are more than 200 calls for the same function and I cannot do it manually
View 2 Replies
View Related
Mar 25, 2010
I decided to take an old Gateway that I bought off a guy cheaply and turn it into a file and web server.I purchased copies of Debian 5.0.4 i386 disks (31 in all) on the advice of a friend, the disks weren't expensive, but now that Ive installed all the disks, I'm having a variety of errors
[443.110940 end request: I/O error, dev hde, sector 76021855
[443.111074] EXT3-fs error (device hde1): ext3_get_inode_loc: unable to read inode block - inode=2375715, block=9502724
INIT: cannot execute "/sbin/getty"
[Code]..
View 2 Replies
View Related
Apr 12, 2011
Is there a command to check specific processes that's using the most IO/disk usage? I know sar and ps but I want more specific details on IO on individual processes
View 5 Replies
View Related
Feb 2, 2010
Sorry I am not a linux user at all. I have a linux image that needs to be installed. I have the image on a USB drive. Not really sure what I should be doing, but local disk seemed to make sense, however, when I select the usb drive I get an error, that the image can not be found
View 2 Replies
View Related
Dec 27, 2010
I have a large qcow2 formatted disk image, which I use as storage. Often I need to move data to and from this disk image. I mount the disk using the qemu-nbd tool as follows:
modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 /host/disk100G.img
mount /dev/nbd0p1 /home/rup/disk
But disk access fails every now and then in the midst of some I/O operation with an "Input/output error". At that point I have to manually unmount the disk and re-mount it so that I can run the program again:qemu-nbd -d /dev/nbd0umount joborkhaki/What could be the reason for this? Is there a better tool that I can use to maintain a qcow2 disk image?
View 1 Replies
View Related
Jul 28, 2010
I am new to the Linux world and I am not sure if what I am trying to do is achievable or not. I am trying to make an image of my existing drives running Linux on a USB and I want to use the same image off the USB to clone more bootable hard drives. Something like what Ghost does in windows. The problem is using 'dd' the image is too big ( I have 1tb drives ) and then I am not sure how to convert these images back on to new drives so that they boot in the OS as well. i am not sure if there is a utility that would let you do that?
View 2 Replies
View Related
Apr 5, 2010
I want diskboot.img for fedora 12. How to get it.
View 1 Replies
View Related
May 17, 2010
How to boot an iso image from hard disk. I have created a linux live cd with remastersys. I want to test it. So I want to boot it from my hard disk.
View 3 Replies
View Related
Apr 6, 2010
How do I create/boot a ram image from a disk? I'd like to create a linux installation that is booted from a USB or CF drive and after boot does not access the disk.
View 4 Replies
View Related
Jun 15, 2011
I have a workstation dedicated to monitoring. The goal is to have multiple web sessions and other applications running across dual screens on multiple virtual desktops. I have a nice Perl/TK/wmctrl script that will automatically rotate the desktops. All is working great.
The problem is, I need a solution to automatically start the applications on the correct desktop, with the correct window size, in the correct location on the desktop. That way we can start the monitor boxes in the morning and have everything start in the correct place. It is a really cool effect to have wall mounted monitors with cube rotation showing off multiple graphs and more.
Do any of you pros know how to start an application with a specific window size and define where on the desktop it is placed? The box is running OpenSUSE 11.4 KDE. Is that kind of control possible?
View 1 Replies
View Related
Apr 6, 2010
If you have a hard disk image (including partition table, multiple partitions,...), is it possible to let Linux treat it as a regular hard disk?
By "regular hard disk" I mean I would like to have the image show up as, for instance, /dev/hdx and its partitions as /dev/hdx1,...
(I know I can mount one of the partitions in the image using "mount -o loop,offset=x ..." but I don't really like this option.)
View 2 Replies
View Related
Jul 9, 2010
I was using gparted from a live usb to resize an ext4 partition and it failed while running resize2fs. The error it gave was
Code:
resize2fs: The inode is from a bad block in the inode table while trying to resize /dev/sda5
please run 'e2fsck -fy /dev/sda5' to fix the filesystem after the aborted resize operation.
[code]...
View 1 Replies
View Related
Nov 16, 2010
I downloaded an raw SD card image that has two partitions. It caused some file system errors when I tried to dd it directly into an SD card. I am not sure if the card is defective or the image. Is there a way to examine this image without writing it to a physical card? Like trying to mount the partitions separately or checking the tables?
View 2 Replies
View Related
Jan 6, 2011
I recently installed Linux to run a few Linux based tools on a disk images I have, and I can't seem to copy the disk image over to my ext3 partition.
The particular distibution I'm using is BackTrack 4 r2, which is Ubuntu based. I can't seem to find specifically which version of Ubuntu is being used. The disk image is 108GB. It is currently located on a NTFS partition on a SATA hard drive connected directly to the computer. The ext3 partition is located on a second SATA hard drive connected to the same computer. It has 200GB total. I do not remember exactly how much free space it had but "df -h" showed a lot more than 108GB. The computer has 4GB of RAM and I gave it 8GB of swap space.
At this point it has been running for more than 12 hours. This is far longer than I would expect it to take had I been copying the file under Windows. How ever I do not have much experience with Linux, so if it's supose to take this long please let me know. I am planning on letting it run until I wake up tomorrow.
"cp -v" hasn't been very verbose at all. The only sign I have that indicates the computer is still trying to do something is the HDD light on my chasis that has stayed lit this whole time.
View 4 Replies
View Related
Mar 24, 2010
Is it possible to boot from a disk image file(containing linux) file that resides inside windows and add a bootloader entry for booting from the disk image.?
View 2 Replies
View Related
Jan 12, 2010
I try to mount one disk image to two points.
sudo mount -o loop,user,uid=dm /home/dm/mmm/test_drive1.img /home/dm/mmm/fs
sudo mount -o loop,user,uid=dm /home/dm/mmm/test_drive1.img /home/dm/mmm/fs2
Thats done
But when i create,copy or change anything on one mount point (../fs) its not updates on second mount point (../fs2).
Does anyone know way to 'share' one disk image (.img) to some mount points?
View 3 Replies
View Related
Nov 15, 2010
Suppose I have a 80 GB hard disk (sda) with 4GB of contents. Using a dd to copy to a different disk
Code:
dd if=/dev/sda of=/dev/sdb
copies all the contents (including free space). So sdb also needs to be 80GB.
You will notice that in VMWare or VirtualBox disk images, it is possible to set the disk to use only the amount of space of actual data. So a 80GB virtualbox/vmware image with 4GB of contents will be 4GB.
Is it possible to do that with an actual hard disk (sda) image? I want to create an image of an actual hard disk, copy it to DVD and transport it (in mail) for restoration on another computer (having same hard disk).
View 6 Replies
View Related
Mar 17, 2010
Let's say I'm using one of those PCs that uses a SSD flash drive in place of a more regular HDD.
Say I burn my favorite .iso distro and install it on this PC. I install my favorite applications and seek out and install any missing drivers and generally tweak the system like you do. When I am finally happy with it, I make an image of this installation to an external USB drive.
Now, say 9 months later some of those SSD blocks have gone bad because they were erased too often. They're no longer usable. Also, because I'm a sloppy person who can't be bothered to delete redundant stuff and run make-cleans and so forth, the disk is getting pretty cluttered and takes longer and longer to do stuff.
I decide the obvious solution is to remove and save any data I need to keep, then just over-write the disk with the image I made 9 months earlier.
The question is: will the firmware be smart enough to re-map my incoming image to avoid these bad blocks on the SSD? Or am I going to wind up with some parts of the image being located on bad areas of the SSD?
View 2 Replies
View Related
Aug 2, 2010
I am having a rather strange issue. I have windows 98 installed into a disk image that I use bochs to boot it with. I want to transfer some files to the image but now I am unable to mount it. I will attach the drive to the loopback device but when I go to mount I get wrong fs type bad option ... etc.
The command I used to mount was
Code:
#mount -t vfat /dev/loop0 /media/loopdisk
cfdisk shows it ok as does fdisk. shows as a fat16 file system. When I attempt to check it for errors using fsck.msdos I get
Code:
# dosfsck 3.0.6 04 Oct 2009, FAT32, LFN
# Logical sector size (64543) is not a multiple of the physical sector size.
When I boot into windows 98 in bochs and check the disk it tells me there is no problems.
View 3 Replies
View Related
Jun 13, 2011
At the Get Slackware page at the Slackware website it gives a list of addresses which when I click one of the addresses it redirects to another page with a list of mirror images. Which address and which mirror image do I need to work with Kubuntu 11.04 on my netbook so I can create a USB startup disk? With my connection speed these mirror image downloads take about an hour and a half and I cannot just be guessing which mirror image to download.
View 8 Replies
View Related
Aug 6, 2009
I need little help on live disk creation and disk image backup.
Can I create live disk using my hard drive installation? If yes then, can I restore the fedora from the live disk to the hard drive. I mean to say that from that live disk can I install fedora again in my hard drive.
Second question is, if I create the disk image of my hard drive( including ntfs & FAT32 partition) , can I restore it in a blank drive. If so , then can os will be restored also?
View 7 Replies
View Related
Jul 31, 2010
I have a bunch of disk images, made with ddrescue, on an EXT partition, and I want to reduce their size without losing data, while still being mountable. How can I fill the empty space in the image's filesystem with zeros, and then convert the file into a sparse file so this empty space is not actually stored on disk?
For example:
> du -s --si --apparent-size Jimage.image
120G Jimage.image
> du -s --si Jimage.image
121G Jimage.image
This actually only has 50G of real data on it, though, so the second measurement should be much smaller.
This supposedly will fill empty space with zeros: cat /dev/zero > zero.file rm zero.file But if sparse files are handled transparently, it might actually create a sparse file without writing anything to the virtual disk, ironically preventing me from turning the virtual disk image into a sparse file itself. :) Does it? Note: For some reason, sudo dd if=/dev/zero of=./zero.file works when cat does not on a mounted disk image.
View 4 Replies
View Related
Feb 7, 2010
I know there are many threads about recovering damaged superblocks. I've spent 3 evenings reading them and trying what they suggest. Invariably the commands do nothing except to report bad or missing superblocks. I've removed the physical disk from the machine and am working with a dd image file (/mnt/image). I can mount what used to be hdc1 and read its files with no problem. I'm trying to recover partions hdc6 and hdc7.$ mmls /mnt/image -b
DOS Partition Table
Offset Sector: 0
Units are in 512-byte sectors
[code]....
View 1 Replies
View Related
Mar 25, 2010
I wanna know how to boot a xen from grub2 ? and is there a way to boot a domU also from the grub (if it is installed in a disk image ex :- disk.img)
View 1 Replies
View Related
Oct 25, 2010
we have a Win NT4 system used for an important application used at two places. At one place it has gone bad. I want to create an image from good system and restore it at the second location. Is it possible to do this using "clonwzilla live cd"? Does it harm the good system? Can I save the created image to an USB drive?
View 3 Replies
View Related
May 22, 2011
I created a VM disk image with kvm-img, but I forget what was the max size of that disk image when I created it. Currently, its size is 6.2G, I want to install some large packages in that VM, so I want to make sure the disk image can expand to an adequate size.
View 1 Replies
View Related