LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2005, 04:15 AM   #1
yourwar
LQ Newbie
 
Registered: Dec 2004
Location: California
Distribution: Debian
Posts: 16

Rep: Reputation: 0
Accessing My Windows HDD


Hello, I have 2 HDDs in my box, one with Debian, and one with Window. I was just wondering how I could access my windows hard drive through linux to view all the media I have saved on my windows HDD? I know you can do it cus I did it when I had Mandrake, anyways thanks in advance, byebye.
 
Old 08-11-2005, 04:22 AM   #2
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 49
You first needs to find out what your hdd is named (you can use cfdisk to find that out: cfdisk hda or cfdisk hdb and so on). When you know your name (it should be something like hda1, hdb1, hda2, etc) you need to know what filesystem you are using. FAT is ok, but there is limited support for NTFS.

Now just do:
su
<password>
mount -t vfat /dev/hdxY /mnt/win

change vfat to ntfs if you have NTFS instead (you may want to check out captiva if you use NTFS). Now your content will be in /mnt/win.
 
Old 08-11-2005, 04:22 AM   #3
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 32
Easy,
you have to mount it. Some distros (like knoppix) offer the option on the desktop, appearentlz yours does not.
Mounting a partition is easy. All devices in your computer, RAM, HDD, FD, CDROM, etc. are listed in /dev. If, for example, your hdd is the master on the first IDE bus, it would be called HDA, partitions are called HDA1, HDA2 etc.. The master on the second IDE controler would be HDC. Get it?
So you have to call up a console and try this: "mount -t vfat /dev/[your windows partition] /[the directory you want it mounted at] -rw"

If you dont know which partition your windows is on, I am willing to help you find it.

Have fun
 
Old 08-11-2005, 04:26 AM   #4
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
Login as root and add the line below to file /etc/fstab

/dev/hdaX /windows/C ntfs noauto,ro,users,gid=users,umask=0002,nls=utf8 0 0
^
^
***Warning*** change hdaX to what ever you have. like hdb or sda ...

Then create a directory called /windows/C as root.

Now you can to mount the C drive as (normal user) follows:
$ mount /windows/C

If you want it to mount it always automatically: remove "noauto".

Remember you should READ ONLY windows partition (as ntfs write is still experimental)
 
Old 08-11-2005, 08:27 AM   #5
mani_iips
LQ Newbie
 
Registered: Jul 2005
Location: Indore, India
Posts: 20

Rep: Reputation: 0
You just have to mount your Windows drives, and thats not a big deal at all.
first of all you type this command on console
Code:
fdisk -l
it will give you full info about your present HDD.
i am sending you the result of that cmd in my system
Quote:
[root@localhost hardware]# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 c Win95 FAT32 (LBA)
/dev/hda2 1276 9728 67898722+ f Win95 Ext'd (LBA)
/dev/hda5 1276 2079 6458098+ b Win95 FAT32
/dev/hda6 2080 2844 6144831 b Win95 FAT32
/dev/hda7 2845 4119 10241406 b Win95 FAT32
/dev/hda8 4120 5394 10241406 b Win95 FAT32
/dev/hda9 5395 7178 14329948+ b Win95 FAT32
/dev/hda10 7179 9600 19454683+ 83 Linux
/dev/hda11 9601 9728 1028128+ 82 Linux swap



then u just have to make changes, accordingly, in you /etc/fstab file, i am sending you the copy of my file
Quote:
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda11 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/hda1 /mnt/win_c auto
/dev/hda5 /mnt/win_d auto
/dev/hda6 /mnt/win_e auto
/dev/hda7 /mnt/win_f auto
/dev/hda8 /mnt/win_g auto
/dev/hda9 /mnt/win_h auto
i am having FAT 32 as my windows file system.


Comparing the chsnges in my fstab file you can make one as per your system config.
and ya you have to make the mount directories explicitly in the /mnt directoru (if you are also mounting in that path, although you can make it anywhere.

let me know if it helped.
cheerios.
 
Old 08-11-2005, 08:49 AM   #6
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hi mani_iips....
what should be entries if i'm mounting one linux in second one...
i mean if i've 2 or more linux distributions on the same machine....then what should be the entries in the fstab of currently running linux so that i can access the other linux distributions...
regards
 
Old 08-11-2005, 10:37 AM   #7
mani_iips
LQ Newbie
 
Registered: Jul 2005
Location: Indore, India
Posts: 20

Rep: Reputation: 0
helo ruudra...
well i havent worked on other Linux distros as yet but may be if you tell me about those which you are using, filesystems that each supports and the result of "fdisk -l" in your distro, i can help you by providing the best solution accordingly.
cherrios.

Last edited by mani_iips; 08-11-2005 at 10:44 AM.
 
Old 08-11-2005, 03:23 PM   #8
yourwar
LQ Newbie
 
Registered: Dec 2004
Location: California
Distribution: Debian
Posts: 16

Original Poster
Rep: Reputation: 0
Okay, that helped, I mounted it but now I can only access it through console as root. How can I make it so I can access it through KDE without being root?
 
Old 08-11-2005, 04:10 PM   #9
yourwar
LQ Newbie
 
Registered: Dec 2004
Location: California
Distribution: Debian
Posts: 16

Original Poster
Rep: Reputation: 0
*Bump*
 
Old 08-12-2005, 12:46 AM   #10
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hi mani_iips,
here is the output of "fdisk -l"

Code:
[root@localhost root]# fdisk -l

Disk /dev/hdd: 10.2 GB, 10242892800 bytes
255 heads, 63 sectors/track, 1245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdd1             1      1245  10000431    c  Win95 FAT32 (LBA)

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       637   5116671    b  Win95 FAT32
/dev/hda2           638      4864  33953377+   f  Win95 Ext'd (LBA)
/dev/hda5           638      1274   5116671    7  HPFS/NTFS
/dev/hda6          1275      3696  19454683+   b  Win95 FAT32
/dev/hda7          3697      4257   4506201   83  Linux
/dev/hda8          4258      4282    200781   82  Linux swap
/dev/hda9          4283      4864   4674883+  83  Linux
[root@localhost root]#
now plz. tell me that what entries should i make in my /etc/fstab to mount the other linux partition................i'm currently in /dev/hda9.......and would like to mount the /dev/hda7 permanently...
regards
 
Old 08-15-2005, 05:16 AM   #11
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 32
hi again yourwar,
What you have to keep in mind is that KDE is only an application running on a superstructur. For a novice user the accessable foundation of this superstructur is the console. If you have mounted a filesystem in a root konsole, processes on the superstructur (x-servers, KDE, GNOME, KONQUEROR, etc.) are bound to that change.

In short, if you mounted a fs, you can access it from any application. Including KDE... Try to access it with conqueror.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
finding out what is accessing the hdd dave_blob Linux - General 5 10-25-2010 03:27 AM
Accessing ReiserFS from Windows XP the_gripmaster SUSE / openSUSE 9 06-24-2008 05:44 PM
problem accessing mounted hdd linuxmandrake Linux - Newbie 1 11-20-2004 04:37 PM
Accessing files from WindowsXP NTFS external firewire hdd... shmegegge Linux - Newbie 19 10-05-2004 06:05 AM
Accessing second HDD bison42 Linux - Newbie 2 08-22-2001 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:58 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration