PDA

View Full Version : i cannot mount my windows partitions


akashbasu5
2007-07-10, 04:04 AM CDT
my window partitions are in the NTFS file system and i am using fedora 7.....i don't know the commands to mount them plz help me out

glennzo
2007-07-10, 04:22 AM CDT
my window partitions are in the NTFS file system and i am using fedora 7.....i don't know the commands to mount them plz help me out
Open a terminal and log in as root with root password. Type fdisk -l /dev/sda and you'll see something like this:
[root@toshiba ~]# fdisk -l /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 192 1536000 27 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 192 16586 131684352 7 HPFS/NTFS
/dev/sda3 16587 19457 23061307+ 5 Extended
/dev/sda5 16587 17891 10482381 83 Linux
/dev/sda6 17892 19196 10482381 83 Linux
/dev/sda7 19197 19457 2096451 82 Linux swap / Solaris
This is from my computer. Want to mount /dev/sda2? Make a folder to mount to by typing mkdir /media/windows. Mount the partition by typing mount -t ntfs-3g /dev/sda2 /media/windows. Browse to /media/windows and you should see all your windows files. To make the partition mount at boot time add a line to the /etc/fstab file. Here's mine:
[root@toshiba ~]# cat /etc/fstab
LABEL=/1 / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda7 swap swap defaults 0 0
/dev/sda5 /media/fedora6 ext3 defaults 0 0
/dev/sda2 /media/vista ntfs-3g defaults 0 0
The blue line is the one to add. Now the partition will mount automatically at boot.