A Good Place to Mount your Windows Partition

General discussion about Linux, Linux distribution, using Linux etc.
Post Reply
CyberFreak
Havaldaar
Posts: 116
Joined: Mon Aug 01, 2005 12:20 am
Location: Karachi
Contact:

A Good Place to Mount your Windows Partition

Post 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'
//////////////////////////////////////////////////////////





8) CyberFreak_f9@yahoo.com
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

shouldn't the name of that alias be "lose", and not "win"?

just sayin'.
CyberFreak
Havaldaar
Posts: 116
Joined: Mon Aug 01, 2005 12:20 am
Location: Karachi
Contact:

Post 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?
CyberFreak
Havaldaar
Posts: 116
Joined: Mon Aug 01, 2005 12:20 am
Location: Karachi
Contact:

Post 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



8) CyberFreak_f9@yahoo.com&&hotmail.com
adnanwaheed
Cadet
Posts: 3
Joined: Wed Dec 01, 2010 11:32 am
Location: Lahore
Contact:

Post 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
or

Code: Select all

mount /mnt/windows
Post Reply