LinuxQuestions.org
Review your favorite Linux distribution.
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 02-28-2007, 01:53 PM   #1
RayGo1975
LQ Newbie
 
Registered: Feb 2007
Distribution: Kubuntu edgy
Posts: 5

Rep: Reputation: 0
Cool 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?
 
Old 02-28-2007, 01:57 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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.
 
Old 02-28-2007, 02:01 PM   #3
RayGo1975
LQ Newbie
 
Registered: Feb 2007
Distribution: Kubuntu edgy
Posts: 5

Original Poster
Rep: Reputation: 0
Smile

Thanks I will try that.
 
Old 02-28-2007, 02:03 PM   #4
RayGo1975
LQ Newbie
 
Registered: Feb 2007
Distribution: Kubuntu edgy
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up

That worked.... Thanks again.
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM
refresh toma Linux - General 17 08-08-2001 10:15 AM


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