Page 1 of 1

A Good Place to Mount your Windows Partition

Posted: Fri Jul 06, 2007 12:38 am
by CyberFreak
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'


Posted: Fri Jul 06, 2007 9:41 am
by lambda
shouldn't the name of that alias be "lose", and not "win"?

just sayin'.

Posted: Fri Jul 06, 2007 2:08 pm
by CyberFreak
But mine is win and its very :D to be a win
you use what u like i dont mind even linux to do u?

Posted: Sun Jul 08, 2007 5:58 pm
by CyberFreak
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


Posted: Fri Dec 03, 2010 12:01 am
by adnanwaheed
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

Code: Select all

mount /dev/sdb1


Code: Select all

mount /mnt/windows