Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 23-04-2007, 06:44 PM   #1 (permalink)
Console Junkie
 
aditya.shevade's Avatar
 
Join Date: Jun 2006
Location: USA
Posts: 991
Exclamation Ubuntu 7.04, Deleted 'vmlinuz' What to do?


Hi

I have OpenSuSE 10.2 and Ubuntu. I was playing with SuSE's xen and accidentally deleted the vmlinuz file of Ubuntu. And now obviously I am not able to boot in.

Is there any way to restore the file? Without entire system re installation? Then please tell me. Or can someone send me the file through email? If they work the same for all PCs which I doubt they do not.

Aditya
__________________
--- Console Junkie
aditya.shevade is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 23-04-2007, 07:15 PM   #2 (permalink)
Debian Rocks!
 
freebird's Avatar
 
Join Date: Feb 2007
Location: Coimbattore
Posts: 528
Default Re: Ubuntu 7.04, Deleted 'vmlinuz' What to do?

You need to chroot-change root (from suse) and do a apt-get install linux-image-(version) --reinstall to get everything file.if u have a seperate /boot partn u need to mount it inside ubuntu's root(/) partn's /boot directory.also be sure to mount it as rw.



ps:i'll post in detail later
__________________
"The day windows users wake up to reality, it will be doomsday for Microsoft."UNIX like OS are more secure.get urself out 4m M$ http://whylinuxisbetter.net http://tinyurl.com/2amjjc http://fsf.org
freebird is offline  
Old 23-04-2007, 07:18 PM   #3 (permalink)
Console Junkie
 
aditya.shevade's Avatar
 
Join Date: Jun 2006
Location: USA
Posts: 991
Default Re: Ubuntu 7.04, Deleted 'vmlinuz' What to do?

^^ Yeah, details would be better. I don't want to screw up.
__________________
--- Console Junkie
aditya.shevade is offline  
Old 23-04-2007, 07:20 PM   #4 (permalink)
Debian Rocks!
 
freebird's Avatar
 
Join Date: Feb 2007
Location: Coimbattore
Posts: 528
Smile Re: Ubuntu 7.04, Deleted 'vmlinuz' What to do?

^ sure u can repair it.dont fret.I'll post in some 30 minutes sorry
OK.

First know ur ubuntu partition using fdisk -l command.
do u have a /boot partn?
I assume u dont have seperate partition for /boot? also use root permission doing following:
so:
First mount ur ubuntu "/" partn say we assume it as /dev/sda7 here.
mount it.
Code:
~$sudo  mount /dev/sda7    /mnt
==assumin u have a /mnt dir.
now chroot:
Code:
@ubuntu:~$sudo chroot  /mnt/      /bin/bash
now ur chrooted,ie ur now working in Ubuntu but using Suse's Linux kernel for temp use and from Open SUse.
Code:
~#mount /proc/
Code:
~#apt-get install linux-image-2.6.xxx    --reinstall
afterwards umount /proc;type exit or CTRL+D.now go to /mnt/boot/ folder(ubuntu) make sure ur vmlinuz,initrd etc are there.
if u have a seperate /boot for ubuntu clarify as it needs that u mount the /boot partn inside /boot dir of mounted ubuntu @ /mnt/boot
Hope u get.
__________________
"The day windows users wake up to reality, it will be doomsday for Microsoft."UNIX like OS are more secure.get urself out 4m M$ http://whylinuxisbetter.net http://tinyurl.com/2amjjc http://fsf.org

Last edited by freebird; 23-04-2007 at 07:28 PM.
freebird is offline  
Old 23-04-2007, 08:59 PM   #5 (permalink)
Console Junkie
 
aditya.shevade's Avatar
 
Join Date: Jun 2006
Location: USA
Posts: 991
Default Re: Ubuntu 7.04, Deleted 'vmlinuz' What to do?

Thanks man. Will try it out, actually doing it right now. And it seems to be working.

