win partitions from linux

General discussion about Linux, Linux distribution, using Linux etc.

win partitions from linux

Postby Stylish1 » Fri Oct 10, 2003 1:01 am

can 1 access windows partitons(read, write, delete almost do anything) from linux if yes ,then plz tell how??
Stylish1
Cadet
 
Posts: 14
Joined: Wed Oct 08, 2003 8:14 pm

Postby outstream » Fri Oct 10, 2003 2:51 am

AoA

yes u can access ur windows partitions from Linux. But the command depends on the Filesystem that u r having for ur windows partitions. NTFS or FAT

First of all go to /mnt/ and there create a new directory/folder with name 'windrive', then

1. if u have NTFS file system on the partition that u want to access, try giving this command

mount -t ntfs /dev/hda(#) /mnt/windrive

or the more explanatory form of which is:

mount(space)-t(space)ntfs(space)/dev/hda(ur partition number)(space)/mnt/windrive

Note please do not type (space), jit hit the space bar :)

Note for example if u want to access C: drive, its number will be 1. in that case , command will be

mount -t ntfs /dev/hda1 /mnt/windrive


2. if u want to access the FAT partition, the command will be

mount -t vfat /dev/hda(#) /mnt/windrive

the hda(#) in this command will be same as explained above, i.e

mount -t vfat /dev/hda1 /mnt/windrive


Note if above command dont work and give error in hda(#), then try using

mount -t vfat /dev/hdc(#) /mnt/windrive

i used hdc instead of hda


after giving the command..go to /mnt/windrive and all data in ur that partition will be visible to u and u`ll have the full read/write access to that windows partition if it is FAT type, if its NTFS i think u`ll only have read access to it, i am not sure about it anyways

Good Day
Testing?What's that? If it compiles, its good, if it boots up it is perfect.
----------------------------------------------------
Imran
Registered Linux User # 334322
outstream
Naib Subedar
 
Posts: 322
Joined: Wed Sep 24, 2003 10:04 pm
Location: islamabad

Postby Faraz.Fazil » Fri Oct 10, 2003 9:43 pm

You got the answer.

You use a format like mount -t vfat /dev/hdaNO /mountpoint for fat/fat32 drives and u use the mount -t ntfs so on for ntfs partitions.

YOu can obtain the HDA number (HDANO) of the partition using the fdisk -l command

Also for ntfs mounting, u may need to recompile your kernel and include ntfs support..as some distros donot include ntfs support by default...but most distros do indeed include fat/fat32 stable read/write mount support by default.

ALso ntfs support is only available as read only in most kernels even if u recompiled it...write support was experimental.

Full Read/Write stable support is now included in 2.6.0-test5 and onwards.

This question relating to mounting fat/fat32/ntfs partitions has already been answered/explained in detail in many posts before.

Why dont people search the forum at linuxpakistan.net/forum2x/search.php before asking questions?

http://www.linuxpakistan.net/forum2x/vi ... ight=mount
http://www.linuxpakistan.net/forum2x/vi ... ight=mount
http://www.linuxpakistan.net/forum2x/vi ... ight=mount
http://www.linuxpakistan.net/forum2x/vi ... ight=mount

Thread is Now Closed.
Linux for Life!
Faraz.Fazil
Major General
 
Posts: 1024
Joined: Thu Jul 04, 2002 5:31 pm
WLM: faraz7476@hotmail.com
Location: Karachi/Pakistan/Earth/Universe


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 2 guests