LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   refresh /etc/fstab (https://www.linuxquestions.org/questions/linux-newbie-8/refresh-etc-fstab-533342/)

RayGo1975 02-28-2007 01:53 PM

refresh /etc/fstab
 
I am a newbie to Linux, I worked on HP-UX systems for 7 years before I retired so i know most of the terms.

I know there is a way to do this but I just can not remember. I changed the partitions on my second harddrive so they are all primary partitions. Now in Linux I need to get this reflected in my /etc/fstab so I can mount them.

the partitions on my second HD where /dev/hdb1, /dev/hdb5 and /dev/hdb6. Now they should be /dev/hdb1, /dev/hdb2 and /dev/hdb3 but the /etc/fstab still has /dev/hdb5 and /dev/hdb6 listed.

Can I just edit the fstab and change hdb5 and hdb6 to hdb2 and hdb3?

b0uncer 02-28-2007 01:57 PM

Yes you can. Actually I'm not sure if there is a way to just "refresh" fstab; there well could be, but I've always used to alter it manually. Just become root, open a text-editor, change the device file (partition) numbers to correct ones, save and try mounting.

RayGo1975 02-28-2007 02:01 PM

Thanks I will try that.

RayGo1975 02-28-2007 02:03 PM

That worked.... Thanks again.


All times are GMT -5. The time now is 07:09 AM.