General :: Corrupt File System Most Spectecular Way
Feb 6, 2011
I want to cause damage to a file system and then try to restore it. I want to use a VM first and when I've learned a little try it on an old HDD. Any ways to damage a filesystem non physically is welcome!
basically the situation I'm in is someone mistakenly expanded an NAS without unmounting the drive on the server. This corrupted the superblock and its apparent that all the backups are no good. The drive in question was expanded from about 800gigs to 1.8TBs, its done via an NAS.
At this point I'm most concerned about getting the files off the drive, I can deal with resetting the file system but I really need those files. This happened within a week of me joining this group so I'm kind of doing damage control here, backups were not taken of this particular drive.
Why do I keep getting .gvfs (gnome virtual file system) file appearing as corrupt in /~/usr directory, I can get rid of it by unmounting, but it re-appears later on. It is causing problems as it interrupts my backups (which are automated) with an error message,ListError .gtk-bookmarks/.gvfs [Errno 13] Permission denied: '/home/jimt/.gvfs'
I have an Acer Aspire One running NBR 9.10. A few days ago it "went wonky", wouldn't boot and would just seem to start and then shut off before getting to the logon screen. I managed to boot from a USB stick and run check and fix in Gparted. It found a slew of errors in the file system. Unfortunately, it still won't boot, now it just hangs. I assume some of boot files were damaged.
Now I have two problems:
1. Is there a way to repair the damage? Or just wipe the disk and start over?
2. I need to get my e-mail off of the hard drive. I can mount the drive after booting from a USB stick, but the thunderbird directory is locked. Is there a way around this?
Yesterday, the file system of my mp3 player went corrupt. So I tried to format it to vfat, which in the past hasn't solved the problem and instead just made another corrupt partition. I have fixed it before by using dereks boot and nuke (dban) and filling it with only zeros so its ready to be repartitioned.
Now this time I tried to save some time by using dd instead of dban. So I did dd if=/dev/zero of/dev/sdb
The process got interrupted by my system shutting down after about 15 min.
Now when I plug in my usb, it doesn't get recognized. It doesn't show up in gparted or fdisk. I looked at dmesg and all it gave was: usb 1-4: new high speed USB device using ehci_hcd and address 5
I created a pendrive USB Fedora OS, worked fine. Installed a few bits and pieces, but when I used it again most of the files have disappeared (corrupt, deleted?). This happened before, just after I put a load of updates on. I am certain it cannot be rescued, but how can I prevent this (apart from backing up)?
I downloaded the first Lenny DVD for amd64, wrote it but on trying the install on my laptop (Gateway NV5389u) I cant get past the installing base system step: I get an error that some files are corrupt / cannot be read from the DVD. I am wondering whether there's a way I can download a minimal version or just the files needed for the base system installation then use the same DVD to install the packages, coz I have a terribly slow internet connection it took me a whole 2 days to download, and I surely cant stand any more of it.
I've just tried to open an .odt file which says it's corrupt and cannot be recovered... The last backup I can find is from about a month ago and is 10,000 words shorter than the corrupt version.I have no idea why the file has suddenly become corrupt
On my backup drive I can no longer see any files. According to Testdisk program the master file table (MFT) is bad. How do I restore or rebuild the MFT?
Was I the only one having failure issues trying to install any Debian ISO Yesterday?I got big red screens about corrupt files all while trying to install Wheezy and Jessie.All with ISO versions downloaded and burned yesterday, net install. Disc and DVD.Mint and later Fedora installed perfectly well, but I wanted Debian.
Yesterday afternoon, I was playing around with updating my system with RPMs from the openSUSE RPM Search. I had bash v 4.0.18 (I'm running a decaboot, the primary OS being openSUSE 11.2, where the issue is) and I installed a package that was bash 1.0.36. I restarted my Yakuake terminal to see the new bash. Immediately, I noticed the Yakuake terminal flashing rapidly, and the terminal wouldn't go down when I used the key that brings up and down, so I controlled-alt-escaped it and killed it off. Then I wondered if it was just me, so I hit ALT-F2 and logged in as root. It quickly said some symbol file (Something)_(Something)_REWRITE(maybe) then disappeared, giving my the login prompt. I though, well, OK maybe I have to restart it to get it to work. Init said "there is no more processes left on this runlevel" and I had to Power-Button it and reboot. When it rebooted, or tried to, I was greeted with "KERNEL-PANIC Tried to kill init"
I panicked with the kernel, and I went into my 11.3 Milestone 4 installation, tried to chroot it, but I received the same error as when I tried to log into root and was returned to my 11.3 session.
I later tried to do a mock update with the 11.2 DVD, and tried with the YaST package manager to downgrade BASH, but the RPM installation failed, even on good DVDs. I tried the rescue, but it said BASH wasn't a "critical file" while things I don't even use were checked (like openssh)
From 11.3, I tried linking sh from bash to ksh (Korne Shell). For all I know, it is just like bash. It didn't work. Same kernel error.
I relinked sh and bash together, and I am using SUSE 11.1 in the meantime, but does anybody know how to fix this without reinstalling my SUSE 11.2 completely.
I used to have Windows XP Professional on my computer, then I decided to install Ubuntu but it didn't work for me it gave me really weird errors, I thought I uninstalled it, and then I installed Debian on my computer, Debian ran smoothly but when I tried to start Windows the GRUB from ubuntu appeared and when I tried to start windows again it showed and that the hal.dll was missing, I reinstalled Windows but still the same error appeared, this also affected my Debian GRUB so I had to install it again, I don't know what I should do in this case. How can I delete ubuntu's GRUB for good? I've already formatted my windows partition but it keeps using Ubuntu's GRUB.
I am trying to reinstall ubuntu on my asus eee netbook. When I try to open ubuntu an error message appears saying that this file <windowsroot>system32hal.dll.> is corrupt or missing. How to I reinstall this file/what happened?
What is an easy way detect corrupt movie file during or before using ffmpeg to encode them? is there a command I can use to check if the file is not corrupt and then pipe it ffmpeg or standard input?
I'm a little bit confused with partitioning the filesystem in Linux. the difference between creating the file system with fdisk and mkfs (when formatting the disk). I can't clearly tell my problem, so please look at this picture:
First off I must state that I am basically completely foreign to linux. I have 2 hard drives, one with windows 7 and storage partitions, and the other with my linux partition, linux swap, and unpartitioned space.I initially partitioned my drives with Disk Management in Windows 7. I created an NTFS partition on sda and installed Ubuntu from within Windows (a Wubi install I suppose). I originally intended to install by booting from the iso I burned onto a CD,but the installer was failing to load (fonts would change and it would error message). LiveCD was failing to load too in the same fashion. After hitting alt and tweaking the F6 settings, LiveCD successfully loaded (my very first taste of Ubuntu, albeit somewhat bland). I then decided to reinstall Ubuntu with proper linux partitions from within LiveCD. Now when I select Ubuntu in the Windows Boot Manager, a WBM screen says the file:
ubuntuwinbootwubildr.mbr is missing or corrupt. I do not know if this file is the problem or merely a symptom of it Below I have copied my Boot Summary (my apologies for the length and extra partitions):
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> No boot loader is installed in the MBR of /dev/sda[code]....
i have generated .exe file from C file (ie filename.c ) after compiling in linux machine with -O option. I wish to know about how to run that .exe file when linux system starts up ?
So 2 days ago everything was all fine on my machine. Has been for about a month, but all of a sudden as of yesterday I have no sound, I am seeing IRQ interupts on boot, During boot I am seeing file system is not clean, , and swap space is being used for the first time while doing normal task, etc. These are 2 new hard drives in RAID 1 with ReiserFS. I should have used a newer FS but thats a whole other argument.
Anyways here we go. The system is Debian Lenny amd64 Physical RAM 4GB + 6GB swap /var/log/messages
Code: Feb 21 07:35:09 Sarah kernel: imklog 3.18.6, log source = /proc/kmsg started. Feb 21 07:35:09 Sarah rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="3994" x-info="http://www.rsyslog.com"] restart code....
I am getting occasional errors during the boot process.One at the beginning and one or two when I switch to single user mode.I 'd like to run the system file checker to fix any possible errors.But when I run fsck in the terminal I get the message:Code:
mansour@ubuntu-notebook:~$ fsck fsck from util-linux-ng 2.17.2 e2fsck 1.41.12 (17-May-2010)
Can anyone answer me the color code of the linux file system?
Especially, for those which have different colors in the background also like some have green background colors and are written in green some have yellow background and are written in black,why is it so? Also please explain me the color code of other also.
I work for a company that makes portable devices running Linux and I was recently asked to make the underlying file system read-only for "security" purposes. Since the distribution is based on LinuxFromScratch, I know that very little writing happens at run time. So, even if the device runs on a usb flash device, I doubt that putting the root file system RO will be that beneficial. I am actually more concerned about a process actually breaking because it cannot open a file in RW mode than a process going rogue and filling the root file system with log files, etc. I'd really like to ear what kind of advantages disadvantages there really is with read-only file-systems.
Vista Recovery Windows 7 GRUB Extended -->Fedora 12 (ext4)
so, I shrunk my recovery in Windows 7 successfully, and booted into my Fedora 12 live cd to run Gparted, and move the partitions so that the free space could go towards fedora, I did such, and then I couldn't expand the partition to my dismay. Next, I woke up this morning, tried to boot to fedora to run SSH, grub loaded, but when I tried to boot fedora, I got the "File system check failed" error, and when I tried 7, it just went to a blank screen with a single "_" in the top left-hand corner.
I have an ntfs partition that I wish to access as a normal user(non-root). For this I did the following. As root I created a folder /windows and did a chmod 777 -R on /windows. Then I added the following line to /etc/fstab
Now, the partition is mounted alright but the problem is that when any other user (non-root) creates a files in /windows (say by executing touch newfile) the newly created file has the owner and group set as root. The non-root user can create the file and he can also delete the file, however, he cannot change the permissions of the file and also the owner:group is always set as root:root. How do I get across this problem, i.e. how do I mount a partition, so that a non-root user can also change the permissions and ownerships of the files he creates.
I used the ext3 format when I formatted my partition prior to installing Ubuntu10.10. I had accidentally deleted a file and began the process to get it back. It wasn't critical but helpful to recover the file. To make a long story short I ran into to some unexpected road blocks. I tried to use PhotoRec to get the job done but with no success.
I'm just looking down the road in the event I might have to recover something important.If it would be better going back to the Fat32 file system I would rather do it sooner than later. Just as a side note I am dual booting between linux and windows.
This partition belongs to a virtual machine, the partition is not visible when booting this VM using a live CD or attaching it to another VM. When booting anything with this partition attached it takes hours to boot.
I bought a new SD card which I intend to put some MP3s on - except that I can't write to it because it tells me the destination is Read Only. No-probs thinks I: I'll just reformat it.
"Error creating file system: helper exited with exit code 1: cannot open /dev/mmcblk0p1: Read-only file system"
Various chmod commands all result in Read-only file system. I tried umount then mount commands, but it couldn't find it to mount once I'd unmounted it using the same /media/ file path (I assume it's the only one).
I have several drives in an LVM VG/LV and for some reason on reboot, a drive will get a corrupt GTP table. I have killed the entire VG and re-created it without the drive that was showing the problem, then then it just happens to another drive. It does not appear to be the same drive each time either. I've confirmed this by using smartctl to check the SN of the drive reporting a corrupted table. It's not always the same drive.
I have swapped around cables to the two controllers to see if I could pin-point which cable or port showed the problem and long story short, there was little consistency in it. This simply does not appear to be caused by any single cable, port, controller, or drive.
Code:
parted /dev/sdb print Error: The primary GPT table is corrupt, but the backup appears OK, so that will be used. OK/Cancel?
When I see that and select Ok, it just shows it again. I can do an mklabel and mkpart, then the LVM LV shows up under /dev as it should, without another vgscan. If I then mount that LV, I can see the data is there and it seems Ok despite the warning of mklabel saying it will destroy the data. Logs show no cause during boot. So, what is causing this? Will doing the mklabel kill the data on it? I just don't understand why Ubuntu is randomly corrupting GTP tables.
Code:
Ubuntu 10.10 x64 Mobo: ASUS A8N-SLI - On board NVIDIA nforce4-SLI controller has 4 ports connected to 3 drives in this LVM LV. HighPoint Technologies, Inc. RocketRAID 230x 4 Port SATA-II Controller - Has 4 ports, 3 of which are used in the LVM LV. (Had 4, one is out with an RMA).
I installed unetbootin, and picked linux mint because i heard mint is for beginners.I use HP mini, and connected USB drive.after installation is completed, restart machine, and changed boot order,this was on screen;"Invalid or corrupt kernel image"boot:press tab key for options.