| Forum |
|
|||||||
| 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. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Apprentice
Join Date: Jan 2005
Posts: 70
|
i mean i want to put this script in startup.......any ideas??? |
|
|
| Advertisements. Register and be a member of the community to get rid of them. | |
|
Advertisement
|
|
|
|
#2 (permalink) |
|
Wise Old Owl
Join Date: Aug 2004
Location: New Delhi
Posts: 1,150
|
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 |
|
|
|
|
#3 (permalink) |
|
In The Zone
Join Date: Feb 2004
Location: Kerala
Posts: 405
|
(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! |
|
|
|
|
#4 (permalink) |
|
FooBar Guy
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
|
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://www.MovieAB.com - A tiny movie mashup! |
|
|
|
|
#5 (permalink) | |
|
Right Off the Assembly Line
Join Date: Mar 2005
Location: before you
Posts: 10
|
Quote:
Code:
# vi /etc/fstab Code:
/dev/hda5 ntfs /root/abc users,owner,ro 0 0 [code[ # mount -a [/code] or u can restart ur system , next time ur partition will mount automatically
__________________
live life linux size |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|