LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-21-2008, 11:04 PM   #1
donanap
Member
 
Registered: Sep 2008
Location: Perth, Australia
Distribution: RedHat, Solaris
Posts: 38

Rep: Reputation: 15
Question How do I edit fstab-sync, will not open/run! RHLinux Enterprise


Hi, I'm a newbie & my linux knowledge so far is limited so excuse the simplicity but I pose this question:

I have partitioned & mounted a drive as follows

[root@fs02 /]# mount /dev/cciss/c1d0p3 /HP/Backups

this worked fine, however I have to mount this drive everytime i reboot the machine.

So, I have learnt that the fstab has to be changed in order to permanently mount a disk - I opend the fstab and it tells me that fstab is edited with fstab-sync. So I read the man pages for fstab-sync but could not understand how to run this fstab-sync with the Daemon that the Man pages kept telling me about.

I tried to open the fstab-sync here:

/etc/hal/device.d

this contained an executable "50-fstab-sync.hal" Which doesnt respond when I try and run/open this. So I checked its link which was linked to:

/usr/sbin/fstab-sync

Which is there but it also non-responsive when i try to run the executable!

What is this HAL daemon, & how to I know if it exists on my machine?? What am I doing wrong?

P.S - I am asking here because I cant find any relevant information in ANY thread on ANY site! please help!!
 
Old 09-22-2008, 05:58 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
I don't know anything about fstab-sync, but you can edit fstab with any text editor, and that will be fine. you can run "mount -a" to see if you got it right.
 
Old 09-22-2008, 06:38 AM   #3
Count Zero
Member
 
Registered: Feb 2008
Distribution: Debian wheezy
Posts: 130

Rep: Reputation: 15
Also remember that some distros by default doesn't allow root to open X-server applications so you're better off opening it on the command line. Nano is a nice lightweight editor that ships, I think, with a lot of distros. So, as root, try:

nano /etc/fstab

and you should be able to edit it. To quit, press CTRL-X and answer Y. That should be it.

/CZ
 
Old 09-23-2008, 12:24 AM   #4
donanap
Member
 
Registered: Sep 2008
Location: Perth, Australia
Distribution: RedHat, Solaris
Posts: 38

Original Poster
Rep: Reputation: 15
Will give it a go.

Ok, thanks count Zero, will try that this afternoon & will post results. :-)
 
Old 09-23-2008, 01:07 AM   #5
donanap
Member
 
Registered: Sep 2008
Location: Perth, Australia
Distribution: RedHat, Solaris
Posts: 38

Original Poster
Rep: Reputation: 15
Smile Worked!! Thanks!!

Hey, Thanks a lot Count Zero. Managed to edit fstab through nano.
Thanks for your idea. I was worried about taking this shortcut, but obviously doesnt make a difference!
 
Old 09-23-2008, 01:04 PM   #6
Count Zero
Member
 
Registered: Feb 2008
Distribution: Debian wheezy
Posts: 130

Rep: Reputation: 15
Quote:
Originally Posted by donanap View Post
Hey, Thanks a lot Count Zero. Managed to edit fstab through nano.
Thanks for your idea. I was worried about taking this shortcut, but obviously doesnt make a difference!
Yay! Glad it worked out for you. I wouldn't count editing fstab as a shortcut though. Getting to know how it works is really useful knowledge, especially when you start playing around with lots of partitions and distros. The way you can add and remove mounted partitions and using UUID to keep them in the right way is one way in which Linux really shows its shine.
 
  


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
How do i use fstab-sync ginda Fedora 2 02-03-2005 09:34 AM
How to use fstab-sync? ginda Fedora 0 01-25-2005 12:42 PM
Using fstab-sync ?? mickeyboa Fedora 0 12-05-2004 08:17 AM
Help me edit my fstab Slovak Slackware 3 11-26-2004 10:12 AM
edit fstab - what i ve to do ? thinkdifferent Linux - Newbie 4 12-23-2003 04:20 PM


All times are GMT -5. The time now is 10:55 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