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 01-03-2009, 07:19 PM   #16
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30

Quote:
Originally Posted by BCarey View Post
When you boot from the install disk and log in, you will see a full filesystem including /etc/fstab. This is _not_ the same one that you have installed on your hard drive. In order to access your _real_ /etc/fstab you will need to mount your file system as I said in my earlier post. Then you will be able to access and edit your real /etc/fstab by editing /mnt/etc/fstab.

Brian
So fstab is not located in /etc it is in /mnt/etc ? when booting from install disk?
 
Old 01-03-2009, 07:46 PM   #17
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,602

Rep: Reputation: Disabled
Quote:
Originally Posted by M$ISBS View Post
So fstab is not located in /etc it is in /mnt/etc ? when booting from install disk?
Exactly. The install disk, as with any "LiveCD", creates a virtual filesystem in RAM. When you turn off your computer, everything there disappears. In order to access a hard drive, you need to mount it.

So, when you boot the install disk and run setup, one of the first things you do is set up your target partitions. This does two things, it helps create your fstab and it also mounts those partitions under /mnt. If you want to see it happen, run setup and go through the steps up to setting up the target partitions but exit setup prior to actually installing anything. Then type "ls /mnt". You will see a full root filesystem under /mnt, and that is your actual harddrive filesystem.

Those are the real files that you need to edit. Depending on the changes you need to make, eg. if you need to edit lilo, you may enter the command "chroot /mnt". This makes the system consider /mnt to be the root filesystem rather than / which is a "virtual" filesystem.

I hope this is not too confusing.

Brian
 
  


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
disable automatic running of fsck Greebstreebling Debian 4 01-27-2008 11:31 AM
dbx command for corrosponding commands disable or disable on gdb bshankha AIX 0 09-26-2006 10:38 AM
what are the services i can disable, also disable ads, banners in konqueror? greythorne SUSE / openSUSE 3 03-16-2005 09:30 AM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 08:51 AM
How to disable auto fsck during boot for specific volumes mansonmuni Linux - General 5 12-21-2003 10:54 PM


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