Ubuntu :: How To Restore Partition UUID

Sep 4, 2010

After installing another OS on second drive, UUID for swap on my main system was missing. In other words there is no appropriate symlink in /dev/disk/. I've tried to create it manually, but it dissappears again after rebooting. Temporarily i solved this problem by adding in /etc/fstab direct address to swap device. The question is how to restore UUID for swap partition correctly?
Code:
sudo blkid /dev/sda6
/dev/sda6: TYPE="swap"
/dev/sda6 is swap partition.
Also i've tried to use tune2fs:

[Code]....

View 3 Replies


ADVERTISEMENT

Software :: Changing An NTFS UUID - Restore An NTFS Partition From A Backup?

Dec 25, 2010

I am trying to restore an NTFS partition from a backup and I need the new drive to have the old (dead) drive's UUID (which I recorded).I really really really cannot use the option of changing fstab to mount using a new UUID, for this case I need the old UUID that existed on the other drive.Is there some ntfs equivalent of tune2fs that'll let me change the UUID on an ntfs partition?

View 4 Replies View Related

Programming :: How To Get UUID Of Device / Partition

Mar 13, 2011

I am very much new to Linux programming. My question is Is there any way to read UUID of a device or partition in linux programatically. Is there any c/c++ API for user-space applications. I found some commands "sudo vol_id --uuid /dev/sda1", "sudo blkid", "ls -l /dev/disk/by-uuid/". But all are commands which we need to run in terminal. But I need to achieve this from a c/c++ program. (FYI: I need to read uuid of root filesystem ("/") where Linux has been installed.)

View 1 Replies View Related

Debian :: Change The UUID Of A Partition?

May 9, 2011

I have, as I have in the past, copy/pasted a partition using gparted to get a working OS to another place.

I have always done this in the past to a different drive. Never paid much attention to the UUID.

This time I did it on the same drive. The partitions have the same UUID. This is not a good thing.

The copied OS boots and mounts fine as I edited the fstab to go by /dev/sdxy (where x is the drive and y the partition). My grub uses a custom menu using symbolic menu entries so it goes by the partition definition instead of UUID too.

I would really like to change the UUID on that partition.

View 8 Replies View Related

Ubuntu :: Boot Failure - Can Not Find Root Partition No Uuid

Mar 5, 2010

I posted this first to thread 'Boot problem - "Gave up waiting for root device.", (initramfs)' then realized that I should start a new thread because the problem is not the same. On boot the splash goes black and nothing happens, On a recovery boot it drops into shell BusyBox and messages indicate that the root partition cannot be found. After booting from CD Gparted GUI partition information shows no label or ssid for the root partition sda2. The data for the root partition appears to be there. how to fix this? My /home, swap, and / are on separate partitions formatted ext3. I have a recent backup only for my data. I would like to avoid having to rebuild my system from scratch.

View 9 Replies View Related

General :: Swap Partition UUID Changed - What To Do

Jun 5, 2010

Someone (not me) recently installed some new distros on my HD. It seems that during the installation my swap partition was reformatted and a new UUID was assigned to it. I have the following questions:

1. I know that I have to change the swap partition UUID in /etc/fstab and /boot/grub/menu.lst of the affected distros. Is there anything else that needs to be changed?
2. I presume a similar change has to be made to the Grub 2 configuration, for those distros that use Grub 2. I have no experience using Grub 2 so how do I make the change or where can I find instructions to do it?

View 13 Replies View Related

Programming :: Get Uuid Of A Device / Partition In System Programatically?

Mar 13, 2011

I am very much new to Linux programming. My question is Is there any way to read UUID of a device or partition in linux programatically. Is there any c/c++ API for user-space applications. I found some commands "sudo vol_id --uuid /dev/sda1", "sudo blkid", "ls -l /dev/disk/by-uuid/". But all are commands which we need to run in terminal. But i need to achieve this from a c/c++ program. Can some one help me in this problem.(FYI: I need to read uuid of root filesystem ("/") where Linux has been installed.)

