954,228 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Create scripts like bash

Hi everyone,

Every time I start my laptop, I must point to Places menu and mount the drive D: where contains my documents. D: and Linux partition are different. I want to mount automatically when the computer starts. How does that make such that?

And the other one is:

I must type a long command to change current directory, e.g:
$ cd /media/Programs/Study/Linux....
I want to make a script and place it in the user's folder. To go to the directory quickly, I need to run the script.

I always appreciate any solutions.

Thanks and best regards,

rafaele-elvis
Newbie Poster
6 posts since Aug 2009
Reputation Points: 5
Solved Threads: 0
 

You could do it with a script but edit /etc/fstab is the the way to go.
First cp /etc/fstab /etc/orig-fstab Do it as root/sudo
example fstab
You would normally mount it like
mount -t ntfs-3g /dev/sdb(1) /mnt/where-ever/

here2serve
Newbie Poster
20 posts since Nov 2009
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: