LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I edit fstab-sync, will not open/run! RHLinux Enterprise (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-edit-fstab-sync-will-not-open-run-rhlinux-enterprise-671484/)

donanap 09-21-2008 11:04 PM

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!! :confused:

whansard 09-22-2008 05:58 AM

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.

Count Zero 09-22-2008 06:38 AM

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

donanap 09-23-2008 12:24 AM

Will give it a go.
 
Ok, thanks count Zero, will try that this afternoon & will post results. :-)

donanap 09-23-2008 01:07 AM

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!

Count Zero 09-23-2008 01:04 PM

Quote:

Originally Posted by donanap (Post 3288921)
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.


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