For this tip, I’m going to assume you have support for the filesystem you Windows installation is using. If you have Windows 95 or 98, you’ll be using the FAT filesystem, while Windows NT, 2000, and XP users need to have NTFS support. In order to check whether your Linux kernel supports these filesystems, open the command line and type more /proc/filesystems. If you see nodev before the filesystem name, the filesystem is not supported and you must either mount the module (modprobe vfat, for example) or recompile the kernel with proper support. Anyways, let’s get started.
First, create a new directory to house your Windows partition. Open up the command line, and type in mkdir /mnt/windows. You can use whatever directory you want, though it’s always best to keep mountable directories inside /mnt.
Now you can mount the partition from the command line by typing: mount -t vfat -o /dev/hda1 /mnt/windows, if it is a FAT-formatted one. If you’re mounting an NTFS partition, just replace vfat with NTFS. I am assuming the Windows partition is the first on your hard drive. If it is not, change /dev/hda1 accordingly.
If you’d like the partition to be mounted automatically when you boot into Linux, you can add that option in a file, /etc/fstab. Just open that file in a text editor and add the following line: /dev/hda1 /mnt/windows vfat defaults 0 0.
If you’d like to know about how many partition (both windows and Linux) and device list that are avialable on your local machine. Just supply the below command as root.
[root@sriram ~]# fdisk -l
Here I have given an example output of my local machine.
[root@sriram ~]# fdisk -l
Disk /dev/hda: 41.1 GB, 41110142976 bytes
240 heads, 63 sectors/track, 5310 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1328 10039648+ c W95 FAT32 (LBA)
/dev/hda2 1329 5310 0103920 f W95 Ext'd (LBA)
/dev/hda5 2657 3984 10039648+ b W95 FAT32
/dev/hda6 3985 5310 10024528+ b W95 FAT32
/dev/hda7 1329 1397 514048+ 83 Linux
/dev/hda8 1397 1532 1020096 82 Linux swap
/dev/hda9 1532 2656 8498353+ 83 Linux
Partition table entries are not in disk order
If you use this ‘fdisk -l’ command, it would be very useful to find out the current filesystem, device name and create the appropriate entries under /mnt directory and mount points very easily based on the above information.
About Me
Blog Archive
Followers
Subscribe via email
Labels
- .htaccess (3)
- amazing (1)
- backup (1)
- blog (1)
- browser compatibility (1)
- caching (1)
- cron (1)
- domain (1)
- dump (1)
- ecommerce (1)
- fdisk (1)
- files (1)
- firefox add-ons (1)
- free service (1)
- fun (1)
- google (2)
- google sms channels (1)
- great device (1)
- how to (3)
- jquery (1)
- kamal (1)
- linux (3)
- linux commands (1)
- lynx (1)
- magento (1)
- mirc (1)
- mirc commands (1)
- movie (1)
- mozilla (1)
- mysql (1)
- page rank (1)
- partition (1)
- pdf (1)
- protection (1)
- putty (1)
- quotes (1)
- recording (1)
- redirection (1)
- restore (1)
- robots.txt (1)
- screen capture (1)
- search (1)
- seo (2)
- short film (1)
- short stories (1)
- skype (1)
- sms (1)
- ssh (1)
- svn (1)
- team work (1)
- technology (1)
- telnet (1)
- test (1)
- timezone (1)
- tinyurl (1)
- tool (1)
- tools (5)
- twitter (1)
- url re-write (1)
- URL shorteners (1)
- youtube (3)
Subscribe to:
Post Comments (Atom)
1 comments:
Yep, Yep...
I heard about this fstab file.
Nice explanation. I will try.
Thanks in advance.
Post a Comment