LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-31-2006, 12:23 PM   #1
grautu
Member
 
Registered: Jul 2005
Posts: 142

Rep: Reputation: 15
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!
 
Old 07-31-2006, 12:25 PM   #2
kaz2100
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: Reputation: 108Reputation: 108
??
mount
??
 
Old 07-31-2006, 12:32 PM   #3
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
I think you are looking for
Code:
mount -a
man mount says:
Quote:
OPTIONS:
....
-a Mount all filesystems (of the given types) mentioned in fstab.
....
For those already mounted, nothing happens
 
Old 07-31-2006, 03:55 PM   #4
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
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
 
Old 07-31-2006, 04:08 PM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
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.
 
Old 08-01-2006, 02:34 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
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.
 
Old 08-01-2006, 05:45 PM   #7
alisonken1
LQ Newbie
 
Registered: Jun 2003
Location: Rancho Cucamonga, CA
Distribution: Slackware
Posts: 22

Rep: Reputation: 9
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.
 
Old 08-01-2006, 06:44 PM   #8
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 344

Rep: Reputation: 59
Smile mount -t yourfilesystem /dev/yourdevice /mnt/yourmountpoint

mount -t yourfilesystem /dev/yourdevice /mnt/yourmountpoint

exempli gratia

mount -t vfat /dev/hdb7 /mnt/disc7
 
Old 08-01-2006, 06:49 PM   #9
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 344

Rep: Reputation: 59
Smile 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.
 
Old 08-02-2006, 12:31 AM   #10
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
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.
 
  


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
entry into /etc/fstab wetnose23 Slackware 2 01-07-2006 05:30 PM
/etc/fstab entry ryedunn Linux - Newbie 1 01-17-2005 02:45 AM
FSTAB update without rebooting mijohnst Linux - General 2 12-20-2004 11:54 AM
entry in fstab file Tinku Linux - General 6 10-02-2004 01:06 AM
fstab entry albean Linux - Newbie 1 12-04-2002 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:27 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
Open Source Consulting | Domain Registration