Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-31-2006, 12:23 PM
|
#1
|
Member
Registered: Jul 2005
Posts: 142
Rep:
|
To load a new entry in /etc/fstab without rebooting
Hi!
I've edited /etc/fstab by introducing a new line and want that line to be loaded just now, without rebooting. As far as I remember there is a shell command in this respect but I can not remember it at all. Could anybody please help me? Thanks!
|
|
|
07-31-2006, 12:25 PM
|
#2
|
Senior Member
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,847
Rep:
|
??
mount
??
|
|
|
07-31-2006, 12:32 PM
|
#3
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
I think you are looking for
man mount says:
Quote:
OPTIONS:
....
-a Mount all filesystems (of the given types) mentioned in fstab.
....
|
For those already mounted, nothing happens
|
|
|
07-31-2006, 03:55 PM
|
#4
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Rep:
|
You can add noauto to the options for your line in the fstab and it will not load at boot. If you want to mount after boot, just type 'mount /mnt/directory' and it will mount to your directory.
...drkstr
|
|
|
07-31-2006, 04:08 PM
|
#5
|
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
|
Just a quick note--remember that when you create a new /etc/fstab entry, you also need to create the mount point's directory if it doesn't already exist.
|
|
|
08-01-2006, 02:34 AM
|
#6
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
It depends on which program you are using. While running mount will indeed re-read the fstab, it's purpose is to create the mtab file. If you are using some other program that uses the info, it's possible that it might not be available without doing something else.
|
|
|
08-01-2006, 05:45 PM
|
#7
|
LQ Newbie
Registered: Jun 2003
Location: Rancho Cucamonga, CA
Distribution: Slackware
Posts: 22
Rep:
|
gnashley -
My understanding is that /etc/mtab is just a list of already mounted partitions (similar to what /proc is to the kernel).
mount is just the command to mount the partition, but it also happens to update the mtab file to show what's already mounted.
|
|
|
08-01-2006, 06:44 PM
|
#8
|
Member
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 344
Rep:
|
mount -t yourfilesystem /dev/yourdevice /mnt/yourmountpoint
mount -t yourfilesystem /dev/yourdevice /mnt/yourmountpoint
exempli gratia
mount -t vfat /dev/hdb7 /mnt/disc7
|
|
|
08-01-2006, 06:49 PM
|
#9
|
Member
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 344
Rep:
|
by the way
Hi there
By the way, if you are recreating an existing mount point (for example if you want to change for example /mnt/disc6 with /mnt/angel for a same device let's say /dev/hda6); then you need to unmount it first, then check mtab to see your device is not mounted, then modify fstab, then mount it again. It should work.
Greetings.
|
|
|
08-02-2006, 12:31 AM
|
#10
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
My point is you want the fstab to be loaded for the benefit of which program? Some programs which need some info will read the current fstab, some will read the mtab, some may read /proc/partitions and some may read the bootsector directly to get their info.
mtab is *created* and updated by the mount command.
|
|
|
All times are GMT -5. The time now is 02:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|