Create scripts like bash

Reply

Join Date: Aug 2009
Posts: 4
Reputation: rafaele-elvis has a little shameless behaviour in the past 
Solved Threads: 0
rafaele-elvis rafaele-elvis is offline Offline
Newbie Poster

Create scripts like bash

 
0
  #1
Oct 28th, 2009
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,
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 10
Reputation: here2serve is an unknown quantity at this point 
Solved Threads: 0
here2serve here2serve is offline Offline
Newbie Poster
 
0
  #2
26 Days Ago
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/
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the Getting Started and Choosing a Distro Forum


Views: 914 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Getting Started and Choosing a Distro
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC