Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th December 2010, 07:14 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxfedorafirefox
Aw Crud! I deleted my /boot folder!

As the title states, I deleted my /boot folder on one of my F14 installations. I'll have to fix it later. I have F14 under VirtualBox on the same computer. I'd bet I can copy from there and be OK.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
  #2  
Old 4th December 2010, 07:16 PM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,330
linuxfedorafirefox
Re: Aw Crud! I deleted my /boot folder!

Been nice knowing ya!
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
  #3  
Old 4th December 2010, 07:19 PM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,324
linuxfedorafirefox
Re: Aw Crud! I deleted my /boot folder!

Aw, DANG!

*(Dan slowly pulls off his hat, and holds it against his chest as he lowers his head.)*

It was so young, and full of life!
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
  #4  
Old 4th December 2010, 07:21 PM
GallComp's Avatar
GallComp Online
Nuke 'em Alfred! Administrator - Starring in Bill & Steve's Bogus Journey
 
Join Date: Mar 2004
Location: Fontana, CA
Age: 37
Posts: 2,333
windows_7ie
Re: Aw Crud! I deleted my /boot folder!

Use windows... No boot folder there...
__________________

"Since when has the world of computer software design been about what people want? This is a simple question of evolution. The day is quickly coming when every knee will bow down to a silicon fist, and you will all beg your binary gods for mercy. "


BILL GATES...
  #5  
Old 4th December 2010, 07:36 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxfedorafirefox
Re: Aw Crud! I deleted my /boot folder!

Buncha comedians

Watch this. I'm going to boot Fedora 14 / VirtualBox, update that system and then copy /boot. It'll work.


Hmmmm. 2.6.35.6-48.fc14.i686.PAE on the broken box vs. 2.6.35.6-48.fc14.i686 on the virtual one....

virt14 is the virtual installation

Code:
[root@virt14 ~># scp -r /boot/ root@phenom14:/
root@phenom14's password: 
iso9660_stage1_5                                                                 100%   11KB  11.4KB/s   00:00    
reiserfs_stage1_5                                                                100%   14KB  13.7KB/s   00:00    
e2fs_stage1_5                                                                    100%   13KB  12.8KB/s   00:00    
stage1                                                                           100%  512     0.5KB/s   00:00    
xfs_stage1_5                                                                     100%   13KB  13.3KB/s   00:00    
fat_stage1_5                                                                     100%   12KB  12.1KB/s   00:00    
ufs2_stage1_5                                                                    100%   12KB  11.6KB/s   00:00    
stage2                                                                           100%  120KB 119.9KB/s   00:00    
grub.conf                                                                        100% 1102     1.1KB/s   00:00    
jfs_stage1_5                                                                     100%   13KB  12.8KB/s   00:00    
vstafs_stage1_5                                                                  100%   11KB  11.0KB/s   00:00    
menu.lst                                                                         100% 1102     1.1KB/s   00:00    
device.map                                                                       100%   63     0.1KB/s   00:00    
ffs_stage1_5                                                                     100%   11KB  11.4KB/s   00:00    
splash.xpm.gz                                                                    100%   67KB  66.8KB/s   00:00    
minix_stage1_5                                                                   100%   12KB  11.6KB/s   00:00    
config-2.6.35.6-45.fc14.i686                                                     100%  112KB 112.3KB/s   00:00    
config-2.6.35.6-48.fc14.i686                                                     100%  112KB 112.3KB/s   00:00    
grub.efi                                                                         100%  230KB 230.5KB/s   00:00    
System.map-2.6.35.6-45.fc14.i686                                                 100% 1642KB   1.6MB/s   00:00    
System.map-2.6.35.6-48.fc14.i686                                                 100% 1642KB   1.6MB/s   00:00    
vmlinuz-2.6.35.6-48.fc14.i686                                                    100% 3610KB   3.5MB/s   00:00    
initramfs-2.6.35.6-48.fc14.i686.img                                              100%   12MB  12.3MB/s   00:01    
initramfs-2.6.35.6-45.fc14.i686.img                                              100%   12MB  12.3MB/s   00:01    
vmlinuz-2.6.35.6-45.fc14.i686                                                    100% 3610KB   3.5MB/s   00:01

phenom14 is the real installation, the one I deleted /boot from


Code:
[glenn@phenom14 ~>$ ls /boot/ -la
total 35964
dr-xr-xr-x.  5 root root     4096 Dec  4 14:47 .
dr-xr-xr-x. 25 root root     4096 Dec  4 14:47 ..
-rw-r--r--.  1 root root   114968 Dec  4 14:47 config-2.6.35.6-45.fc14.i686
-rw-r--r--.  1 root root   114968 Dec  4 14:47 config-2.6.35.6-48.fc14.i686
drwxr-xr-x.  3 root root     4096 Dec  4 14:47 efi
drwxr-xr-x.  2 root root     4096 Dec  4 14:47 grub
-rw-r--r--.  1 root root 12899540 Dec  4 14:47 initramfs-2.6.35.6-45.fc14.i686.img
-rw-r--r--.  1 root root 12899467 Dec  4 14:47 initramfs-2.6.35.6-48.fc14.i686.img
drwx------.  2 root root     4096 Dec  4 14:47 lost+found
-rw-r--r--.  1 root root  1681526 Dec  4 14:47 System.map-2.6.35.6-45.fc14.i686
-rw-r--r--.  1 root root  1681526 Dec  4 14:47 System.map-2.6.35.6-48.fc14.i686
-rwxr-xr-x.  1 root root  3696448 Dec  4 14:47 vmlinuz-2.6.35.6-45.fc14.i686
-rwxr-xr-x.  1 root root  3696576 Dec  4 14:47 vmlinuz-2.6.35.6-48.fc14.i686
Code:
[root@phenom14 ~># yum reinstall kernel-PAE
A waste of time methinks. A lot of errors.
Code:
Processing delta metadata
/boot/System.map-2.6.35.6-43.fc14.i686.PAE: No such file or directory
/boot/config-2.6.35.6-43.fc14.i686.PAE: No such file or directory
/boot/vmlinuz-2.6.35.6-43.fc14.i686.PAE: No such file or directory
delta does not match installed data
/boot/System.map-2.6.35.6-45.fc14.i686.PAE: No such file or directory
/boot/config-2.6.35.6-45.fc14.i686.PAE: No such file or directory
/boot/vmlinuz-2.6.35.6-45.fc14.i686.PAE: No such file or directory
delta does not match installed data
Package(s) data still to download: 42 M
(1/2): kernel-PAE-2.6.35.6-45.fc14.i686.rpm                                                 |  21 MB     00:08     
(2/2): kernel-PAE-2.6.35.6-48.fc14.i686.rpm                                                 |  21 MB     00:13     
-------------------------------------------------------------------------------------------------------------------
Total                                                                              1.9 MB/s |  42 MB     00:22     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : kernel-PAE-2.6.35.6-45.fc14.i686                                                            1/2 
grubby fatal error: unable to find a suitable template
  Installing     : kernel-PAE-2.6.35.6-48.fc14.i686                                                            2/2 
grubby fatal error: unable to find a suitable template

Installed:
  kernel-PAE.i686 0:2.6.35.6-45.fc14                       kernel-PAE.i686 0:2.6.35.6-48.fc14
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
  #6  
Old 4th December 2010, 07:43 PM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,858
linuxfedorafirefox
Re: Aw Crud! I deleted my /boot folder!

Now i just gotta ask, how can you do that (rolling on floor laughing)

edit if done from within fedora then it may still be in the root trash
  #7  
Old 4th December 2010, 07:43 PM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
linuxkonqueror
Re: Aw Crud! I deleted my /boot folder!

And hope the Virtual Machine's initramfs images contain the same or suitable drivers needed for the "hard iron" OS.

Good Luck,
V
  #8  
Old 4th December 2010, 07:52 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,304
linuxchrome
Re: Aw Crud! I deleted my /boot folder!

Run dracut after copying, it should rebuild your initramfs.

Either than or force install your current kernel rpm.

Edit: Also, after you copy, rpm -V grub filesystem fedora-logos and your kernels, those are the packages that own the files in my boot directory.
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy

Last edited by brunson; 4th December 2010 at 07:55 PM.
  #9  
Old 4th December 2010, 07:56 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxfedorafirefox
Re: Aw Crud! I deleted my /boot folder!

Quote:
Originally Posted by Dangermouse View Post
Now i just gotta ask, how can you do that (rolling on floor laughing)

edit if done from within fedora then it may still be in the root trash
Playing with that old laptop hard disk, 3 or 4 computers involved at different times, forgetting what I was doing or what computer I was doing it on. You know, sheer stupidity
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
  #10  
Old 4th December 2010, 07:59 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxfedorafirefox
Re: Aw Crud! I deleted my /boot folder!

Quote:
Originally Posted by Hlingler View Post
And hope the Virtual Machine's initramfs images contain the same or suitable drivers needed for the "hard iron" OS.

Good Luck,
V
I don't really mind having to reinstall but I'd rather fix it if I can.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
  #11  
Old 4th December 2010, 08:02 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxfedorafirefox
Re: Aw Crud! I deleted my /boot folder!

Quote:
Originally Posted by brunson View Post
Run dracut after copying, it should rebuild your initramfs.

Either than or force install your current kernel rpm.

Edit: Also, after you copy, rpm -V grub filesystem fedora-logos and your kernels, those are the packages that own the files in my boot directory.
Run dracut <what> ??? dracut --force?? dracut --fixmybox ?? Seriously. No idea here brunson.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
  #12  
Old 4th December 2010, 08:36 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,304
linuxchrome
Re: Aw Crud! I deleted my /boot folder!

I'd try dracut --force to overwrite the initramfs you copied from the virtual machine. dracut examines your hardware and makes sure all the appropriate drivers are available in the initial ram filesystem at boot time. You may be okay with the standard set on both installs, but in general it should do The Right Thing (tm). I believe dracut is run as part of the post install script for all kernel rpms.
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
  #13  
Old 4th December 2010, 10:17 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxfedorafirefox
Re: Aw Crud! I deleted my /boot folder!

Had already done that, with --force. Haven't rebooted yet. Got distracted by real life. What about that rpm -V thing. How's that work? (looking at man rpm as I post)

I give up. Rest in peace Phenom14.
Attached Thumbnails
Click image for larger version

Name:	rip.gif
Views:	28
Size:	6.1 KB
ID:	20395  
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
  #14  
Old 5th December 2010, 12:34 AM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,304
linuxchrome
Re: Aw Crud! I deleted my /boot folder!

rpm -V will verify all the files that were installed by a particular rpm are in the correct place with the correct permissions and checksums. rpm -V grub would let you know if you deleted something vital from /boot, but didn't put it back.

At this point, I'd just cross my fingers and go for it. I give it an solid 80% chance of working. :-)
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
  #15  
Old 5th December 2010, 12:58 AM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxfedorafirefox
Re: Aw Crud! I deleted my /boot folder!

Even though I posted the picture of the head stone the installation is still intact. I've installed another Fedora 14 to a newly created partition. The challenge of getting the old one working interests me. Thanks for the replies to date.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Closed Thread

Tags
crud, deleted, folder, or boot

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
my /boot folder is deleted Arashdn Using Fedora 1 1st December 2010 06:51 PM
[SOLVED] Deleted Desktop folder ecuaman Using Fedora 0 31st May 2010 07:16 AM
Deleted TMP folder F7 won't boot now crainey69 Using Fedora 2 5th October 2007 02:40 AM
I deleted /var/* folder (by accident) pepe123 Using Fedora 12 12th July 2007 11:22 PM
Arrrggh! Deleted a folder I didn't want deleting! tizwoz Using Fedora 1 19th October 2006 07:58 PM


Current GMT-time: 04:33 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat