General :: Install OpenBSD 4.6 On My PC And Accidentally Overwrote My Boot Partition ?
Jan 15, 2010
I was gonna install OpenBSD 4.6 on my PC and I accidentally overwrote my boot partition.
Initially my partition table looked something like this:
Quote:
This doesn't look like a partition table
Probably you selected the wrong device.
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
That's what my partition table looks like according to fdisk. So I'm wondering how I'd go about recovering /dev/sda3 (what /dev/sda3 was before I blew it up).
This question is only partially linux-related, but I accidently typed cp file /dev/sda2 instead of cp file /mnt/sda2. The first 300 bytes or so of the ntfs partition were overwritten and now it can't mount and can't boot. I figured I would try copying the first 4096 bytes from another ntfs partition and see if that gave it enough to at least boot. It didn't and I'm wondering if there's any way to fix this sort of thing easily (without downloading an entire Windows 7 DVD) and what exactly I overwrote that was so important.
When doing an install of Linux Mint, I accidentally installed on a partition that already had data on it, so now that partition has a clean install of Mint instead of the data that was there before.I was hoping that I could at least recover some of the data from this partition, so my questions would be what, if anything, could I recover, and how would I go about doing that?
This machine has UBUNTU & wINDOWS XP. I'm currently logged into UBUNTU. I was just checking the features of GParted and accidentally clicked Device > Create Partition Table. A default MS-DOS partition table is created. Now if I re-start the Gparted there is nothing. Its showing entire disk as UNALLOCATED space.
Lucky thing is All the drives (C:, D:, E:) are currently mounted and I'm in UBUNTU. I guess its possible to re-create the partition table using current status. how to do this. This is a lab computer. If its not recoverable. I'm completely screwed!
I have an OpenBSD and a FreeBSD system and a mac. I also have a Linux server. What i would like to do is back up all these systems to an external hard-drive using rsync when the external usb disk is connected to my linux box.If i format the external usb disk with cfdisk and the create a non-bootable ext3 file system on this external disk and create and put all the necessary public keys on the Linux box then from the BSD's or the mac issue the command:
Code:
Will this back up the entire systems so that they can be restored in the event of an emergency? I should store each OS just in a separate disk file of the external usb drive each time right? Because i would rather not have to format the external usb drive for each different OS. Would this work? and would the restoration command for these BSD's be:
Code:
I just need to know the basics. I'm sure given that i'll be able to automate the process. I don't want to clone the disks for forensics. I just want to have a way of restoring to a clean OS. This is the most basic question:All the howto's never mention whether or not you have to have an rsync server running on the machine your backing up to. So do you just push or pull from one end of the connection only or do you have to have a client at one end and a server at the other, as is traditional?
Alright, so, I booted using linux live, and was poking around Gparted, and was going to test some things on my extra hdd (80gb, IDE) -I thought that extra hard drive was selected, what I clicked Create Partition Table. Apparently, it was my primary hdd, (250gb Sata, Windows Vista x64) that was selected. I think I may have tried to cancel it after a few seconds, realizing what was happening, but yeah, it now shows the entire hdd as unallocated space. I immediately shut down the computer, pulled out linux live and tried to boot to windows, but I immediately got an error saying the disk couldn't boot, asking for a system disk.
There was a thread with a guy who had a similar thing happen to him, but the thread dropped off... [URL] sudo ./testdisk_static Opened testdisk for me, but now that testdisk is open, I'm not really sure what I need to do. I'm guessing that the boot sector on that hdd is gone. Are my files gone forever? There are some files that I don't have backed up on there, that I'm hoping are not gone. I would love it even more if I could somehow just repair that boot sector, and not have to reinstall everything on my machine.
I was messing around with the windows 7 install and wiped a valuable partition on a drive, I ripped the sata cable out afterwards... is there a way to reconstruct the table?
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.
I was installing 10.10 x64 today. I wanted to manually partition the disks, since I have a /home partition from a 9.10 installation which I want to keep.Unfortunately, I selected to convert the ext3 /home partition to ext4 and didn't realise it was formatting the partition until it had just begun. In desperation, I pulled the power plug, but now I can't access the partition (using the LiveCD) - comes with an input/output error.What are some strategies to recover the data on the partly formatted partition? I don't think much, if any, was actually formatted.
Deleted the Ubuntu partition by accident. Now at a loss as how to get Windows working again. I had all my files saved, and did a full format and reinstall to Windows. Thinking that it would just overwrite grub but this thing is like a virus.. I cant do **** at the grub rescure command prompt... it just sits there with a cursor... Even stuff like reboot and quit or exit don't even work... what the hell? So I pop my Win7 install cd in and I find that for some reason I have no recovery console... just the option to install. I install but no grub, the little virus is still there and I just wasted an hour of my life while Win7 installed again because I still cant view it.
I deleted all the partitions and wiped the entire disc and grub is still there.. I was thinking that Windows would just replace grub automatically. Heh the Bootsector always seems to get owned on Windows and I expected grub to be just as useless but in it's own way, it's worse.
I was trying to remove the physical volume from an old drive. So I opened gparted and told it to rewrite the partition table. The only problem is I targeted the wrong volume, I wiped the partition table on my 4tb raid5 array This 4tb array has everything! All my movies, tv shows, music. The only things I have backup up off site are my smaller files like documents. I was about to lose my whole media collection.
I did some research and found a solution that I will post here in the hopes that someone will google "I deleted the partition table on my lvm" and be find the solution.You should find in your filesystem a /etc/lvm/backup folder. LVM puts a copy of the crucial lvm information there every time you change the the volume group.
In this folder you will find a file for each volume group. In this file you will find the uuid for all of the physical volumes that make up that group.The first step is to recreate each physical volume with their original uuids. In my case I had only 1 physical volume, which was my raid5 array. My recreation command looked like this:
Now I have a physical volume with the same uuid it had before. It is essential that you correctly match up the uuids with the correct physical deviecs.The recreated pv is empty, the volume group needs to be recovered. This is done by using a special tool and the backup file. For me the command looked like this:
vgcfgrestore --file /etc/lvm/backup/raid5 raid5
This tells it to recreate the volume group using the information in the backup file. The backup files looks for the uuid of the PV, which now matches the correct volume. The coordinates in the backup file match up to the data on the array an suddenly everything is back!
When I deleted my LVM partition table I did not damage any of the actual volumes on the volume group, I just wiped out the table of contents. The backup file had the information needed to rewrite this table of contents.
I wanted to install Ubuntu 10.10 onto a 16Gig USB key and did so by booting with a Live CD and doing the install to /dev/sdc1 (which is the USB key). It installed fine to the USB but it also installed grub MBR to /dev/sda1 (doh!) .. so now I can't boot into my main HD unless I have the USB key plugged in and I select the correct kernal on /dev/sdc1 to load from on the grub boot menu. If I try booting without the USB key I get... error: no such device: <long device id number here> grub rescue> _
I just did something that is moderately serious in my book.while trying to put a iso/img to a USB drive using "dd" command (actual command: "dd if/=/home/<username>/Desktop/<image file name> of/=/dev/sda1"), I accidentally wrote to /dev/sda1 (which is my windowspartition on this dual booted computer). When i try to boot into windows, it gives a error that it cannot find the parition. the iso was about 400meg, it was a install iso for another form of linux (arch linux).Is there anyway that I can get my windows partition to work again, or am i just going to have to say goodbye to all my music, pictures, etc. And I think some of my teachers require me to use windows based software... So I would like to eventually get back into windows though.I am running Ubuntu 9.10, I am on a laptop (HP HDX 16t)I am going to get ubuntu back onto my netbook (i destroyed that earlier tonight by deleting a partition that had the bootloader on it... i am just wiping that though)
I need to copy some files from an OpenBSD 4.5 server to my Ubuntu set up via flash disk tell me what commands to enter on each in order to do this please? I believe OpenBSD is UFS and I'm running 9.10 so Ubuntu is ext4
I having a problem getting my grub loader to see one of my hard drives. I added a drive, and my grub loader lost track of where everything was. I couldn't get my old linux (Red Hat 9) so I installed SuSe on my new hard drive. But I need my be able to boot from my old hard drive because it has apps that only run on the earlier version. From /proc/partitions the old hard drive is sdd
major minor #blocks name 8 0 976762584 sda 8 1 2104483 sda1 8 2 20972857 sda2
when I tried to install Fedora on my pc, I got this error message " Defined Root partition not created a / boot/efi partition. I am trying to install it on a seperate hd. My main one has windows xp pro, but I do not want to interfer with that at all?.
I was on Windows and I accidentally deleted my Ubuntu install. Now when I boot I have Windows 7 and Ubuntu, and it's corrupt. So I went to add remove programs in Windows 7 and it just deleted the Ubuntu uninstaller (cause i deleted it) and now i'm stuck with a corrupt boot, how to remove it because I want to re install Ubuntu and it's annoying having 2 Ubuntu systems (one corrupt) and Windows 7 on my boot screen.
I'm swapping from an OpenBSD 4.5 DHCP server to using Ubuntu 9.10 I notice in /etc/samba on Ubuntu there is a file called dhcp.conf with the singular line "wins server ==" There is no corresponding file in OpenBSD so how do I configure this file
3. It enter gdm/runlevel 5 though several warning complaining missing /etc/fstab (i can post the boot.log if it is needed)
4. I "touch /etc/fstab"
5. reboot (and cannot pass run level 2)
I can enter run level 1, but when after that if I "init 2" it is halted. Most of the boot message (after i create empty fstab with touch) is complaining about read only filesystem.
ps note:
1. I use LVM
2. I don't have access to a live cd until saturday
3. /etc/mtab is empty as well when i checked it in run level 1
I had a win7 installed on my system first. Then I installed Ubuntu and added grub2 boot option with win7 utility program EasyBSD. But then I accidently deleted win7 boot option from windows loader menu. Now I can only chose to load Ubuntu. How can I restore Win7 loading option? I have Win7 option in grub2 but it returns me to the previous screen, from which I have deleted win7.
I did a horrible mistake due to lapse in my concentration. Here is the 80 GB IDE disk geometry:
=> C: Windows XP SP2 15 GB partition => D: NTFS parition - 10 GB => E:F:G:H: NTFS partitions on the Windows Extended partition. => On the same Extended partition, there exists Linux /swap and /root partitions.
What happened was:
a) I wanted to delete the H: parition which was residing adjacent to Linux partition b) By mistake I opened the Explorer and clicked the Mouse on H: partition and left it like that (forgot) c) I opened Add/Remove program list but did nothing, to do few uninstalls after partition deletion. d) Now I opened compmgmt.msc for Disk Management then deleted the H: partition!
Then XP reacted strangely and got almost hung
e) Then I switched OFF and ON the PC. f) Most shocking was GRUB screen vanished (crash console appears) which means that Linux partition got deleted instead of H: partition!!
It's important to share with you that Fedora Core 12 possess the default BOOT flag. I thought that it's nothing big deal, only a case of Boot flag toggle with DOS bootable CD but am shell shocked to find after hitting the fdisk from DOS it says Error reading the disk!!! I felt like collapsed for a while, don't know how I did such a mistake. how to boot into my Windows XP. I can't afford to loose data or bear the expense on Data recovery
My laptop came with Windows 7 on it and a while back I dual installed Ubuntu on it. A few days ok I was looking for some more space and accidentally deleted my Ubuntu partition. Now when I boot up all I get is grub rescue. I've tried reinstalling Ubuntu but whenever I click to install or try Ubuntu it eventually ends up with an "initramfs" prompt.
I accidentally removed yum, yum-fastestmirror etc. packages on Centos 5.3 after a failed "yum update" to update Centos 5.3 to 5.4. re-install yum packages manually by rpm.
I copied yum-3.2.19-18.el5.centos.noarch.rpm and yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm to my file system and tried to install by rpm. I got the following messages:
I am currently running a dual boot machine with Ubuntu 11.04 and Windows Vista.Is there any way I can delete the Linux partition and Grub boot loader without affecting the Windows partition at all?I would also like to be able to repartition all of the space that was previously occupied by Linux.
i want to install opensuse on my new lap top i partition my hard (600gb) with 5 parts:
c: 97 gb d: 150 gb e: 150 gb f: 100 gb g: 50 gb and 38 gb unlocated part
in opensuse instalation , the yast makes a 2gb for swap 14gb = root , 21 gb = home, but in Instalation Overview under Booting has a red error: the Boot loader Installed On a Partition that does not Lie Entirely Blew 128 GB .The system maight Not Boot;
I just did a fresh install of 11.4 and I LOVE IT!!! One of the little issues I am having though, is that there is no login screen. No matter what settings I change it still auto-logs me in.
I am using GRUB and the Boot Loader Location has both "Boot from MBR" and "Boot from Root Partition". Is this right? I would think that I should just boot from the MBR.
I have a 500GB hard disk and divided to 3 partitions, 1 for windows, 1 for openSUSE and 1 for Ubuntu. i have installed and reinstalled linux on my laptop for many many times but it is like this, Grub 2 is installed to MBR and it workded fine but i want to add openSUSE and chose not to boot from MBR when installing it.i had to edit the menu.lst and got it to boot to Ubuntu partition. i also share file on partitions directly by booting to openSUSE and take data from Ubuntu and Windows partitions. so sometimes the pc boot i cannot scrool down the grub menu entry and it boot directly to openSUSE. BUT it returns to the start point ( i can see Dell booting, my laptop is Dell Inspiron N5010). and so i decided to reinstall Ubuntu(kubuntu) and set grub to install to its own partition not MBR.
Now i cannot boot to either openSUSE or Ubuntu. Only Windows is available by chance. new problems arise now that i cannot even boot the bootable CD. Did i loose the MBR or sth?
I am trying to install a box here where my /storage partition is about 2.5T.I had setup the partitioning with suse, while testing, and all worked well.Now when trying to install CentOs 5.5 it gives me an error, that my boot partition is on a gpt partition and this machine cannot boot that.Also I don't see the option to create XFS partitions from the installer.Can 5.5 support GPT @ install time?
P4 2.4gHZ 2.0GB Ram I have tried to do some reading on this by googling and such, but it is all a bit overwhelming and so many posts/articles want to deal with dual booting which I am not planning to do on this machine. I am trying to find some info on whether it is better to have a separate boot partition. As in, separate from root partition. I have read that a separate boot partition makes for a quicker start and better recovery if system crashes. I will shortly be installing openSuse 11.2(KDE) [currently on 11.0] and I want to optimise the partition scheme so that it is the most efficient. I have a 160GB HDD that will be housing this new installation, so space is not a problem. I am only user on this machine. Currently, it is just partitioned as such:
2.0GB - swap [because I read it should equal Ram] 32.0GB - / 40.0GB - /home 76.8GB - extra storage [Not really necessary as I have 2 other HDD on system 1 - 320GB and 1 - 200GB]
Also, is it recommended to have separate partitions for /tmp /var or any other /nnn ?