Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-24-2010, 09:01 AM   #31
LQ Newbie
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0

tried to run mount -o remount,rw /dev/sda
but issue is not resolved
please suggest
Old 09-24-2010, 09:41 AM   #32
LQ Newbie
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
you can create file /etc/fstab and then put like below
/dev/hda2 / ext2 defaults 1 1
/dev/hdb1 /home ext2 defaults 1 2
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/fd0 /media/floppy auto rw,noauto,user,sync 0 0
proc /proc proc defaults 0 0
/dev/hda1 swap swap pri=42 0 0
Old 09-24-2010, 11:59 AM   #33
Senior Member
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,665

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
yes iam on the same distro
first i tried to edit /etc/fstab in single user mode
it denied doing coz of read only mode
Noh, you were trying to edit the running fstab locked by the liveCD, of course that's a big "no" as a rule.

then i tried to run mount -o remount,rw /
it give me the following error
warning : can't open /etc/fstab : No such file or directory
mount: can't find / in /etc/fstab or /etc/mtab
The running system locked it.

i am running these commands after running su -
Yes but the liveCD system is greater than you.


Your problem is simple, you only need to reconstitute a text file and put it into its proper place. Had you posted to us your 'fdisk -l' output we would have known enough what file system you run, an ext2, ext3, ext4 or raiser? and would have posted you the correct texts. Run --# fdisk -l first and find ascertain the partitions and edit the instructions below accordingly.

Here is what you need to do.

1. Boot the live CD.
2. Check the partition: root@livecd-# fsck -a /dev/sda3
3. Mount it rw:
root@livecd-# mkdir /mnt/mysda3
root@livecd-# mount -o rw /dev/sda3 /mnt/mysda3
(Now it's there waiting to get manipulated.)
4. Follow these series of terminal commands:
--# touch fstab
--# echo '/dev/sda3 / ext3 defaults 1 1' >> fstab
--# echo 'proc /proc procfs defaults 0 0' >> fstab
--# echo 'tmpfs /dev/shm tmpfs defaults 0 0' >> fstab
--# echo 'devpts /dev/pts devpts user,rw 0 0' >> fstab
--# echo '/dev/cdrom /media/cdrom iso9660 noauto,user,ro 0 0' >> fstab
--# chmod 766 fstab
--# cp ./fstab /mnt/mysda3/etc
(Take note of the spaces and single quotes (') and the pipe >>)
(Assuming that your /, /boot and /tmp dirs reside in the same partition, it's a go)
Now it's time to reboot into your hard drive root.

After logging back into the old system you must recover the original fstab from the trash and replace the one you temporarily made.

Hope this helps. Good luck.

Last edited by malekmustaq; 09-24-2010 at 12:01 PM.
Old 09-25-2010, 12:15 AM   #34
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282

You can mark your thread as solved using the threadtools just above the first post on a page

PS You already double posted the solution in 2009 So how can one miss it



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
how to recover deleted folder Linux - Software 1 09-09-2009 07:21 AM
How do I recover a rm deleted folder? CrownAmbassador Linux - Desktop 13 02-16-2009 03:54 AM
I have deleted rc.d from /etc. How can I recover it? rupeshukla Linux - Newbie 5 07-01-2008 04:21 AM
Recover deleted files? subaruwrx Linux - Newbie 8 06-04-2004 08:47 AM
Recover deleted files markdw Linux - General 1 12-07-2001 04:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:25 PM.

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