View 9 Replies View Related

General :: Restore An Ext2 Partition From A Msdos Partition?

Oct 2, 2009

I had an Ubuntu desktop 9.04. While I wanted to format my second hard drive with gparted, I have selected my system HD () with all my datas (/home, ...).In fact, my error is I have selected to rebuild my partition table and now I have lost all partitions . I would like to know how to restore my datas.

View 4 Replies View Related

General :: Deleted An LVM Partition - Restore The Partition

Aug 23, 2010

I was dicking around today and I deleted an LVM partition, is there anyway I can restore the partition and add it back to my volume group or is it game over?

View 5 Replies View Related

Hardware :: Ran Mkfs.vfat Over Top Ntfs Partition - Any Way To Restore Ntfs Partition Info?

Oct 12, 2010

I was attempting to format a flash drive, and well, used the wrong sdX device. I've run DiskInternals Partition Recovery tool, and all my files are still there (you have to pay $139 to have it restore the files). Is there any way using tools in linux to restore the ntfs partition/files? It was a single disk with the partition taking the entire drive. I've tried mounting it with the -t option, but it says invalid ntfs signature. Man, two lessons the hard way, make sure you backup (duh) and be careful what you type as root.

View 8 Replies View Related

Ubuntu :: How To Restore Partition Table

Oct 8, 2010

I got swap space full error and the ubuntu version of "blue screen of death". I used Disk Utilities to delete a 2.1GB unused partition. When I tried to create a swap space partition (with Disk Utilities) it failed. In the mean time ubuntu did some security updates. When I tried to create again Disk Uilities did not complain but only created a small ~ 500 kB partition. I deleted that and reboot and got "unknown filesystem grub rescue>". I booted from a USB key successfully. Now Disk Utilities and File Browser can see all the partitions and files on the hard drive, but GParted thinks the entire hard drive is unallocated. I vaguely remember that there are two partition table on the hard drive. It may be that one of them was deleted (when I removed the ~ 500 kB partition with Disk Utilities earlier maybe?). It seems at least the other partition table is still intact since Disk Utilities and File Browser can still see all the partitions and files. Is it possible to restore the deleted or damaged partition table and make the hard drive bootable again?

View 9 Replies View Related

Ubuntu :: How To Restore Deleted Truecrypt Partition

Feb 16, 2010

my /dev/sdb was a truecrypt partition that was mounted when I accidentally deleted the partition in gparted (instead of sdc, stupid). I'm pretty sure I haven't overwritten anything since then, but I'm not sure how to go about recovering this one. To confound the problem, the only way I can install stuff to my ubunut machine is by downloading on a windows machine and transferring by memory stick.

View 7 Replies View Related

Ubuntu Installation :: Partition Table Gone / Restore It?

Feb 23, 2010

I have searched and didnt find a situation like mine so i thought id ask. i have a dual boot setup on my hp pavillion windows vista /dev/sda1 and backtrack linux 3,while trying to install backtrack 4 (which is ubuntu based) i deleted the former partitons for bt3. im not quite sure what i clicked but using the ubiquity installer it deleted my partition table so now my entire drive is listed as unallocated space. i have some very important files on my windows partition other wise i would just format and start over. how can i restore the partition table and boot to windows to atleast grab the important stuff. the drive hasnt been formatted so the info is still there i just cant get to it anyone have any ideas?

View 5 Replies View Related

Ubuntu :: Partition Table Was Deleted / Cant Restore?

Mar 2, 2010

I was working on creating a partition on a new hard drive I was planning on using for storage. I wasn't paying attention and chose to delete the partition on my master. I am running a dual boot with Vista and Ubuntu. When I rebooted It will only go to the Grub> prompt. Ive ran TestDisk and though that I had corrected the problem but it didnt. After running TestDisk again here is what It came up with.

