Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 15-03-2005, 08:16 PM   #1 (permalink)
Apprentice
 
Join Date: Jan 2005
Posts: 70
Default shell scripts


hello everyone, i recently installed PCQlinux..........but the thing that i dont like is to mount the ntfs filesystem each n every time(to listen to songs)......... i want to know how can i make a shell script which automatically runs when i start my linux (i.e. mount -t ntfs /dev/hda5 /root/abc command automatically runs).
i mean i want to put this script in startup.......any ideas???
Ashootosh is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 15-03-2005, 08:19 PM   #2 (permalink)
Wise Old Owl
 
Join Date: Aug 2004
Location: New Delhi
Posts: 1,150
Default

There is no need to make a shell script for this just make an entry in the /etc/fstab and it will be done automatically. For details check the forum this has been explained in great detail 'n' times.
__________________
**** happens
pradeep_chauhan is offline  
Old 16-03-2005, 12:35 AM   #3 (permalink)
In The Zone
 
hafees's Avatar
 
Join Date: Feb 2004
Location: Kerala
Posts: 405
Default

(u should be root)
edit ur fstab using
vi /etc/fstab
then add the line (press i)
mount -t ntfs /dev/hda /root/abc
now save the file(wq)
U r done!
__________________
Quitters Never Win & Winners Never Quit!
hafees is offline  
Old 16-03-2005, 08:55 PM   #4 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default

Okay, so this was fstab , and it got solved. If you have anything other problem that needs to be executed everytime you reboot, then place it in a file, chmod it to +x and put it inside /etc/rcS.d

like this..
Code:
# echo "mount /mnt/whatever" > /etc/rcS.d/S90mnt
# chmod a+x /etc/rcS.d/S90mnt
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Old 18-03-2005, 10:29 AM   #5 (permalink)
Right Off the Assembly Line
 
Join Date: Mar 2005
Location: before you
Posts: 10
Default

Quote:
hello everyone, i recently installed PCQlinux..........but the thing that i dont like is to mount the ntfs filesystem each n every time(to listen to songs)......... i want to know how can i make a shell script which automatically runs when i start my linux (i.e. mount -t ntfs /dev/hda5 /root/abc command automatically runs).
i mean i want to put this script in startup.......any ideas???
follow the steps
Code:
 # vi  /etc/fstab
add the following line
Code:
 /dev/hda5    ntfs    /root/abc    users,owner,ro  0  0
save ur work and issue the command
[code[
# mount -a
[/code]
or u can restart ur system , next time ur partition will mount automatically
__________________
live life linux size
grub is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sarath
- by Charley
- by Charan
- by Tenida

Advertisement




All times are GMT +5.5. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2