Ubuntu :: Corrupt Master File Table?
Jul 22, 2011On 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?
View 3 RepliesOn 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?
View 3 RepliesI think I managed to corrupt my master boot record, or have a very intractable problem with Grub.
I'm not sure how I did this, but my desktop will boot Ubuntu fine from a USB, but every time I try to install it, the install seems to go fine, but when I finish the install and the machine tries to boot the OS from it's hard drive, it does not work. The monitor does not get a signal and it just goes to sleep.
I tried posting here to resolve the problem before, tried everything on this thread: [URL]
But nothing worked.
I have even tried running the system from a USB, running a "shred" command for the hard drive and then reinstalling - my theory was that the shred command would destroy all the data on the hard drive anyway, and allow a "clean" install from whatever was corrupt on it, but no luck - when I installed Ubuntu on the hard drive, same problem.
I'm not clear where the problem lies now, I'm assuming there is something up with it's master boot record, but there are no partitions on it's hard drive and I started with a completely blank, unformatted drive.
A few months ago I tried to shrink an NTFS partition using gparted and use the free space to install Haiku. However, gparted crashed in the middle of the resize, leading to a corrupt partition table. I tried to solve the problem myself, using testdisk to detect the partitions. However, the fix is not perfect, and it left me with a partition table that goes "outside" of the disk (i.e. the partition table has allocated more sectors than there actually are on the disk to the last partition).
Recently I need to reinstall Ubuntu Natty, but because the partition table is corrupt, the installer on the Ubuntu Natty Live CD (as well as gparted) see the disk as entirely unpartitioned. What is weird is that the Disk Utility (aka palimpsest), fdisk on my current Natty distro (upgraded from Maverick, which I want to replace with a fresh install), and GRUB 2 see the partitions fine (with some errors, such as listing a few trillion TBs of available space, a result of the corrupt partition table).
I am using an Asus U30Jc laptop with a single 500GB HDD. My current setup is supposed to be like this:
/dev/sda1: A hidden FAT32 recovery partition generated by Windows 7, listed as containing Windows Vista by GRUB 2
/dev/sda2: NTFS partition containing Windows 7 (labeled "OS")
/dev/sda3: Extended partition containing "DATA", Ubuntu, swap, and the erroneous trillions of TBs of space
/dev/sda5: NTFS partition containing user data (labeled "DATA")
/dev/sda6: Ext4 partition containing Ubuntu
/dev/sda7: swap partition
(*Though I'm not supposed to have it, and it isn't listed in /dev while running the Live CD, /dev/sda4 exists as a zero-length partition in the output from sfdisk; not sure why)
Currently I've tried the following:
- testdisk, using "deeper search" and writing the partition table back to disk; produced a (usable) partition table that was bad.
- [URL], fsck didn't do much at all, except raise various errors on all partitions except the one containing Natty.
- [URL], tried to substitute the numbers caljohnsmith gave to thegreat with the corresponding values from my run of fdisk -lu, but because caljohnsmith didn't explain where the values came from and what they meant (no offense to him), I was lost; after the last step (setting the end sector on the extended partition to the last cylinder boundary (which I didn't really understand; tell me if you need details on what I did)), gparted went from showing the trillions of TBs of free space as outside all partitions to showing them as inside the extended partition; this also somehow caused the partitions to overlap.(The error parted raises changed from "Error: Can't have a partition outside the disk!" to "Error: Can't have overlapping partitions.
Running fdisk from the Natty Live CD gives
Code:
ubuntu@ubuntu:~$ sudo fdisk -lu
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x74ef0aca
Device Boot Start End Blocks Id System
/dev/sda1 2048 34812854 17405403+ 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 34812855 279000854 122094000 7 HPFS/NTFS
/dev/sda3 279000855 976768064 348883605 f W95 Ext'd (LBA)
/dev/sda5 279000918 875204030 298101556+ 7 HPFS/NTFS
/dev/sda6 875204608 972859391 48827392 83 Linux
/dev/sda7 972861440 976771055 1954808 82 Linux swap / Solaris
Running sfdisk -l from the Natty Live CD gives
Code:
ubuntu@ubuntu:~$ sudo sfdisk -l /dev/sda
Disk /dev/sda: 60801 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 0+ 2166 2167- 17405403+ 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 2167 17366 15200 122094000 7 HPFS/NTFS
/dev/sda3 17367 60800 43434 348883605 f W95 Ext'd (LBA)
/dev/sda4 0 - 0 0 0 Empty
/dev/sda5 17367+ 54478- 37112- 298101556+ 7 HPFS/NTFS
/dev/sda6 54478+ 60557- 6079- 48827392 83 Linux
/dev/sda7 60557+ 60801- 244- 1954808 82 Linux swap / Solaris
Running parted from the Natty Live CD gives
Code:
ubuntu@ubuntu:~$ sudo parted /dev/sda print
Error: Can't have overlapping partitions.
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).
[code].....
I was installing opensuse 11.2 in parallel with windows xp.but during installation suddenly power has gone and after that opensuse is giving me the error message corrupt partition.i am also not able to login in xp. so I decide to reinstall windows, I got the error saying "invalid partition table" after the first restart of windows xp installation.
I tried to use windows system recovery console and committing fixmbr and fixboot commands, but didn't work.
i have 2 window partition(1 for windows and 1 for data).i do,nt want to format 2,nd partition.
How can I installed windows?My plan was first to install windows xp, then opensuse again.
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'
drwxr-xr-x 2 jimt users 4.0K Jun 22 22:00 .gstreamer-0.10
-rw-r--r-- 1 jimt users 132 Jun 24 11:50 .gtk-bookmarks
d????????? ? ? ? ? ? .gvfs
-rw------- 1 jimt users 4.3K Jun 24 11:50 .ICEauthority
drwxr-xr-x 3 jimt users 4.0K Jun 23 08:41 .icedteaplugin
I'm managing a residential network. Each flat is its own subnet, and can only communicate with the other flats through a router (i.e. no broadcast). 95% of these 300 subnets only contains windows computers (from lambda users).
My final goal is to be able to browse the entire network from any computer.
I set up a samba server acting as a wins server, and every computer is aware of it because it is registered in the dhcp. So name resolution is working fine for everyone.
The same samba server is set to be the "Domain master browser":
workgroup = WORKGROUP
wins support = yes
prefered master = yes
local master = yes
domain master = yes
os level = 65
When I browse the network (using "net view" or "browstat view"), I can only see the servers which are in the same subnet as the domain master browser.
Now, when in a subnet the computers arrange themselves to find a "local master browser", the only visible computers are the one in that subnet.
What I don't understand is why all the local masters don't synchronize their lists with the domain master.
So, to sum up, every subnet get the following behaviour:
-if a local master is elected, the only visible computers are the one in the same subnet.
-if no local master is elected, the only visible computers are the one in the subnet of the domain master.
-if I add another samba, configured as a local master winning all elections, then the magic is working and the lists are synchronized.
What is expected:
-every computer can see all the computer from all the subnets.
having following problem in linux environment.I have a following basic file with name " BASEFILE", as shown example below :
sl.no pol.no name status loan
1 123 rama FORCE 500
2 234 jama LAPSE 800
[code]...
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
View 3 Replies View RelatedI 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 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.
View 3 Replies View RelatedI 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?
View 3 Replies View RelatedI am attempting to setup an Ubuntu server as a secondary DNS server. It seems whenever it tries to dump the master file the system log shows Permission denied.let me know if more information is needed.NOTE: where it says example.com I have simply removed my actual Domain name.
Mar 21 21:49:24 ulinux named[14418]: zone example.com/IN: Transfer started.
Mar 21 21:49:24 ulinux named[14418]: transfer of 'example.com/IN' from 192.168.0.15#53: connecte$
[code]....
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!
View 2 Replies View Relatedi have a PHP program, it encompasses about 200 scripts. Years ago, it was rewritten by another programmer to be multi-lingual, but the multi-lingual attraction of it never took off. Now that I am the only maintainer, trying to reuse what I have for code is quite difficult. If I look at one script, I see items like
_HEADER_TEXT_ERROR_4
_TABLE_ROW_SIZED_FORMAT
_ERROR_SELECT_RADIO_MAIN
All of these (and many more) are found in a "main.php" file that sort of go like this:
DEFINE _HEADER_TEXT_ERROR_4 "You Entered a Bad Value";
DEFINE _TABLE_ROW_SIZED_FORMAT "Last Name";
DEFINE _ERROR_SELECT_RADIO_MAIN "Make Your Selections";
What I would like to do is have something that says FOR all files in this directory, when you find something that starts with _, find that value in main.php and substitue what is inside the quotes for that value. Sort of unwriting all this multi-lingual stuff. I can format how I would do it if it was all stored in MySQL, but doing it from bash has me perplexed.
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.
View 1 Replies View RelatedI just got openSUSE 11.2 set up on my home server. The machine has two 2TB HDDs, the first (/dev/sda1) is partitioned thusly:
10GB /
1GB swap
1.82TB /home (/dev/md1 in RAID1 array)
[code]....
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.
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)?
View 2 Replies View RelatedYesterday 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 have a large environment with many VLANs and NIS slaves serving the VLANs. Previously we have not used a securenets file (don't worry; we don't use NIS for passwords, just NFS maps), but I'd like to start. The number of NIS slaves makes it annoying to update a securenets file on each when we add a new VLAN. Is there a way to propagate the securenets file to each slave when I update it on the master?If not, I guess I can live with propagating the file once and only visiting new slaves when I build them, because in 99% of cases a NIS slave only serves its own subnet.
View 1 Replies View RelatedWhen I check the status of postfix I get this error..... what does it mean and how do I fix / troubleshoot it?
View 11 Replies View RelatedI have a load balancer with 2 web servers behind it. The web servers rsync with cloud storage to update their apache directories 1 time every hour. Apache is just running php pages that pull/push data to a DB so they dont need to be updated that often. However I need to figure out how to implement a Master/Master MySQL setup to have my web servers point to for the PHP stuff. I need to implement it without having a single point of failure. The Load balancers are useless for failover as they only detect availability based on Ping request. So putting a master/master setup behind a Load Balancer is out. what is the best way to setup the master/master mysql in a HA setup without the use of a load balancer provided by the host?
View 2 Replies View RelatedWhat 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?
View 1 Replies View RelatedMy shell script is calculating the count of each shortcode series wise whose sample output is as follows:
Code:
56882
9124 1
9172 1
9173 4
[code]....
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]....
after successfully configuring the dwa-552 to work in master mode in ubuntu 10.04 (ath9k driver) I ran some file transfer tests. The download speed is very good (~50mbps) but the upload speed spikes at about 10-20mbps for the first few KB and then it's nonexistent (0-1kbps). This only affects file transfers or otherwise bandwidth consuming processes. Normal web browsing or ssh is not affected. After running a speedtest of my internet connection which is routed through the AP I could upload to the internet with 1mbps which is my inet connection maximum so apparently this is not affected. Tried the same file transfers with netcat to eliminate any other factors and had the same problem. dmesg and hostapd debug did not report anything unusual
View 2 Replies View RelatedOpenSuse 11.2 Downloaded ISO Master 1.3.8 from here: [URL] Opened the Slackware 13.1 ISO within it, tried to modify the Tagfile which resulted in the error:
Quote:
Edit failed, check Options/Editor and running ISO Master from the terminal showed the error in the title of the thread!
i need to prepare a presentation for that i have to copy a table from [URL] to my power point slide. but when i am copying it i am just getting a table with single column. is there a method to import the contents from web page table to my presentation table?
View 2 Replies View Related