Shell Script Boot NTFS Partitions on Startup


in earlier post i told u how to mount ntfs filesystem in linux

but, u may have many partitions and dont want to open terminal each time u need to access particular drive.

Well i wrote a shell script for u then.

just modify it & use it

#!/bin/bash
cd /mnt
mkdir window;
mkdir mydrive;
mkdir entertain;
mkdir softwares;
mkdir wallpaper;
mkdir games;
mount -t ntfs-3g /dev/sda1 /mnt/window;
mount -t ntfs-3g /dev/sda5 /mnt/mydrive;
mount -t ntfs-3g /dev/sda6 /mnt/entertain;
mount -t ntfs-3g /dev/sda7 /mnt/games;
mount -t ntfs-3g /dev/sda8 /mnt/software;
mount -t ntfs-3g /dev/sda9 /mnt/wallpaper;

copy this to empty file.

create or remove folders. to do this

just open terminal type

fdisk -l

now modify my script as per ur ntfs partitions mounted in linux.

now its time to schedule ur this script at boot up

if u r using redhat linux then u might have kde task scheduler installed

i have used this scheduler  to scudule bootntfs script at each bootup

Advertisements

3 comments

  1. I must test with you here. Which is not one thing I normally do! I enjoy studying a submit that will make people think. Also, thanks for allowing me to comment! 559433

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s