LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2010, 01:38 AM   #1
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 315

Rep: Reputation: 34
accidentally deleted the swap : linux won't start


I have a dual boot system - vista & fedora.
I was cleaning my hard disk drive, using a partition manager for windows.
I moved the swap partition without much thinking about the consequences - and now I can't boot into fedora. It gives the following error :-
mount: error mounting /dev/root on /sysroot as ext3 No such file or directory.

How to resolve the issue ? plz help me out.
thanks in advance
nishith
 
Old 11-20-2010, 03:35 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,889

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
As root, run fdisk -l to determine the partition number of your swap partition.

Then,
1) boot a liveCD.
2) mount the Fedora partition.
3) edit /etc/fstab to show the correct partition number for swap.
4) reboot without the liveCD.

If swap in indeed the cause of the problem, that should solve the problem.
 
Old 11-20-2010, 03:55 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,627

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
Quote:
Originally Posted by nkd View Post
I was cleaning my hard disk drive, using a partition manager for windows.
Bad idea - you get much more flexibilty using open-source tools.
Quote:
It gives the following error :-mount: error mounting /dev/root on /sysroot as ext3 No such file or directory.
I take it back - you'd probably get this regardless ...

I'd say your root partition has changed designation - you should be able to fix it from a liveCD (change the root=... on the kernel line of the boot-loader), or from command mode in the grub menu.
 
Old 11-20-2010, 04:06 AM   #4
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 315

Original Poster
Rep: Reputation: 34
thanks a lot for the response....
I checked the /etc/fstab entries against the fdisk -l, and found all in order.
But I still get the same error!
can you suggest something else
thanks in advance
nishith
 
Old 11-20-2010, 04:22 AM   #5
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
Hi nkd..

have a look:

Code:
http://fedoraforum.org/forum/showthread.php?t=227417
 
Old 11-20-2010, 10:05 AM   #6
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 315

Original Poster
Rep: Reputation: 34
good suggestion
Quote:
I'd say your root partition has changed designation - you should be able to fix it from a liveCD
I sorted it out by fixing the boot partition.
thanks a lot
nishith
 
Old 11-20-2010, 10:16 AM   #7
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by nkd View Post
good suggestion

I sorted it out by fixing the boot partition.
thanks a lot
nishith
Just wanted more info on your fix. Did you just set the boot flag to your boot partition?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accidentally Deleted Start Menu and Panel 32sevchenko42 Linux - Newbie 4 01-22-2013 07:18 PM
I accidentally deleted libstdc++ :( piforever Fedora 4 01-01-2006 06:03 PM
Deleted accidentally a Linux Suse 9.3 profile sfzab Linux - Software 0 12-07-2005 04:47 PM
Accidentally Deleted my Linux Partition...Need Help ASAP robbs Linux - Newbie 3 07-10-2005 07:26 PM


All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration