Linux - NewbieThis 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
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.
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.
I have a linux box connetted t oa few other computers...and i dont have the space to store all the music they share. so i have to mount the drives they have shared in order to play em...its get annoying haing to do this after each reboot.
from what i have read i need to edit fstab in /etc
so i open that file up. but im not sure what i sould type
fstab looks like this:
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdc2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
so at everyboot up i open up a terminal and enter this:
smbmount //gtp/Music /root/.gnome-desktop/Music
Depending on your distro, for example in Slackware, there is a file called rc.local, in there i just have:
mount /mnt/point
as listed above and it works.
The rc.local file is the last script to run on a slackware boot up before login.
ok here is me restating it....
basically i have a clone of RH.
I have a folder on my desktop i have linked to a windows machine that has mp3s on it.
so i do this everytime i start up this linux box:
smbmount //windows/music /desktop/folder
password:
done
and then i can play that music.
how can i edit my /etc/fstab file so i dont need to do the above whenever i boot up. like have it to it on its own at startup?
yeah its in /etc what do i do with it?
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
mount //gtp/Music <<<<line i added
is that it?
Last edited by Dr Gutiemouth; 10-26-2004 at 03:26 PM.
I think this will work. Look in man mount and man fstab and man smbmount for more details and options. Mount it someplace else however, like /windows/music or /mnt/windows/music. And please don't log in as root. Su to root from inside a terminal, or even better, for one liners use sudo.
Also consider using uid=, gid=, and umask= options.
This may not be the best way to go anyway, because the userid and password are in your fstab file.
ok i did what both of you said and it didnt work. t his is how i did it
logged in as root i opend the file /etc/fstab with gedit
added in each of the lines at different times...with spaces under them
then saved it..
rebooted, logged in as root. opened the .gnomre desktop foler to see if it worked, and the music wasnt there
im streaming the files from //gtp/Music and when i use smbmount i have them goto /root/.gnome-desktop/Music
am i supposed to ad them in fstab with a terminal or something? i just edited the file with the first program that can edit it.
again...i then just saved it and rebooted.
im atotal noob. i know very very little about what im doing.
this stuff:
nd please don't log in as root. Su to root from inside a terminal, or even better, for one liners use sudo.
Also consider using uid=, gid=, and umask= options.
im sorry but this is jibberish to me! i dont know what that is...
i got it to work but i dont remember how...and there was two icons on my desktop when i finally got it to work...oh well...i since nuked the drive and put gentoo on it...now if only i can get it to work
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.