Disk /dev/sda - 320 GB / 298 GiB - CHS 38914 255 63
Partition Start End Size in sectors
L HPFS - NTFS 0 32 33 28554 254 63 458734027
L Linux 28555 1 1 38585 254 63 161147952
L Linux Swap 38586 1 1 38912 254 63 5253192
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
code....

After writing the table above I rebooted. Windows prompted me for my restore disk. I rebooted to the live cd again and ran Fdisk.

code....

View 3 Replies View Related

Ubuntu :: Restore Data From Sata Hd Partition

Sep 4, 2010

Ive installed ubuntu for the first time today, i have a hdd of 500gb, that had 65gb occupied with music, movies and games.

What i did during installation:

it asked me where to install it, so i created a new partition of 100gb ext4 type, to install it there, and i was going to leave the rest for the data, but it wont let me do it, so i went back and selected the "exchange type swap linux 0x82 type" for the 400gb partition.

Then installed it, and now i cant find my data, and i have only 100gb of space in the hd, if i use the "disc utility" i can see the other 400gb, and change partition type, but i dont want to lose my data..

View 9 Replies View Related

Ubuntu :: Restore Partition Table With Fdisk?

Jan 28, 2011

what I did was: - have NTFS (450GB + 4GB linux-swap + 44GB ext3 with ubuntu 10.10 upgraded from ubuntu 10.4). Ntfs partition contains data only, no windows.

- either with partition magic or paragon I tried to resize the NTFS and since then parted doesn't like my partitions anymore, but Ubuntu boots and works just fine..

- I took the output from fdisk -l and decided to remove the swap partition - ubuntu won't boot saying it needs the swap (although it was never mounted and i deleted the swap while ubuntu was active)

I have the following output from fdisk -l:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

[Code].....

**NOTE: Since the partitions are not on cylinder boundaries, using parted to recreate the partition table may not be good enough.. I don't have a backup of the partition table.

View 4 Replies View Related

Ubuntu :: Restore Partition With Unknown Filesystem

Apr 11, 2011

I recently did a clean install of 11.04 Beta, and I must have done something wrong with the mount points during installation, which resulted in me having a different home folder mount point or something. The old partition on which I have my home folder needed to be mounted manually. I did that once, and then upon reboot, I couldn't access the partition anymore. Disk Utility now shows the partition as "unknown filesystem".

The output of fdisk is as follows (if that helps at all):

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

[Code]....

On a side note, I tried using TestDisk to restore the partition, but I only created a DD image of the damaged partition, but now I'm stuck, as I'm not sure how to mount it, or if it's possible to retrieve files if I succeed in mounting the image.

View 7 Replies View Related

Ubuntu :: Can't Mount Partition To Restore Grub2?

Apr 26, 2011

I recently installed windows 7 and of course it got rid of grub2 for me. I tried restoring it but when I try to mount the ubuntu partition (sda3, extended filesystem) I get the error "mount: you must specify the filesystem type"

View 9 Replies View Related

Ubuntu :: Restore Grub2 On Encrypted Partition?

Jun 10, 2011

I had to reinstall Windows, which has obviously overwritten my lovely Ubuntu Natty

I would like restore grub2, however failling to do so

I'm running:

Code:
sudo mount /dev/sda1 /mnt/boot
sudo cryptsetup luksOpen /dev/sda5 crypt1
Enter LUKS passphrase:
key slot 0 unlocked.

[Code]....

View 6 Replies View Related

Ubuntu Installation :: Testdisk Can't Restore The Partition - Just Deleted

Aug 8, 2010

I tried to install Ubuntu next to XP. After restart - no XP and no Ubuntu. Something wrong with loader I guess, I see command line prompt (of the loader I guess).

So I restarted from liveCD. But no "Repair Install" option like in XP CD. So, I deleted partition to install again on top of old, then learned a loader possibly could be fixed.

