If some reason you dont want to mount your windows drive to mount at boot time with fstab or /etc/rc.local filen then you can place your command with "alias" temporaly or you can fixed ever then place it in your /home/.bashrc file in my system i can mount my win directory only typing
win command i place alias in my /home/.bashrc file name win like
///////////////////////////////////////////////////////////
alias win='mount -t vfat /dev/hda7 /home/tariq/win'
//////////////////////////////////////////////////////////
CyberFreak_f9@yahoo.com
A Good Place to Mount your Windows Partition
-
- Havaldaar
- Posts: 116
- Joined: Mon Aug 01, 2005 12:20 am
- Location: Karachi
- Contact:
-
- Havaldaar
- Posts: 116
- Joined: Mon Aug 01, 2005 12:20 am
- Location: Karachi
- Contact:
-
- Havaldaar
- Posts: 116
- Joined: Mon Aug 01, 2005 12:20 am
- Location: Karachi
- Contact:
i make another alias for long cd /home/myname/win command
alias wcd='cd /home/myname/win'
after you add you .bashrc file and want your aliases work imidately then load
your aliases with command
source ~/.bashrc
in my system
////////////////////////////////////////////
[root@localhost ~]# wcd
then after this
[root@localhost win]# (know directory change to win
CyberFreak_f9@yahoo.com&&hotmail.com
alias wcd='cd /home/myname/win'
after you add you .bashrc file and want your aliases work imidately then load
your aliases with command
source ~/.bashrc
in my system
////////////////////////////////////////////
[root@localhost ~]# wcd
then after this
[root@localhost win]# (know directory change to win
CyberFreak_f9@yahoo.com&&hotmail.com
-
- Cadet
- Posts: 3
- Joined: Wed Dec 01, 2010 11:32 am
- Location: Lahore
- Contact:
i know this is post is old and most probably dead but i think the better approach would be to add an entry in /etc/fstab (or to edit an old one if it exists) for the windows drive but disable automount for it. Consider for example that your windows drive is /dev/sdb1 and you have added a line to fstab to mount it to /mnt/windows then whenever you want to mount the drive you can simply issue command
or
Code: Select all
mount /dev/sdb1
Code: Select all
mount /mnt/windows