Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I access my Windows HD using Linux? 1

Status
Not open for further replies.

dmachado

Programmer
Mar 4, 2002
14
0
0
US
My windows PC just crashed, (luckily after I just installed Linux 8.0 on another system). Is it possible to connect my windows PC hard drive and access the files using my Linux box? If so, where should I look to get started?

Thanks,

Don
 
Install the drive and mount it with vfat.

mount -t vfat /dev/hdc1 /mnt/windows would work assuming you're using fat32.

See manual for mount for more options.

Good luck...
 
Yeah sure. Depending on which file system you are using on the Windows drive, you may have to download a kernel module.
If you are using NTFS, go to and download the appropriate file for your system.

//Daniel
 
Yes. It depends on which Windows OS is installed.

If using FAT16 or FAT32 on Windows partition then it is very easy. If using NTFS more difficult.

1: Create a mount point for the drive. Like /mnt/windows or /mnt/dos.

2: Need to know how the drive is partitioned and what linux sees the drive as.
-- Is the drive SCSI or IDE
-- If IDE, is the drive primary or secondary, then master or slave.
-- Primary Master HDA
-- Primary Slave HDB
-- Secindary Master HDC
-- Secondary Slave HDD

To see how partitioned type fdisk /dev/drive_type like /dev/hda

Then type p to print the partition table. Look to see if there are multiple partitions. Just type q to exit with out saving anything.

3: Now that you know what to mount and have create where to mount, now you mount the drive.

mount /dev/drive_type /mnt/mount_point

If partition is fat then should mount without any problem, if it is NTFS, then you will need to recompile the kernel and add NTFS support.

You can also add the -t option to mount to specify the type of partition.
mount -t vfat or ntfs /dev/drive /mnt/mount_point

Hope this gets you what you need.

BTW Win2K, WinXP, and WinNT all use NTFS by default.
Win9X, WinME, and DOS use fat32 or fat16.
 
Thanks for the help everyone -- I really appreciate it!
 
Or even shove those mount details into your /etc/fstab file and let it all happen automagically when you boot up.

ß

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top