Find the answer to your Linux question:
Results 1 to 9 of 9
I would like to access my Windows files system from my Debain Sarge 3.1. How to do that?...
  1. #1
    Linux Newbie exploder's Avatar
    Join Date
    Jun 2005
    Location
    127.0.0.1
    Posts
    164

    Accessing Windows File System

    I would like to access my Windows files system from my Debain Sarge 3.1. How to do that?
    Registered Linux User#394486

  2. #2
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    what type of filesystem is your windows part on, if its fat32 you are in luck all you have to do is, eg, mount -t vfat /dev/hda1 /mnt/windows

    however, if it ntfs, read about how to enable experimental ntfs support in your kernel...you will have read access, and I think there's even a way to write access; however, this is not recommended and can be very unstable...

    if you want to keep ntfs on your xp parition then it may be best to create a fat32 filesystem to share between both oses
    Operating System: GNU Emacs

  3. #3
    Linux Newbie exploder's Avatar
    Join Date
    Jun 2005
    Location
    127.0.0.1
    Posts
    164
    My windows file system is running on NTFS. Whats the procedure to access NTFS then?
    But, what i have seen is its pretty easy on SUSE .

    One more thing is I have installed Sarge with ReiserFS so my SUSE is so how to access SUSE File system as well?
    Registered Linux User#394486

  4. #4
    Linux Engineer d38dm8nw81k1ng's Avatar
    Join Date
    Mar 2005
    Location
    Newcastle
    Posts
    793
    Quote Originally Posted by exploder
    My windows file system is running on NTFS. Whats the procedure to access NTFS then?
    But, what i have seen is its pretty easy on SUSE .

    One more thing is I have installed Sarge with ReiserFS so my SUSE is so how to access SUSE File system as well?
    first do
    Code:
    fdisk -l
    that's a little L, NOT a 1.
    this will tell you where your partitions are kept. windows will probably be /dev/hda1
    i'm not sure how to mount NTFS, but SuSE should automatically mount it as /windows
    to access your SuSE partition from debian and vice-versa, just do:
    Code:
    mkdir /distroname
    mount /dev/hda# /distroname
    where # is the hda number of your distro. mkdir creates a directory, which you can then use to mount your filesystem on.
    Here's why Linux is easier than Windows:
    Package Managers! Apt-Get and Portage (among others) allow users to install programs MUCH easier than Windows can.
    Hardware Drivers. In SuSE, ALL the hardware is detected and installed automatically! How is this harder than Windows' constant disc changing and rebooting?

  5. #5
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,413
    You can do this using yast -> system -> partitioner.

    When you open this you'll get a list of all the partitions and their mount points, so just find the NTFS windows partition, click "edit", and assign it to (for example) /windows/C. (You should make the directory /windows/C exists beforehand).
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  6. #6
    Just Joined!
    Join Date
    Jan 2005
    Location
    Topeka, KS, USA
    Posts
    88
    You need to install the libntfs5 to be able to read the NTFS from Linux. I think that the libntfs-dev package might enable writing to ntfs partitions, but that package is under development, and I can't really attest to it's maturity, so make sure you back up your stuff.

    After you get those packages installed, you need to decide where you want to mount the partition. This has to be in an empty folder (/media/windows; /windows, /ntfs, /win, /mount/win), then run (as root)
    Code:
    mount -t ntfs /win /dev/hda0
    assuming you've decided to mount hda0 in /win. There might be some options you need to use to get user level accounts permission to access the windows partition.

  7. #7
    Just Joined!
    Join Date
    Mar 2005
    Location
    South Africa
    Posts
    55
    'fdisk -l' does not work on my machine (2 harddisks)
    I had to 'fdisk /dev/hda -l' or 'fdisk /dev/hdb -l' to list anything.

    To access my windows disk I (as root):

    mkdir /windows

    (called it /windows (so not to forget where))

    ADDED the following 2 lines to my '.bashrc' file :

    alias mntfs='mount -t ntfs /dev/hdb1 /windows'

    (hdb1 is my windows drive) and :

    alias umntfs='umount /windows'

    and the to mount the drive, type 'mntfs'

    and just type 'umntfs' to 'umount' it.

    Just my 2 cents

  8. #8
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,413
    Apologies. My advice was for a Suse machine cos I incorrectly read your first post and suggested you should use yast, which of course is useless for a debian user!
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  9. #9
    Just Joined!
    Join Date
    Feb 2007
    Posts
    9

    thanks

    That was really helpful. Thanks.
    And now for another Q:
    how do I make the NFTS mount accessible to normal users? I seem to be able to access it only from root console...

    OK, Got it. changed the /etc/fstab file with the lines

    /dev/hdb1 /home/mousomer/windowsD vfat defaults,umask=0 0 0
    /dev/hda1 /home/mousomer/windows ntfs rw,users,umask=022 0 0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •