Subscribe:
    Subscribe Twitter Facebook

    Tuesday, November 24, 2009

    Automatically mount your Linux partition in Windows



    Linux drive image
    You can automatically mount your Linux partition in Windows and have read/write functionality with a freeware application called Ext2Fsd. I will take you through the process of mounting your Linux partition using Windows XP.
    After you install Ext2Fsd you need to mount the Linux partition. Mount the Linux partition by opening Command Prompt and typing the following:
    mount 0 1 L:

    Note: the “0″ above is a zero.
    If you get a response like the following, the mount worked and you will be able to access your Linux partition in My Computer.
    Mount Linux image
    I will explain the above commands. The mount command is pretty obvious, and mounts your partition. The zero references your hard drive. If you are like most users and only use one hard drive, then you will want to leave the zero. If you use multiple hard drives then you will need to change that number appropriately.




    The 1 following the zero references the specific partition on your hard drive that Linux resides on. If you are like most users, your Linux partition is the first partition on your hard drive (so you can use GRUB by default) and you will not need to change this number. If Linux is your second or third partition, then you will need to change the number appropriately.
    Lastly, the “L:” is just a notation to give your hard drive a letter in My Computer. I like to use L because it “stands” for Linux. You can give your drive whatever letter you like, however, do not choose C because it will freeze your Windows partition (however, no permanent damage will occur).
    Linux bat image


    In order to automatically mount your partition when you log into Windows you will need to create a batch file. Open a file in notepad and type the following command (you can download my batch file if you prefer):
    mount 0 1 L:
    Save the file with the name linuxpartition.bat. Exit Notepad and right-click linuxpartition.bat and create a shortcut. Drag the shortcut into your Startup folder and your Linux partition will be automatically mounted when you start Windows.
    Startup image



    even I have tried it and the easiest is the fs-driver.
    works great. just install it and no need to type anything at all at the command line


    0 comments:

    Post a Comment

    Bidvertiser