So, the problem is: testdisk cannot restore partition I deleted. I didn't write on disk anything. May be swap space after couple reloads from liveCD corrupted it?

It complains "The harddisk (...) seems to small!", it sees some other partitions and doesn't see what Gparted and Disk Utility.

Let me know the best approach to get back XP running (having Ubuntu would be good too).

Here below are the screen captures for details.

Quich Search results. Can't recover what's found. Why 4 partitions are found? Notice, "The harddisk seems too small !" Could this be a problem? HDD is not Maxtor anymore

The gap is there but no deleted partition shown

Essentially same thing... going for deeper search

Deep Search hasn't recover anything new. And shows same results as Quick Search (2nd testdisc image )Hit "continue"...

Now the partitions shown as deleted because of overlapping. The partition to be recovered is still not in the list.

Anyway, my final goal is to get WinXP back and if possible, install Ubuntu. It's nice that installer still sees the XP. Too bad the loader doesn't. how to get it done.

Unlike during installation of XP, ubuntu doesn't offer to utilize the deleted partition. Is it going to stay empty/unallocated? Forget the empty space, will I get XP running if I continue and install?

View 9 Replies View Related

Ubuntu Installation :: Can't Restore GRUB2; Can't Mount Partition?

Apr 29, 2011

I get the error - 'You must specify the filesystem type'.I used the syntax on the GRUB2 page:mount /dev/sdb3 /mnt but it returns the above error.Is there additional parameters to the code???

View 1 Replies View Related

Ubuntu / Apple :: Restore Partition To Make It Mac Readable

Jul 12, 2011

I have an ibook G3 500 mhz with 600+ MB of RAM and now I want to get rid of my Kubuntu partition. I have now installed Kubuntu 10.04. I've been using Kubuntu on my ibook for a long time, but due to kubuntu being soooo heavy on this old machine, I want to erase it and make that partition Mac OS X usable.I don't have a DVD drive so I cannot use the Mac Installer nor the cd's What can I do?

View 2 Replies View Related

General :: Cannot Restore Ntfs Partition

Jul 26, 2011

On my computer on the first disk /dev/sda was installed win2k system bootable with
native win2k bootloader. I created imges of that partition using Ghost4linux na Clonezilla. Images were placed on the second computer using sshfs. For all this tasks i used PartedImage LiveCD.

I removed old partition and created a new ntfs partition on the same disk. When I used GParted or native Win2k partitioner the partition I get was smaller: the difference is a few bytes. Finally I used the Linux fdisk. Now the size was OK, but after restoration win2k was unbootable: I tried to recover the win2k but it was even impossible to locate a system on the partition. So I tried to move all the partition at the very beginning of the disk. Now at least I was able to mount (under Linux) the partition. But again win2k was unbootable and unrecoverable.

It seems for me that the partition is missplaced. According to Ghost4Linux the partition begins with an offset 0x56. I suspect that it should be rather 0x80.

View 2 Replies View Related

General :: Restore NTFS Partition After Using Dd?

Jun 17, 2011

I recently tried to make a backup of an ntfs partition using dd.For example.. "sudo dd if=/dev/sda2 of=/dev/sda1" which made a copy of one partition to another, not realizing that it would wipe the ntfs filesystem and image across the linux partition. Is there anyway i can undo this to get back all the data which was on the ntfs drive? Cfdisk still sees the partition as NTFS. Have also tried photorec to try to retrieve the data but to no avail.

View 3 Replies View Related

Ubuntu :: Restore Access To Thinkpad Rescue And Recovery Partition?

Jan 7, 2010

I have a brand new Lenovo Thinkpad T400. Lenovo claims that it should boot into recovery mode if the blue 'ThinkVantage' button is pressed during boot. However, this does not happen after I have installed Ubuntu (Koala). First of all, nothing happens when I press the blue button, and no recovery partition is visible in GRUB boot menu. However, the partition itself is still there. The question is how to boot from it?