And by the way also tell me how to change the permissions of partition of ubuntu (mounted as /ubuntu) and make it read only. Using the command line. I know the GUI way.
__________________
--- Console Junkie

Last edited by aditya.shevade; 23-04-2007 at 08:59 PM. Reason: Automerged Doublepost
aditya.shevade is offline  
Old 23-04-2007, 09:15 PM   #6 (permalink)
Wise Old Owl
 
vignesh's Avatar
 
Join Date: Jul 2004
Location: Chennai
Posts: 1,659
Default Re: Ubuntu 7.04, Deleted 'vmlinuz' What to do?

chmod 755 /ubuntu -R
vignesh is offline  
Old 23-04-2007, 11:44 PM   #7 (permalink)
Console Junkie
 
aditya.shevade's Avatar
 
Join Date: Jun 2006
Location: USA
Posts: 991
Default Re: Ubuntu 7.04, Deleted 'vmlinuz' What to do?

thanks. I need to get a good book/ebook/any document on shell commands.
__________________
--- Console Junkie
aditya.shevade is offline  
Old 24-04-2007, 01:42 AM   #8 (permalink)
Debian Rocks!
 
freebird's Avatar
 
Join Date: Feb 2007
Location: Coimbattore
Posts: 528
Default Re: Ubuntu 7.04, Deleted 'vmlinuz' What to do?

there is no need to set permissions.just follow the commands from a host operating system;in this case i think u got suse linux also.else u can use a live cd distro and get it mounted too.sometimes some distros auto-mount ur other partns including ubuntu;that doesnt matter.
__________________
"The day windows users wake up to reality, it will be doomsday for Microsoft."UNIX like OS are more secure.get urself out 4m M$ http://whylinuxisbetter.net http://tinyurl.com/2amjjc http://fsf.org
freebird is offline  
Old 24-04-2007, 01:48 PM   #9 (permalink)
Wise Old Owl
 
vignesh's Avatar
 
Join Date: Jul 2004
Location: Chennai
Posts: 1,659
Default Re: Ubuntu 7.04, Deleted 'vmlinuz' What to do?

www.tldp.org

Guides for different distros
vignesh is offline  
Old 24-04-2007, 01:52 PM   #10 (permalink)
Console Junkie
 
aditya.shevade's Avatar
 
Join Date: Jun 2006
Location: USA
Posts: 991
Default Re: Ubuntu 7.04, Deleted 'vmlinuz' What to do?

Quote:
Originally Posted by freebird
there is no need to set permissions.just follow the commands from a host operating system;in this case i think u got suse linux also.else u can use a live cd distro and get it mounted too.sometimes some distros auto-mount ur other partns including ubuntu;that doesnt matter.
No no... You got me wrong. I did what you said, and Ubuntu is running fine. I want the partition to be read only so that I don't delete files by mistake the next time I am doing anything.
__________________
--- Console Junkie
aditya.shevade is offline  
Old 25-04-2007, 01:36 AM   #11 (permalink)
El mooooo
 
eddie's Avatar
 
Join Date: Jan 2006
Location: India
Posts: 1,414
Default Re: Ubuntu 7.04, Deleted 'vmlinuz' What to do?

You should edit your fstab file and change the permissions to ro in there. That will make the permissions on /ubuntu folder permanent until you change it again in fstab
eddie is offline  
Closed Thread

Bookmarks

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted services.exe... bizzare_blue Software Q&A 11 18-11-2006 12:23 AM
Partitions Deleted!!! HELP!!! HELP!!! Aseem Nasnodkar QnA (read only) 2 24-10-2005 08:27 PM
ICO Deleted !!! rajkumar_personal QnA (read only) 2 27-07-2005 03:05 PM
deleted Rexon QnA (read only) 10 03-09-2004 02:05 PM

 
Latest Threads
- by Sujeet
- by soumya
- by clmlbx
- by Charan
- by reddick

Advertisement




All times are GMT +5.5. The time now is 12:28 PM.


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

Search Engine Optimization by vBSEO 3.3.2