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 ...
- 09-18-2006 #1
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 typeCode:su -
in your terminalCode:fdisk -l
(its fdisk -l with small L)
you will get output like that (maybe shorter)
so check for line like if you have FAT partitionDisk /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
like you see i have FAT32 partition on /dev/hda3/dev/hda3 * 14925 17218 18426555 c W95 FAT32 (LBA)
for NTFS check for line like that
/dev/hda3 * 14925 17218 18426555 c HTFS/NTFS
- 09-18-2006 #2
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:
if you want to mount two partitions than make two directoriesCode:mkdir /mnt/win_c
now mounting.......Code:mkdir /mnt/win_c mkdir /mnt/win_d
for FAT partition (my case)
for NTFS partitionmount -t vfat /dev/hda3 /mnt/win_c
congratulations windows is mounted.Now you have to edit fstab filemount -t ntfs /dev/hda3 /mnt/win_c
- 09-18-2006 #3
editing fstab
type
Code:su
orCode:gedit /etc/fstab
orCode:vi /etc/fstab
or use your favorite text editorCode:emacs /etc/fstab
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
- 09-18-2006 #4
add this line for FAT32 partition
press enter to make empty last line/dev/hda3 /mnt/win_c vfat rw.defaults,umask=0000 0 0
save and reboot
open /mnt/win_c directory to start with sharing or wiewing files
add this for NTFS partition
press enter to make empty last line/dev/hda3 /mnt/win_c ntfs ro,defaults,umask=0222 0 0
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
- 09-18-2006 #5
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
(type name of tgz file instead of filename)tar -xvf filename.tar.gz
now type
install packag with typingcd ~/name of file where is extracted(in your home folder)
Code:su ./configure make make install
- 09-18-2006 #6
now make a directory where NTFS partition will be mounted
now mount partition using 3g ntfssu
mkdir /mnt/3g
editing fstab is the last step:ntfs-3g /dev/hda1 /mnt/g3
add this linesu
gedit /etc/fstab
save and reboot/dev/hda1 /mnt/g3 ntfs-3g silent,umask=0,no_def_opts,allow_other,locale=hu_H U.utf8 0 0
ENJOY!!!!
- 09-18-2006 #7
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:locale=language_COUNTRY
en_US [English US]
es_MX [Español MX]
...
Thanks!
"Don't think about the work, think about the benefit"
Leonardo Juszkiewicz
- 09-24-2006 #8hey thanks....actualy i didnt think about that....
Originally Posted by X.Cyclop
- 09-24-2006 #9Just Joined!
- Join Date
- Aug 2006
- Posts
- 4
mkdir: cannot create directory `/win': Permission denied?
what is wrong?????????????????????
- 09-24-2006 #10
type
before mkdir commandsudo
so
sudo mkdir /yourdir
Password: <------here enter your root password


Reply With Quote
