LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-25-2004, 11:25 AM   #1
sduffy89
LQ Newbie
 
Registered: Aug 2004
Location: PA
Distribution: Debian
Posts: 25

Rep: Reputation: 15
Accessing Windows Partition on Diff. Hard-Drive


I want to be able to access the files on my windows partition (on my other hard drive) from debian. I could do it through Mandrake but its different w/ Debian. Thanks for the help!
 
Old 08-25-2004, 12:39 PM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
If windows is the master hard drive (first IDE drive), it will be called "hda", if it is the slave hard drive, it will be called "hdb". If you have multiple partitions of the windows drive, you will need to know the partition number, so you can mount it. If the windows drive only has one partition, it will be partition number 1. You can read the partition table with the command:
Code:
fdisk /dev/hda
as root, then enter "p" to print the partition table.

Once you know what partition you want access to, you have to mount it. Create a directory for it:
Code:
mkdir /mnt/windows
then mount it (assuming master drive partition 1 or hda1):
Code:
mount -t vfat /dev/hda1 /mnt/windows
where "vfat" is used for fat partitions and "ntfs" would be used for ntfs partitions. You should then be able to read the contents as root in the directory /mnt/windows.

If you want users to be able to access the drive, you need to modify the file /etc/fstab. Do a search here for that. Here is the line I use in fstab:
Quote:
/dev/hda5 /mnt/hda5 vfat auto,users,owner,exec,umask=000 0 0
The "auto" means it is automatically mounted at boot up in the directory /mnt/hda5.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Windows hard Drive nikko05 Linux - Hardware 10 12-20-2005 10:58 AM
Accessing Windows files on a seperate hard drive ickselglic Linux - Hardware 1 01-22-2005 06:13 PM
Accessing Linux hard-drive from windows sduffy89 Linux - General 3 08-30-2004 12:05 PM
Accessing windows hard drive eastsidecrew Linux - Newbie 4 04-20-2004 12:47 PM
Mandrake 9.0: Accessing partition on windows drive(FAT) face_master Linux - Distributions 3 01-18-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration