FedoraThis forum is for the discussion of the Fedora Project.
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.
Hey, I'm still new to Linux and I was wondering. I use an alias to mount my windows partition quickly but I was wondering if there is a way to make the alias permanent. I guess what I'm looking for is a file or something that I can edit to make it set the alias whenever I boot up.
You need to edit (as root) the file /etc/fstab to do this, adding a line to tell the system which partition to mount, where to mount it and what filesystem to use, among other things. Doing `man fstab` should help.
Oh, because I've got that and for some reason I need to mount it each time I start up. Maybe I messed something up in there. Thanks, I thought I still had to mount things.
EDIT: But, is there a way to make permanent aliases anyways? I have a few other things I do quite often and would like an easier way of doing them.
What do you mean with "Aliases"? Shell command aliases? You usually put these into $HOME/.bashrc or $HOME/.bash_profile depending on when you need them.
Yeah, sorry, shell command aliases. When I boot up, I just need it to set the aliases. So lets say I login as skyefyre and load up my terminal, I just have to type my alias.
An alias goes in ~/.bashrc, in the format
alias whatever='actual_command', for example
Code:
alias ls='ls -lh --color'
If you would prefer your windows partition mounted automatically on boot (thereby saving the bother of ever having to mount it manually, either using `mount` or an aliased command) then you need to edit the file /etc/fstab as I suggested above.
Have a look at the file and its syntax by doing `less /etc/fstab` and read the results of `man fstab`. Between them you should be able to work out the details of the line you need to add.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.