LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 09-24-2010, 10:01 AM   #31
xiaomin
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, 10:41 AM   #32
HeatherGraham
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
you can create file /etc/fstab and then put like below
Quote:
/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, 12:59 PM   #33
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,220

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
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.

Quote:
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.

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

-----x

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 01:01 PM.
 
Old 09-25-2010, 01: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
@miteshpant

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
 
  


Reply

Tags
help


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


All times are GMT -5. The time now is 05:09 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration