LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-18-2008, 02:13 PM   #1
clstanton
LQ Newbie
 
Registered: May 2008
Posts: 27

Rep: Reputation: 0
renamed mount file by accident


I am brand new ti linux. My issued laptop was hanging up when I tried to boot. I got it to boot and to prevent it from hanging up again I thought I would rename the file that was causing problems. Well it turned out the mount command is important (duh). I have tried to reboot with system rescue. When the laptop boots up i can't find the directory/drive holding the mount command so I can change it back. Not being familiar with linux in the first place the help sections are not helping much. I have been working on this for 30 hours now and am stumped. Any ideas please
 
Old 05-18-2008, 02:23 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,856

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
The commands to automatically mount partitions are in /etc/fstab.

When you boot into system rescue you are dealing with two different operating systems. The rescue CD has its own /etc/fstab and you want to repair the /etc/fstab on your hard drive. When you are the rescue system you need to mount your / partition and edit the /etc/fstab on your / partitions. Assuming that you / partition is /dev/hda1 and that it is an ext3 file system then the commands would be:

mkdir /sparrow
mount -t ext3 /dev/hda1 /sparrow
vi /sparrow/etc/fstab

You might prefer to use some other editor than vi. Any editor available on the rescue system will do.

--------------------
Steve Stites
 
Old 05-18-2008, 02:56 PM   #3
clstanton
LQ Newbie
 
Registered: May 2008
Posts: 27

Original Poster
Rep: Reputation: 0
error msgs

mount wrong fs type, bad option, bad superblock on /dev/sda1,
missing code page or helper program,

I tried this using ext2 and ext3. also sda1 sda2 sdb1
 
Old 05-18-2008, 03:47 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Please supply some more information:

First, I am not clear as to what file you changed (renamed).

Second, while running from a liveCD (rescue system, or whatever) issue the command "fdisk -l" while running as root. Post the results here
 
Old 05-19-2008, 02:25 PM   #5
clstanton
LQ Newbie
 
Registered: May 2008
Posts: 27

Original Poster
Rep: Reputation: 0
Smile Fixed

IT guy fixed machine today. Used Slack start up disk to gain access to files. Thanks to those who tried to help a newbie.
 
  


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
file renamed from mpg to mpeg on download ekrumm Red Hat 2 08-25-2005 03:45 PM
chsh accident; big accident. shinystuffrox *BSD 3 06-06-2005 07:06 AM
Renamed a mount point mbeach SUSE / openSUSE 1 04-08-2005 05:09 PM
file get renamed when copied to external hard drive pgajeski21 Linux - Hardware 11 04-15-2004 10:33 AM
Swap file format (by accident, honest) and boot maxb Linux - General 3 08-01-2003 04:27 AM


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