LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-06-2007, 04:19 AM   #1
shady_Dev
Member
 
Registered: Jun 2007
Posts: 44
Blog Entries: 1

Rep: Reputation: 15
etc/fstab Device label changed cant restore the default device name


hi,
I changed the label of the root partition in my etc/fstab....
Now when i rebooted the device is not identifiable and the kernel is providing a repair shell....to repair the system..
But when i tried to edit the "etc/fstab" file using vi editor the changes are not
saved because the shaell says the "fstab " is Read Only filesystem ...
even when i m in super user mode (i.e. root user mode)...
i tried changing the permissions by giving

root@localhost# chmod 777 etc/fstab

even then the permisiions are the same i.ei. readonly...
please tell me how can i restore my previous fstab file....
 
Old 11-06-2007, 05:23 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Try to remount your hard disk read-write:
Code:
mount -n -o remount,rw /
and then edit /etc/fstab
 
Old 11-07-2007, 06:15 AM   #3
shady_Dev
Member
 
Registered: Jun 2007
Posts: 44
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
Try to remount your hard disk read-write:
Code:
mount -n -o remount,rw /
and then edit /etc/fstab
thanks for the help sir.. .
i will try it..
 
Old 11-11-2007, 10:42 AM   #4
shady_Dev
Member
 
Registered: Jun 2007
Posts: 44
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shady_Dev View Post
thanks for the help sir.. .
i will try it..
it worked fine,.....
but i didnt get why the flesystem was in readable permission only...
please tell...
i ll be obliged......
 
Old 11-11-2007, 12:00 PM   #5
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
Becourse at boot time root partition is mounted in read-only mode for fsck to be able to check it, and then remounted in rw mode. Your error occures before filesystem whas remounted.
 
  


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
Device changed names after Kernel Update itz2000 Linux - Newbie 1 12-29-2006 03:12 PM
Install device changed. cdf22728 Fedora 3 05-22-2006 12:44 PM
label swap device equinox Linux - General 2 02-17-2005 01:41 AM
fstab entry changed by system to wrong device cmbguy Linux - General 2 08-19-2004 10:04 PM
how does harddrive gets its device label kngharv Linux - Newbie 3 12-13-2001 04:05 AM


All times are GMT -5. The time now is 10:56 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration