LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-05-2009, 12:56 PM   #1
hmsdefender
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
How do I permanently mount local device?


I'm been handed the responsibility of administering my own development systems. I know very little about managing a Linux system. At present, there is an unused filesystem called /export/kits mounted on a device called /dev/sba3, but I don't see an entry in /etc/fstab for it. It mounts every time the system boots. I want to unmount /export/kits and create a root level filesystem called /apps on that device, permanently, so that /apps, not /export/kits, is associated with /dev/sda3 at boot time. Any help is appreciated.
 
Old 11-05-2009, 02:46 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by hmsdefender View Post
I'm been handed the responsibility of administering my own development systems. I know very little about managing a Linux system. At present, there is an unused filesystem called /export/kits mounted on a device called /dev/sba3, but I don't see an entry in /etc/fstab for it. It mounts every time the system boots. I want to unmount /export/kits and create a root level filesystem called /apps on that device, permanently, so that /apps, not /export/kits, is associated with /dev/sda3 at boot time. Any help is appreciated.
Well, the file you need to look at is /etc/fstab, as you've noted above. If /export/kits isn't in there, that may be just a directory, or perhaps /exports is mounted.

Regardless, if you open the fstab file in an editor, you should be able to look at the existing lines, and copy one, making the necessary changes. Step one would be to create the /apps directory. Step two would be to associate /dev/sda3 with /apps. A line like this:
Code:
/dev/sda3 /apps                ext3       acl,user_xattr        1 2
would be what you need. Since you don't say anything about your version/distro of Linux, can't really advise on GUI tools you might be able to use. Also, be SURE to make a backup of the /etc/fstab file before you edit it. And, be aware that it's picky....don't use spaces instead of tabs, and be VERY SURE you don't mess with the other lines in there, unless you know what you're doing.

Since you got handed the admin responsibilities, that implies that you've got other admins there. One of them can probably give you a hand, or spend five minutes with you.
 
Old 11-05-2009, 03:15 PM   #3
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: PC-BSD / FreeBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 438

Rep: Reputation: 57
Quote:
Originally Posted by TB0ne View Post
And, be aware that it's picky....don't use spaces instead of tabs, and be VERY SURE you don't mess with the other lines in there, unless you know what you're doing.

Since you got handed the admin responsibilities, that implies that you've got other admins there. One of them can probably give you a hand, or spend five minutes with you.
Actually, I've never used tabs (just formatting preference on small screens) and never had a problem - do you actually have a system that has this issue? I'm curious where it pops up.
 
Old 11-05-2009, 04:22 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by MBybee View Post
Actually, I've never used tabs (just formatting preference on small screens) and never had a problem - do you actually have a system that has this issue? I'm curious where it pops up.
Yep, had several. RedHat, SuSE, and Solaris....fstab is picky, in my experience.
 
Old 11-05-2009, 05:03 PM   #5
archlinux_jessica
Member
 
Registered: Aug 2009
Location: PA USA
Distribution: Arch Linux
Posts: 78

Rep: Reputation: 19
Thanks TB0ne. I always used tabs on fstab, so I never realized such a issue existed. I will keep that in mind if anyone experiences some oddities with fstab.

-Jessica-
 
Old 11-05-2009, 08:02 PM   #6
wfh
Member
 
Registered: Sep 2009
Location: Northern California
Distribution: Ubuntu Debian CentOS RHEL Suse
Posts: 164

Rep: Reputation: 44
Quote:
Originally Posted by hmsdefender View Post
...there is an unused filesystem called /export/kits mounted on a device called /dev/sba3, but I don't see an entry in /etc/fstab for it. It mounts every time the system boots.
IMO, that's pretty wierd. File systems don't just mount themselves, so there must be some process at work here...cron job, perhaps?

Quote:
I want to unmount /export/kits and create a root level filesystem called /apps on that device, permanently, so that /apps, not /export/kits, is associated with /dev/sda3 at boot time. Any help is appreciated.
What happens when you unmount this filesystem? Does it grinch at being unmounted?

Can you simply mount it by hand to see what happens?
 
Old 11-05-2009, 08:56 PM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
maybe symlink (ln -s /export/kits /apps) would be the lazy way of dealing with it.

assuming redhat: maybe some genius decided it was better to mount it via /etc/rc.d rather than in fstab.
maybe doing this will find the culprit:
Code:
find /etc/rc.d -exec grep -l kits '{}' \;
quick-and-dirty solution:
else, perhaps putting a few lines in /etc/rc.d/rc.local will get you what you want (always backup any file before editing it).
Code:
umount -f /dev/sda3
mount /dev/sda3 /apps
i would put a comment in /etc/fstab so that the poor bastard that inherits it next knows what the hell is going on.

Last edited by schneidz; 11-05-2009 at 08:57 PM.
 
Old 11-06-2009, 11:50 AM   #8
hmsdefender
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I found an entry in a file called blkid.tab that associates /exports/kits with a label /exports/kits1. Unfortunately I don't know the significance, if any, of this.

PS - There is one system administrator available to me, but that person doesn't seem to know how to go about accomplishing what I want in this case (or in just about any other matter I've had so far). No help there I'm afraid.

PPS - The system in question is running RedHat Linux 4.4.
 
Old 11-06-2009, 01:44 PM   #9
wfh
Member
 
Registered: Sep 2009
Location: Northern California
Distribution: Ubuntu Debian CentOS RHEL Suse
Posts: 164

Rep: Reputation: 44
Quote:
Originally Posted by hmsdefender View Post
I found an entry in a file called blkid.tab
*WHERE* did you find this file?

Was this in a home directory in someone's account? Was it in another location?

What was in the file? Please post the file.
 
  


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
Bluetooth device became permanently down Karimo Slackware 1 11-17-2008 09:07 PM
How to create md device permanently josinjosek Linux - Server 2 07-30-2008 02:15 PM
Q: How do I permanently mount a SATA RAID device? csantrim Linux - Hardware 1 09-09-2007 02:38 AM
Mount Windows permanently netjack Red Hat 5 09-27-2003 10:22 AM
How to set variable permanently in rc.local(RH7.3)? beep_beep Linux - General 7 09-25-2002 01:35 PM


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