Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
if tutorial like that alredy exsists on this forum please delete this one!!!! important:use /dev/sda instead of /dev/hda if you have sata hdd first you need some info about windows ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549

    HOWTO:mounting windows partitions with linux and editing fstab file


    if tutorial like that alredy exsists on this forum please delete this one!!!!

    important:use /dev/sda instead of /dev/hda if you have sata hdd
    first you need some info about windows partition so type
    Code:
    su -
    Code:
    fdisk -l
    in your terminal
    (its fdisk -l with small L)
    you will get output like that (maybe shorter)
    Disk /dev/hda: 164.6 GB, 164696555520 bytes
    255 heads, 63 sectors/track, 20023 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 1 1275 10241406 83 Linux
    /dev/hda2 1276 14924 109635592+ 5 Extended
    /dev/hda3 * 14925 17218 18426555 c W95 FAT32 (LBA)
    /dev/hda4 17219 20024 22532055 a5 FreeBSD
    Partition 4 does not end on cylinder boundary.
    /dev/hda5 1276 1538 2112516 82 Linux swap / Solaris
    /dev/hda6 1539 8550 56323858+ 83 Linux
    /dev/hda7 8551 13904 43005973+ 83 Linux

    Disk /dev/hdb: 30.7 GB, 30750031872 bytes
    255 heads, 63 sectors/track, 3738 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdb1 * 1 3582 28772383+ 83 Linux
    /dev/hdb2 3583 3738 1253070 f W95 Ext'd (LBA)
    /dev/hdb5 3583 3738 1253038+ 82 Linux swap / Solaris
    so check for line like if you have FAT partition
    /dev/hda3 * 14925 17218 18426555 c W95 FAT32 (LBA)
    like you see i have FAT32 partition on /dev/hda3
    for NTFS check for line like that
    /dev/hda3 * 14925 17218 18426555 c HTFS/NTFS

  2. #2
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    now you should make a directory where windows will be mounted:
    you can make it almost everywhere you want.Ill make it in mnt dir:

    Code:
    mkdir /mnt/win_c
    if you want to mount two partitions than make two directories
    Code:
    mkdir /mnt/win_c
    mkdir /mnt/win_d
    now mounting.......
    for FAT partition (my case)
    mount -t vfat /dev/hda3 /mnt/win_c
    for NTFS partition
    mount -t ntfs /dev/hda3 /mnt/win_c
    congratulations windows is mounted.Now you have to edit fstab file

  3. #3
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549

    editing fstab

    type
    Code:
    su
    Code:
    gedit /etc/fstab
    or
    Code:
    vi /etc/fstab
    or
    Code:
    emacs /etc/fstab
    or use your favorite text editor
    you will get text like that
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /dev/hdb1 / ext3 defaults,errors=remount-ro 0 1
    /dev/hdb5 none swap sw 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0

  4. #4
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    add this line for FAT32 partition
    /dev/hda3 /mnt/win_c vfat rw.defaults,umask=0000 0 0
    press enter to make empty last line
    save and reboot
    open /mnt/win_c directory to start with sharing or wiewing files

    add this for NTFS partition
    /dev/hda3 /mnt/win_c ntfs ro,defaults,umask=0222 0 0
    press enter to make empty last line
    save and reboot
    this will mount windows partition for reading only
    open /mnt/win_c directory to start with wiewing windows files

    you will have to install modules like 3g ntfs for writing into ntfs partitions

  5. #5
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549

    writing into NTFS partition

    download g3 ntfs here
    http://mlf.linux.rulez.org/mlf/ezaz/...-download.html
    put file in your home directory
    open a terminal and type
    tar -xvf filename.tar.gz
    (type name of tgz file instead of filename)
    now type
    cd ~/name of file where is extracted(in your home folder)
    install packag with typing
    Code:
    su
    ./configure
    make
    make install

  6. #6
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    now make a directory where NTFS partition will be mounted
    su
    mkdir /mnt/3g
    now mount partition using 3g ntfs
    ntfs-3g /dev/hda1 /mnt/g3
    editing fstab is the last step:
    su
    gedit /etc/fstab
    add this line
    /dev/hda1 /mnt/g3 ntfs-3g silent,umask=0,no_def_opts,allow_other,locale=hu_H U.utf8 0 0
    save and reboot

    ENJOY!!!!

  7. #7
    Linux Newbie X.Cyclop's Avatar
    Join Date
    May 2006
    Location
    Israel
    Posts
    143
    Just change this to your language:
    /dev/hda1 /mnt/g3 ntfs-3g silent,umask=0,no_def_opts,allow_other,locale=hu_H U.utf8 0 0

    locale=language_COUNTRY
    Examples:
    en_US [English US]
    es_MX [Espa&#241;ol MX]
    ...

    Thanks!
    "Don't think about the work, think about the benefit"

    Leonardo Juszkiewicz

  8. #8
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    Quote Originally Posted by X.Cyclop
    Just change this to your language:
    /dev/hda1 /mnt/g3 ntfs-3g silent,umask=0,no_def_opts,allow_other,locale=hu_H U.utf8 0 0



    Examples:
    en_US [English US]
    es_MX [Espa&#241;ol MX]
    ...

    Thanks!
    hey thanks....actualy i didnt think about that....

  9. #9
    Just Joined!
    Join Date
    Aug 2006
    Posts
    4
    mkdir: cannot create directory `/win': Permission denied?
    what is wrong?????????????????????

  10. #10
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    type
    sudo
    before mkdir command
    so
    sudo mkdir /yourdir
    Password: <------here enter your root password

Page 1 of 2 1 2 LastLast

Posting Permissions

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