I was unable to boot into my system after I'd just shut it down, so I tried repairing it using my installation media... only to find that though my root Ext4 fs on sda6 was corrupted & *supposedly* repairable, the cd could not do so for some reason! All I can get is a command line, saying something about the root fs being mounted as read only, and I have no idea how to resolve this. I cannot afford to loose ANY of the data I have on here.
I had 5.4 machine. Upgraded to 5.5 today via yum upgrade. All went fine. Rebooted. Wanted to convert root partition to ext4 (I have three partitions: /boot, / and swap). All of them on software RAID 1 (root is /dev/md2). I did the following for converting
yum install e4fsprogs tune2fs -O extents,uninit_bg,dir_index /dev/md2 nano /etc/fstab # I indicated here that my /dev/md2 is of ext4
The Ext 4 file system of the partition (dev/sdb1) is corrupted. When I seek to repair this using the boot repair tool it is unable to resolve this. I admit that I don't fully understand the problem - except that I'm unable to open and use programs.
I just installed ubuntu via the windows executable and I couldn't mount my NTFS partition. I found this a little odd and I checked fdisk and it seems to think I don't have an ext4 partition as my entire internal HD is displayed as NTFS.
Here's the fdisk output:
When i try to mount the NTFS partition /dev/sda2 i get the following output:
I can't make heads or tails out of this. Anyone know what's going on here?
Windows recognizes that 30GB were taken from the NTFS partition for my linux install. It reads the max partition size as 465GB. fstab reports the NTFS partition size as 488GB.
I have an external 320gb Hard drive. My plan was to have 250gb for My Documents of mainly music, films and word documents. And 50gb set aside for ubuntu, in a separate partition.To do this I need to partition the 50gb partition as ext4? then add a swap file of how big? Do i even need a swap space if I have 4gb of physical RAM?
Being an Ubuntu enthousiast (both professionally as well as at home), I upgraded my home server from 9.10 to 10.04 yesterday. It runs kvm with only 1 vm. Host and vm we're both ubuntu 9.10 64bit. I upgraded both to 10.04. So far so good. Also did reboots to load the new kernel image.
For data storage I have a large (6,35TB) XFS partition. This partition is exported to the vm as a block device (vdb). This morning I noticed the vm has crashed. The XFS partition (mounted as /home) was shut down. Is this just bad luck? Or is it 10.04?
Code: May 4 08:00:18 fileplanet kernel: [68558.681584] ffff8800241c8000: 58 41 47 46 00 00 00 01 00 00 00 02 0f ff ff ff XAGF............ May 4 08:00:18 fileplanet kernel: [68558.754806] Filesystem "vdb": XFS internal error xfs_btree_check_sblock at line 124 of file /build/buildd/linux-2.6.32/fs/xfs/xfs_btree.c. Caller 0xffffffffa009dcc4
I tried booting with an older (2.6.31) kernel, but didn't help. Can I safely run xfs_repair without causing any more damage?
All disks in this system are attached to an Areca hardware raid controller configured in Raid5 and has been operating for months now without any problem.
I was resizing my windows partition and accidently turned my computer off. When I went to run a disk check from gparted I get multiple filesystem errors. Chkdsk /r when run from a recovery cd says it can't determine the size of the partition so it can't continue. Is there anyway to get my files off the corrupted partition from within linux. Right now Gparted shows that it has been resized but that it is corrupted and i can't even attempt to mount it. There are only a few files I need to get off the partition but they are really important.
I have a dual boot drive, one is WinXp the other Ubuntu 10.04. I don't know why, but my ubuntu partition became corrupted (booting from live cd and inputing fdisk -l in the terminal, shoes my partition as unknown type) My Grub was on this partition, and therefore I cannot boot neither one of my two OSs. I would like to recover my linux partition, I figure I can do that only from my WinXp partition, but I don't know where and how to install Grub.
Also, If anyone knows how I could recover from the live CD without booting Windows, please speak up, that would make everything much easier. Another thing, it would be just super if I could recover my whole partition, not just the data, because I would hate to reinstall all the stuff that I had on my Ubuntu.
I recently suffered a hard disk failure, meaning I had to replace the faulty device. After attempting to mount the old faulty hard drive using and external caddy, I got the following message... Unable to mount 144 GB Filesystem Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/sdb5, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
I'd like to attempt to recover what I can from my /home directory but unfortunately I use encryption (although I do actually know my pass phrase). What procedures and software can I use to try and recover data from this drive?
Basically, I just installed Ubuntu over Windows Vista because I was getting fed up with the performance on it. During install I set up a partition, one for Ubuntu and one for data. However, my second, larger partition gives this error when I try to mount it... Error mounting: mount exited with exit code 12: Failed to read last sector (976764927): Invalid argument
Hints: Either the volume is a RAID/LDM but it wasn't setup yet, or it was not setup correctly (e.g. by not using mdadm --build ...), or a wrong device is tried to be mounted, or the partition table is corrupt (partition is smaller than NTFS), or the NTFS boot sector is corrupt (NTFS size is not valid). Failed to mount '/dev/sda1': Invalid argument The device '/dev/sda1' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
I know I said I wouldn't do anything that could possibly do anything bad to the drive until I receive my external hard drive. I just didn't expect that upgrading from 11.2 to 11.3 via zypper dup has the potential to do that.
First, the problem: The most important partition of my computer containing all the irreplaceable stuff (images) which I had apparently only partially backed up was corrupted after I upgraded from 11.2 to 11.3.
On my computer, there are 2 drives. sda was the one that had Windows. sdb had an NTFS partition and a few smaller partitions which I used for openSUSE. After doing quite a bit of searching on upgrades corrupting partitions, I didn't find anything about it doing what I feared which was corrupting the NTFS so I went ahead and upgraded.
The upgrade went along smoothly. No problems that I could tell. The only weird thing was that the window borders disappeared near the end but I assumed that was supposed to happen. And then I restarted. First thing I noticed was that the background was blue instead of the image I had set (which happened to be on the NTFS partition). I didn't think much of it at the time figuring it was just a quirk in the upgrade process. I went ahead and decided to reset the background to what it was. And then I realized that the NTFS partition was missing -- it wasn't mounted or visible at all. That was when I started to panic a bit.
I opened up Yast partitioner and everything looked fine except that NTFS partition in question had a little * by it. I went ahead and reset its mount point only to receive an error saying that the filesystem in question doesn't exist. And sda became sdb and sdb became sda if that changes anything.
I went into Windows expecting for it to do a CHKDISK on bootup for the drive (D: ) but none of that happened. Hoping that everything was fine, I went in and tried to access it only be given an error along the lines of "The drive in D: is not formatted. Do you want to format it?" Of course, I said no but that was when I realized that this was no partition table problem like last time.
I tried restarting but Windows froze and refused to do so for several minutes so forced the computer to shutdown and loaded my copy of GParted LiveCD. It showed a 30GB unrecognized partition, another 30MB one and some unallocated space. TestDisk fixed that. (so it turns out, there was a partition table issue) What was left was what looked OK except the one partition on sda (the original sdb) that I could not afford to lose had an error.
I can't remember the exact error but it said something like "Are you trying to use a disk as a partition? Are you trying to use /dev/sda as /dev/sda1 or vice versa?" That was either in the error message or in the message I got when I tried to check the disk.
Still trying to get Windows to check the disk, I tried booting from the new sda into Windows. What I got was the Dell Utility program. It said no mouse detected and I couldn't do anything so I shut it down.
I tried going back into Windows the normal way and got the Dell Utility. I figured that this was an MBR problem after I went back into openSUSE with the new sdb still reading perfectly. Although I couldn't manage to restore the MBR so I can't log into Windows. But the other issue is far more important.
I have a really tricky and may be intresting problem with a encrypted disk partition (cryptsetup luks...) which was fine until it accidentally got re-formatted by an instance of Windows 7. Most of the data on that 1TB-disk will probably still exist, only the LUKS header at the very beginning of the partition is - of course - gone.
So when I try to open the container, it gives no verbose, just the return value 234.
I scanned the whole partition for other LUKS headers with hexedit, none there. But, luckyly I have another partition which is encrypted in the exact same way with the exact same passphrase (which I remember very well!), so I had an idea: I copied the LUKS header (592 bytes) from the other LUKS encrypted partition over to the damaged partition. When I now issue
Code: No key available with this passphrase
Here is the command how I created the container:
How do I get the existing passphrase accepted by LUKS?
I've two laptops, my main one is Dell inspiron 1545 and for experimental purposes, I use Acer Aspire 5315. I used to be a Redhat linux user from 2001 to 2003 on and off, but lost touch with linux for the past few years. I grew frustrated with windows after my Vista recovery partition in Acer Aspire got corrupted and when I took the laptop for servicing, the service person installed a pirated copy of XP. The laptop constantly overheated and I always received all kinds of warnings from microsoft about using pirated version. I finally decided to buy a new laptop and hence bought Dell inspiron 1545. Too bad I didn't realize I could have switched to linux.
I was suspicious about Windows 7 in my new dell right from the day one and thought of checking linux options available. I was surprised to know the the most popular linux distro now was no longer Redhat or Suse but a relatively newcomer Ubuntu. I installed Ubuntu 9.10 on a 40GB extended partition and was extremely satisfied with the ease of installation. The hardware detector told me I need to install "Broadcom STA" for my wireless card to work. I installed ATI driver from AMD website and it worked like a charm. Like any linux user, I couldn't resist the temptation to distro hop, so decided to use my old Acer laptop as testbed. The first distro I tried was KDE version of Fedora 12. The splash screen was very impressive and more graphical than Ubuntu's, however the boot time was painfully slow and I ran into a dependency hell while trying to upgrade using Kpackagekit.
I tried Linux mint KDE next and it was impressive, but I was still not completely satisfied. I then tried Opensuse 11.2 KDE and I immediately fell in love with the beautiful look and feel. I was so impressed that I went ahead and replaced the ubuntu in my dell with Opensuse 11.2. However, it was not smoothsailing when it came to hardware detection. After a lot of trials and tribulations, I managed to download Broadcom STA drivers and managed to get my wifi working. I realized that Radeon HD was installed as default and tried to turn on compositing. KDE got stuck and even after cold reboot, didn't recover. I had to re-install the OS and this time I tried to install ATI proprietary driver. But running the driver install script threw up lot of errors and I lost my mouse cursor. I had to re-install the OS again, generate RPM for the ATI driver and install it along with Kernel source, headers, gcc, make, etc... Finally I was able to activate compositing.
I then installed Xen and when I booted to Xen kernel, my mouse cursor again dissapeared, most likely due to non-compatibility of ATI driver. I had to uninstall Xen. I then tried to upgrade the kernel to 2.6.31-15 and again my mouse cursor dissapeared. I had to re-install the entire OS again. I'm so frightened of Kernel updates now. I never had such problems with Ubuntu kernel updates, maybe ATI is more pro-active in releasing new versions of drivers when it comes to Ubuntu.
In-spite of all my hardships, I'm so much in love with Opensuse and KDE. I love it so much that it now runs on both my Dell and Acer. I've removed all the other distros from my Acer. It has been quite a long time since I tried any other distro and I don't even have the faintest desire to distro-hop. Infact, for the past few days I'm so worried about the news of Novell takeover. I really don't want Opensuse to die. It will be a big loss for Linux users.
I have a hard drive where one partition is used as part of a logical volume (LV) using LVM. The partition table is corrupted and prevents the partitions from showing as devices in /dev/. The corruption prevents the logical volume from coming on-line b/c LVM cannot find the part on the corrupted disk. I (am pretty sure) I know the block offsets and lengths for each partition on the disk but do not want to write to the disk in case I am wrong.
How do I go about recovering the logical volume in this scenario?
I am trying to install an ARM version of Ubuntu onto an SD card for a BeagleBoard from a .img file downloaded from http://releases.ubuntu.com/lucid/. I have tried several files of .img and .raw downloaded from several places. I am using 'dd' on a PC running Ubuntu 10.0.4. My question doesn't relate to the BeagleBoard at all since I never get that far. The files for Angstrom that I copy directly onto a formatted SD card boot up fine on the BeagleBoard, but I need Ubuntu on there and can't do it with these image files. The command I use is:
sudo dd if=<the downloaded file> of=/dev/sdb1 After it asks the root password, it chugs along for some time and then gives what appears to be a successful response like the following. (This time it was for the Maverick version of Ubuntu in a .raw file):
leiphasw@dell-linux:~/Downloads/ArmMaverickUbuntu$ sudo dd if=maverick-preinstalled-netbook-armel+omap.raw of=/dev/sdb1 4090632+0 records in 4090632+0 records out 2094403584 bytes (2.1 GB) copied, 167.38 s, 12.5 MB/s
Currently I have a four partition setup: One ext4 /boot partition for Fedora, one LVM partition, one ext4 partition (which has Ubuntu), and one swap partition. What I would like to do is shrink down the ext4 partition which has Ubuntu on it and increase the size of my LVM parition (and increase the Volume Group, filesystem, etc. within the LVM). However, I've been searching on Google and the only solutions I find is to make the free/unpartitioned space and then create a new LVM partition and stretch the VG over the two LVM partitions. However, I already have 4 partitions, so I can't make the fifth one.
Is there any possible way I can increase the size of the underlying LVM partition itself?
Still a novice in Ubuntu (Karmic Koala). I'm trying to mount an ext4 20GB partition of my hard drive so that i can use it to store data, i want it to appear on my desktop as well as on places, as far as i know this is achieved by mounting the partition in /media. At my first attempt i used the following commands. (i named the partition ondskapt)
Code: sudo mkdir /ondskapt sudo gedit /etc/fstab in this document i added the following at the end: /dev/sda4 /ondskapt ext4 defauts 0 0
I recently bought a new HDD for my server and I now need to create two differently sized ext4 partitions. I tried GNU parted, but it can't create ext4 partitions so I did some googling but couldn't find any CLI partition managers with ext4 support
Btw, the server is running Ubuntu 9.10 x64 Server.
I used gparted to format a 360GB partition with ext4 and I expected it to have at most several hundred MB used for whatever reason by the file-system, but it said 18GB were used. How come? Are there any file-system settings I should have paid attention to?
I have recently updated my ubuntu 9.10 install to 10.04. And with that I've tried to install snow leopard on my computer so i can dual boot between them.the install was successful, but grub2 (that worked fine) wouldn't see the OS X install on its own partition. so i tried reinstalling it, like you do after you install windows and it would remove grub as the bootloader.That didn't work and i got a lot of messages that it wouldnt work because my partitioning (or something like that) is GPT. by the end of it i didn't have grub installed at all!so i started playing around with GParted, and while doing that i also put a bios_grub flag on my main ubuntu install partition, thinking that it would force grub to load from that partition. But that just gave me the GRUB Rescue prompt when trying to boot.
So i unchecked the bios_grub flag. and now it doesn't boot to anywhere and when inserting the ubuntu live cd i cant even see the ubuntu ext4 partition and mount it.Gparted says that its a partition that its File System is undetectable and unknown.Is there any solution that will allow me just to mount that partition and copy files from it? (unfortunatelly my backups are a little older than i would like them to be)Heres what boot info script gives me: (the partition that i need is sda1)
Code: Boot Info Script 0.55 dated February 15th, 2010 ============================= Boot Info Summary: ==============================