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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Completely dumb towards linux, anyways
I finally got linux installed with Windows XP, set it up using a 7 gig partition with ext3 file system, 2 gig for swap space, and anothe 2 gigs for fat32 to share between the two OS's. Tried to mount the ntfs fs but wouldn't let me tried to update the kernel but didn't work either, anyways just hoping I have it setup ok. Back to the point, downloaded an mp3 player called MPG123, and want to create a script shell that will run MPG123 then go to the dir where I have my mp3's at and play them. Right now I have all of my mp3's in /mnt/winxp/mp3, so what I do now is go to folder where the MPG123 program is located and type:
mpg123 -Z /mnt/winxp/mp3/*.mp3
and it will start playing the mp3's, so all I want is for that to be automated, the -Z option is just to play it random.
however a more elegant solution would be to get mpg123 in your path by creating a symbolic link. go to the /bin directory and type:
ln -s /path/to/mpg123 mpg123
this will create a symbolic link "/bin/mpg123" wich links to "/path/to/mpg123", now you can always run mpg123 without going to the directory where it's located. You may also create an alias for the -Z option, like:
alias mpg123="mpg123 -Z"
now if you type mpg123 /mnt/winxp/mp3/*.mp3, it will execute "/path/to/mpg123 -Z /mnt/winxp/mp3/*.mp3"
A quick way to find out if your kernel has ntfs support is to look at the /proc/filesystems psuedo-file.
If ntfs isn't listed, the support may be compiled as module instead of built in, and the module might not be loaded.
If this is the case try as root:
For ntfs and vfat (fat32) filesystems, I alway use the fmask and dmask options. For things like thumb drives, I make myself the owner of the drive with the uid= and gid= options. ( check the "man 8 mount" man-page for the details )
There may also be an "fstab" manpage entry.
p.s. I you include which distro you are using in your profile, it would make it easier to answer your questions. For example, an early Fedora Core would not have ntfs support in it's kernel by default. Some distro's will set up a mount point for the ntfs drive under /data, and some in /mnt/windows. In other words, it may be mounted already.
Using the partitioner gui utility for you distro may enable you to mount a drive. Doing it this way may also select better options, such as the font encoding used by the filesystem.
Thx for the help got the script working. Put up my distro of linux, when I tried to mount said ntfs not supported so thats when I tried to upgrade the kernel, came up something like this kernel is installed but not running, said to reboot and select kernel but wasn't showing anywhere, so not to sure to do about that.
You have to add the kernel to your bootloader configuration. How to do this depends on wich bootloader you use, I don't know wich redhat uses by default nowadays, but my guess is grub. I don't have any experience with grub but if you post a new thread about this subject (because this thread is called 'shell script' it won't attract boot-loader-specialists) you should get an anwser soon!