Debian :: Rebuild Lost Bootloader Flash
Aug 29, 2015
I use a usb flash stick for bootloader and /boot. Debian resides on sdaX and is LUKS encrypted (in fact LVM on LUKs). I am trying to learn how to use the Deb LIVE disk with rescue mode to re-build the bootloader and /boot on a fresh different flash drive. As a learning tool I want to approach this task as described. I have full access to a perfectly running system at this point, but I want to learn this process knowing eventually something will go "bump in the night". I did a custom install so I am aware of how this works generally speaking.
I have password access to the LUKS volume and can easily open it at the LIVE disk prompt to do so. My new flash drive is wiped and EXT2 formatted and should be ready to go. I have RAM based backup software for doing sector backups of the LUKS partition/volume. Doing a full restore at any point will be a piece of cake. I have lots of family around and the thought of a missing bootloader flash drive, while not likely, is not out of question.
View 6 Replies
ADVERTISEMENT
Nov 11, 2015
I have an issue after the installation of debian 8.2 on an usb flash drive:
I had debian 8.2 and windows 8.1 running on a single SSD. Everything was fine. I wanted to install a second debian on a 32gb USB flash drive as a live system. After the installation I am not able to boot my debian (SSD) without the flash drive plugged in. I only get a grub rescue prompt. Booting windows still works. It is also possible to boot both debian systems if the USB drive is plugged in.
So it seems to me, that the debian bootloader was accidently installed to the USB flash drive and the original bootloader on the SSD does not work properly anymore. I used a netinst image from a second USB flash drive to install debian to the first USB flash drive.
Update fdisk output:
/dev/sda1 2048 2050047 2048000 1000M Windows recovery environment
/dev/sda2 2050048 2582527 532480 260M EFI System
/dev/sda3 2582528 4630527 2048000 1000M Lenovo boot partition
/dev/sda4 4630528 4892671 262144 128M Microsoft reserved
/dev/sda5 4892672 223840255 218947584 104,4G Microsoft basic data
[Code] ....
View 6 Replies
View Related
Jan 25, 2010
I have an old Athlon XP 3000 machine that I keep around as a file server.It's currently got three 1TB drives which I had setup as mdadm raid 5 on FC10. The machine's original drive held the superblock for the raid array and it just had a massive heart attack. I've searched, my biggest source being URL...I can't tell if I can reassemble the superblock info lost with the original hard drive or if I've lost it all...
View 9 Replies
View Related
Jun 15, 2010
I've got 2 hard disk drives of 250GB, with this partitions :
All partitions are with format "linux raid software". I made 3 raid1 with them like that :
I want to clone them to news hdd of 500Gb, to have this partitions :
My problem, how can I resize partitions, before resize the array md2 with the command mdadm --grow /dev/md1 --size=max ?
After, how can I rebuild /dev/md2 without lost any datas ?
I'm using ubuntu-server 10.04 64bits.
View 3 Replies
View Related
Nov 21, 2010
When trying to rebuild a RAID1 on a FastTrak TX4310 controller after a disk was replaced the below message is given:
Code:
[root@SAMBA Samba]# dmraid -R pdc_gigcjhdfa /dev/sdc
Volume "pdc_gigcjhdfa" is not in rebuild state (current: 16)
Rebuild: cannot rebuild from current state!
View 4 Replies
View Related
Sep 1, 2011
I'm trying to install Linux to one of my flash drives. The installation goes fine until I am at the end where I get a bootloader error.
View 2 Replies
View Related
Jun 7, 2010
my wireless doggle is not suppoerted out of box on squeeze.It's based on zd1211rw,just lack the vendor and product id.how can I hack the source and rebuild the driver module?
View 1 Replies
View Related
Jun 19, 2015
I used a clonezilla live cd to clone a working updated install to another SSD of the exact make and model. Something went terribly wrong, and the new system booted to emergency mode. I then went back to my working laptop I cloned from and it did the exact same thing when booted, into emergency mode. After a couple of days trying to figure out how to rebuild the FSTAB on the once working machine, I finally figured out how to mount the root partition and copied all my important stuff off. WHEW!
Before I was able to mount the root partition, I had a heck of a time trying to mount it, getting errors about unable to read superblock, etc. I used testdisk that I installed on a debian live cd (on a flash drive) and it did something, not sure, but after that, and rebooting, I no longer had sda1,sda2, and sda5. I only had 1 and 5. sda2 was the root partition (extended, ext2) and I thought all was lost. But after running fdisk -l, I noticed two other devices... dm-0 and dm-1. I noticed that dm-0 was my root partition and read that it has something to do with LVM. I mounted it, and grabbed all my important stuff.
Now I am stuck at rebuilding my fstab so my boot, root, and swap partitions are properly mounted. Again, I do not have anything to copy and paste yet. I guess I got lazy since a lot of my work on this system is via Putty and SSH from a windows machine. It certainly looks like the partitions are there and ok, just not sure where to go from here.
I read that I need to get the UUID's from the partitions, then rebuild the fstab using those. I figured out pretty quickly that using /dev/sda1, 2, and 5 did not work. And the UUID's are pretty long. Without copy and paste, I am not sure how to use those without manually keying them in. I tried shelling into my laptop via putty while it is in emergency mode but failed.
View 7 Replies
View Related
Jan 8, 2011
After following this wiki article here detailing how to rebuild the Debian kernel, I'm encountering errors:
HowToRebuildAnOfficialDebianKernelPackage
These were the errors generated at the end of the console output.
Code:
Is there something more specific someone (including myself) would need to diagnose this? I'm unsure how to generate a log for the build process, even if possible...
View 2 Replies
View Related
May 1, 2011
Just upgraded to 11.04 afterwards I am missing a plug-in to see ..... type videos online. I think that in the process I was asked to disable 3rd party apps. If that is the problem, how do I re-enable the apps?
View 1 Replies
View Related
Mar 16, 2010
I'm using 8.10, but wanted to upgrade firefox to the latest version, so I downloaded the tarball from their website and compiled that. FF 3.6 works fine, but I havn't been able to get my flash or java plugins to work since.
View 5 Replies
View Related
Sep 17, 2010
I installed flash player for my daughter and lost all my icons. I did " sudo gnome - panel restart and got them back , All but the wireless icon and I do not have a clue how to get it back. I also need to know how to get my pc to see the ubuntu os on the same network and how to view its traffic as part to police what my daughter is doing.
View 1 Replies
View Related
Aug 7, 2010
lost all sound on flash after firefox updated (or shortly thereafter)
in other words videos and the like are silent (which is a kind of a blessing, really).
10.04lts 32bit
firefox 3.6.8 - (for ubuntu - canonical 1.0)
flash 1.0.10 (tried r&r already)
external usb sound card, desktop system
sound works great everywhere else, including mp3's on web through firefox. i searched the forum, of course, but didn't find anything that seemed relevant or up-to-date.
View 2 Replies
View Related
Feb 21, 2010
Adding freebsd to grub bootloader
[URL]
View 2 Replies
View Related
Oct 12, 2014
I have a dual boot machine (Windows 7 and Debian). W7 and debian are on the same HD but on different partitions. The debian partition is an LVM encrypted one.
The W7 needs reinstalling, and as I understand the process will overwrite the debian bootloader (grub).
Question: Is there a way to save the current bootloader and recover it after I've reinstalled W7, so I wont have to reinstall debian from scratch?.
I plan to re-install W7 on the same partition it is now, without overwriting the debian partition.
View 9 Replies
View Related
May 9, 2015
I wanted to switch to Linux from Windows so I decide to install Debian. The installation completed successfully but after that the bootloader doesn't show after the system reboot. So it is just black screen. I have an option for booting Debian (which will go to a black screen) and go to command line which looks like command prompt in Windows. I tried going to the command and it shows
grub>
I don't know which command to input since I'm a newbie and not familiar with Linux. I installed Debian from USB using unetbootin. What I should do to successfully install Debian?
View 8 Replies
View Related
Jul 16, 2015
I have a Debian testing system on a laptop that used to have Windows 8 on it. I kept the EFI boatloader and its partition, but now every time the system boots, it first tries to boot into Windows (which isn't there anymore). Removing /boot/efi/EFI/Microsoft just leads to an error message when booting, with some component of Windows still trying to load and not finding those files.
The workaround for now is to go into the UEFI boot menu on every boot and selecting the "debian" entry, which works but is a bit cumbersome.How can I get rid of the Microsoft loader completely? I find a lot about repairing or re-adding the Windows bootloader, but nothing about removing it.
View 10 Replies
View Related
Nov 29, 2014
Basically I had windows 8.1 running on my fujitsu lifebook A532 laptop and wanted to dual boot kali linux alongside it, however upon installing the linux it deleted EVERYTHING! on my laptop, the grub bootloader only showed kali linux to choose from...
I then decided kali linux is too complicated for me and decided to delete everything and reinstall windows 8 again however I was surprised that my bios screen looks diffrent also I can not edit the boot sequence.
If I press f2 or f12 it takes me to a screen with a tab named Boot menu and its written on it debian and every time I press enter on it it takes me back to this same screen...
I can not boot from cd or usb!
View 3 Replies
View Related
Aug 19, 2010
I installed Debian on my PC and then installed Ubuntu. This worked fine and I could dual boot between the two. The PATA disk was /dev/hda on debian and (I think) /dev/sda on Ubuntu. I copied the entire disk to a sata disk using dd from knoppix and put the PATA one to one side. Now the Ubuntu comes up fine but when I boot debian, it complains about references to /dev/hda1, which is present in grub - root=/dev/hda1. Debian now expects sda references rather than hda references. How do I persuade Ubuntu to write /dev/sda1 to the bootloader rather than /dev/hda1 using grub-mkconfig?
View 1 Replies
View Related
Nov 7, 2010
I have a major problem installing opensuse 11.3 on my computer( hp pavilion dv6).I downloaded openSUSE-11.3-GNOME-LiveCD-x86_64 from software.opensuse.org: Download openSUSE 11.3 and made a live usb.I'm a newbie at using linux infact i never used another operating system beside windows.Now i have installed windows 7 (on c disk 100gb).My first problem when i am trying to install opensuse is that he dosn't automatic choose to make my partitions so i have to do it manualy.I was searching how to make it the best way so i desited to make 4 partitons one for ' /boot' one for ' / 'one for '/home' and a swap partition/In windows7 i made 4 new partitons
3:10 gb for /boot
4:10 gb for/
5:70 gb for /user
6:10 gb for /swap
My first question is :Is this right to make 4 paritions in windows (opensuse can't format or resize my partitions it just can edit it ) so it's my only way to make partitions( If this is wrong how can i make partitions then)
My second question is how to change the bootloader configurtation because everytime when ii try to install opensuse it stops at about 96% and it says to reconfigure the bootloader options.
If i skip this i get the folowing message
=== System Checking ===
Checking for /usr/bin/chroot binary... Passed
Checking for chroot directory /mnt... Passed
Checking for chroot directory content (bin
boot
Checking for binary /mnt/bin/ls... Passed
Trying to chroot... Failed
This is worth reporting a bug at url.
View 9 Replies
View Related
Feb 5, 2010
I am helping my pal to get into Debian (yes first timer).He is running W7 on a 500G SATA HDD and he has another 250G SATA HDD that he wants Debian to go to.Will Debian install grub on the master bootloader even if the installation is going on a separate hard drive?I have dual boot before but on the same hard drive.
View 6 Replies
View Related
Jul 10, 2009
I've been running Debian Lenny kernel 2.6.26 w/ desktop kde3.5 on my laptop for a while, and im going to take a trip in which i will be unable to take wmy laptop with me. However, where i am going contains computers and i figured if i could install debian onto my external harddrive, i could just boot onto the other computers. I install it using the debianlenny-i386 dvd image. However whenever I try to boot it from a computer. Grub returns
Code:
Grub Loading...
Error 21
and then the blinkng cursor. On one site i found something saying "you may need to activat the drive" and some command-line instructions on how to do it. However the commands have faded from memory and i am now unable to find that site again. Could anyone offer insight on how to fix this "grub error 21" or how to activate it. I run primarily debian but i have a windows partition on one of my relative's computers.
Thank you in advance for the help!!!
btw I'm installing on a western digital 500gb "passport" external hard drive with ext3 and swap partitions.
View 5 Replies
View Related
May 11, 2015
I recently freshly installed Debian 8 (stable) XFCE.Everything was working fine. I installed Skype (using the instructions in the Debian wiki) and that worked no problem. I then installed libavcodec56-extra (just to have the extra codecs ready in case needed), and Synaptic also installed the i386 version also.After that, no sound (anywhere at all).I reinstalled libavcodec-56 (and the i386 version) to try to rectify the problem, but the sound has not returned.
As per a google seacrh, i installed pulse audio. This showed me that the the 'levels' were moving in line with the sounds which should have been playing, but no amount of tweaking managed to get the sound to come out. I have Mint installed on the same machine and the sound works fine here so i know for sure it is not a hardware issue.
View 13 Replies
View Related
Nov 1, 2010
I'm running 32bit Lenny on an older Dell Dimension 2400 running the 2.6.26 Kernel. This box was mainly used to play movies for my son over the network (most are encoded by me using xvid and lame). One of my kids wanted to use the computer to watch videos on ...... I attempted to install the flashplugin-nonfree from the backports and it kept timing out on downloading the package, so I ran apt-get update and then apt-get upgrade. I rebooted and tried the flashplugin-nonfree again and finally got ..... videos to play but there was no sound. I assumed it was a permission issue, so I switched users and attempted to play some of the movies which I've played before and currently the video plays fine but the audio sounds very ugly. I attempted to play an mp3 using mpg123 from the command line and I get mostly static. You can hear some sound but it's all jumbled and there is a lot of static. I have a creative soundblaster card using the EMU10k1 driver. Everything was working fine before I started mucking with the flashplugin and I'm afraid something I "upgraded" may have caused my issue.
Any suggestions? Is there a way I can remove any sound related drivers etc and attempt to reinstall them? I attempted to run sudo alsaconf but afterwards, it acts like there is no sound card. a reboot resolves that issue as I didn't save any changes, but I'm not sure where to go from here. I've become spoiled by all of the newer distros which detect all of my hardware and everything is configured for me.
View 2 Replies
View Related
Sep 17, 2014
I've just installed Debian 7 Netinst on an old laptop. It's using one of those PCMCIA(?) wireless NIC card things. It recognised it during the install, asked me for some driver files which it found on my mobile phone when I connected it to the laptop's USB Went through the whole install process without any problems and the only changes to default I made was to deselect "Debian Desktop..." and selected "SSH Server". Rebooted, get a command prompt and login OK .... but it's not picked up the network thingy. Twice I've done this. Why is it losing the networking...
There is a glitch in my install. It doesn't find the NIC first time so I click "Back" and it takes me to the installer menu. There I choose "Detect Network Hardware" and OK. It finds the card, installs the drivers from my phone and prompts me for the WAP's SSID. I select "Back" again, choose "Detect Network Hardware" again and it goes OK and finds 3 WAPs in range. All goes well after that. I don't see how that can mess it up though I'm going to do it all again but this time select the "Debian Desktop" option and let you know if that changes things.
I'm having to be careful with the partitioner ... If I allowed it to install to the "Largest contiguous..." it would end up on my mobile phone as the laptop has a 10Gb drive and the phone 32Gb .
View 4 Replies
View Related
May 5, 2015
Desktop lost (Cinnamon 2.2.16 for me) after a recent dist-upgrade in Sid. I'm new to Sid, so is this normal?
Here's what happened:
Code: Select allsudo apt-get update
sudo apt-get dist-upgrade
Code: Select allCalculating upgrade... The following packages were automatically installed and are no longer required:
x11-apps x11-session-utils xinit
Use 'apt-get autoremove' to remove them.
Done
[Code] ....
I also have run
Code: Select allsudo apt-get update
sudo apt-get -f install
sudo apt-get install task-cinnamon-desktop
but it says something to the effect that task-cinnamon-desktop has been moved out of incoming, and that it's unable to install since I have held broken packages.
View 14 Replies
View Related
Jul 1, 2015
I just did a net install of Debian Jessie in VMWare Player. I very much enjoyed the install. I chose not to install a desktop. I set the root password as root. And the user as paul/paul. Now I cant login in root, it says I have the wrong password. How would you resolve this?
View 13 Replies
View Related
Dec 16, 2010
I have been using F12 for while now, I had applied update when it available. After the latest update, my laptop have lot of Kernel Crash error and it hang up more often. I try to upgrade to the F13 or F14 but not successful at all. My only hope now is to rebuild the Kernel to the early Kernel. How to rebuild the Kernel to 2.6.31.5.
My current Kernel is 2.6.32.26-175.fc12.i686.PAE
Gnome 2.28.2
1G memory
Intel PIII mobile 1.13G
View 2 Replies
View Related
Jan 1, 2010
I recently did a very stupid thing:
Code:
sudo rm -f /var/log Now I cannot update or upgrade any package (I know there are updates waiting but Update Manager doesn't show any packages to download). How can I rebuild the index of packages and its versions in /var/log/apt ?
View 2 Replies
View Related
Jul 22, 2010
I've lost the disk that contained the /boot directory of a 9.10 installation.All other important partitions/directories are on a raid0 and working ok.So, I started trying to repair the system by booting from Ubuntu 9.10 live cd, creating a new partition on a new disk for /boot, mounting all partitions in its place for a chroot environment, doing the chroot, and then trying several reinstalls of packages which I supposed where enough for rebuilding /boot (linux kernel & grub), then I ran something like grub-setup which installed a new MBR on the new disk.Everything went ok, but when I reboot the new installation it gets me to a text mode login screen and of course I want to recover the previous configuration which ran gdm and auto login into GNOME I had before.After that I tried reinstalling some other packages like gdm but now the boot process "hangs" on the boot splash screen.
View 1 Replies
View Related