I found some tips from [URL], however, they are for GRUB, but my Ubuntu comes with GRUB2. I tried to adapt their instructions to my case. I added this to /etc/grub.d/40_custom:

Code:
menuentry "Rescue and Recovery" {
insmod ntfs
set root=(hd0,3)

[Code].....

That, however results in message about bootmgr missing at startup.

One option would be to start Windows and reinstall Windows MBR, but this would nuke my GRUB, and things could quickly go downhill from there as I am using full disc encryption for my Ubuntu partitions.

View 1 Replies View Related

Ubuntu :: Restore An Accidentally Deleted Encrypted EXT4 Partition ?

Feb 2, 2010

I accidentally deleted my root ext4 partition, which I had encrypted. I am unable to log into any os since I am blocked by a Error 17. Is it possible to retrieve an encrypted ext4 partition, does it even matter that it was encrypted.

View 6 Replies View Related

Ubuntu :: Half Erased Partition - Need To Restore Quicken File

Mar 20, 2011

I have a HP DV9000 laptop. The second hard drive bay doesn't support SATA II devices. I was cloning the original hard drive to the newer SATA II hard drive I purchased two swap them because bay 1 does support SATA II devices. I decided to use

Code:
dd if=/dev/sda of=/dev/sdb
to get the job done. I double/triple checked my command with fdisk -l, but my dyslexia got the better of me. I should have ran
Code:
dd if=/dev/sdb of=/dev/sda
....

I stopped the command about 1/2 hour in, it is a 160GB hdd. I tried using foremost to recover all of the files that hadn't been written over yet, but it can't recover Quicken filetypes. The ONLY thing I need off of this drive is the Quicken database. TL;DR I need to recover a quicken database file off my corrupted partition. What program can I use?

View 1 Replies View Related

Fedora :: Repair / Restore Partition Table?

Aug 6, 2010

I ve got a dual boot, XP and FC 12 on a single harddrive. After defragmentation of NTFS partition (With XP installation) cant'boot linux So, rub statrts with boot menu after selecting linux it tries to load linux but prints out some messages again and again (I do not remember contetn of messages) And these messages are circulating

View 14 Replies View Related

OpenSUSE Install :: How To Create Restore Partition

Mar 7, 2010

I am about to install a test machine for testing out system configurations and software modifications.Instead of installing a virtual machine I wish to create a secondary partition which holds a "restore image" of the "clean" system. Also I would like to be able to select a system restore function in Grub while booting.

View 4 Replies View Related

Debian :: Trying To Restore / Move Windows 7 Installation Partition

Jan 18, 2016

I had an older PC on which I had two SATA drives and an IDE one and on the latter I had Windows 7 installed (I kept it on that drive since I'm not using Windows 7 that often, I'm primarily using Debian as my daily go-to OS), but since then I got a new PC which has no connectivity for IDE, so I had to decommision the drive, and before I did that, I backed up the Windows 7 partition (and the second partition which I used mostly for storing sofware and stuff that I wouldn't want to get wiped after a fresh Windows install) using dd.

Not reading up on this on the internet, doing so with the intention to restore the partition image on the same spot on the disk, but since the SSD is larger than the IDE drive, I made the partitions on it bigger, so there's no chance the Windows 7 partition to be on the same spot on the disk. I tried booting into Windows 7 from GRUB after it successfully detected the Win7 install on the second partition on the SSD, but it just leaves me with a blank screen with a blinking white cursor, so I'm guessing it's not going to fly again. So my question to you: is it possible to ressurect the Windows 7 installation, avoiding having to reinstall Windows? (which would severly complicate things, having to backup and wipe the Debian install I have on the first partition...)

So far I've tried this to fix the Windows 7 install by pointing at the right disk "coordinates": [URL] ...., but I can't seem to get it to work, all I get is some error in regards to not being able to detect the disk's geometry (I think it was the number heads I couldn't figure out to input in the command line), so I couldn't fix it.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved