LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 03: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, 04:23 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

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

Original Poster
Blog Entries: 1

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, 09:42 AM   #4
shady_Dev
Member
 
Registered: Jun 2007
Posts: 44

Original Poster
Blog Entries: 1

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, 11:00 AM   #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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:28 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
Open Source Consulting | Domain Registration