LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Want to see Windows files? (https://www.linuxquestions.org/questions/linux-software-2/want-to-see-windows-files-177895/)

pashiewashie 05-04-2004 05:23 PM

Want to see Windows files?
 
i have Fedora Core 1 and i want to know if im able to see my Windows Xp file when im using Fedora.

mikshaw 05-04-2004 05:27 PM

Yes.
Check out the man pages for mount and fstab

grcunningham 05-04-2004 05:47 PM

man pages arent always easy to understand
create a directory, on my system its /mnt/cdrive
mount your windows drive
mount -t vfat /dev/hda1 /mnt/cdrive
easy

pashiewashie 05-04-2004 06:23 PM

please explain whered you
create the directory

orange400 05-04-2004 09:04 PM

type this to create your directory like he reccomended:

cd /mnt
mkdir cdrive

cdrive can also be changed to whatever you want your drive to be called. I perfer windows as the name, but that's a personal preference ;)

pashiewashie 05-06-2004 06:36 AM

okay it mounted now how does all this work ?

sweet*amber 05-06-2004 07:35 AM

login as root
open a konsole
type mkdir /mnt/windows
open fstab (i think its in the /etc)
type this just below the page /dev/hda#(mount the hd you want if its hda or hdb and the number i.e. hda1 or hdb3 and so on
again, type /dev/hda# /mnt/windows vfat user 0 0
then in the konsole type mount /dev/hda# /mnt/windows

after the mounting ceremony, you can now access your files (like mp3s, videos...) in /mnt/windows folder, you can see an icon of a hard drive. :)

pashiewashie 05-09-2004 04:53 AM

as in Konsole you mean Terminal becoz when i use a terminal is says: bash: mkdir/mnt/windows: No such file or directory

by the way im using Fedora core 1

martina-cz 05-09-2004 07:36 AM

Quote:

when i use a terminal is says: bash: mkdir/mnt/windows: No such file or directory
Type this:
mkdir /mnt/windows

There must be free space between "mkdir" and "/mnt/windows

jspenguin 05-09-2004 01:50 PM

Since you are using XP, you are probably using NTFS.
If
mount -t vfat /dev/hda1 /mnt/windows
does not work, try:
mount -t ntfs /dev/hda1 /mnt/windows
Note that you have NTFS, you will probably not be able to change anything on the drive, but you will be able to read it.

Borje 05-09-2004 05:55 PM

To clearify the lat post. If you have your windows on an NTFS patition you might not want to write to it and to enable read-only when mount add option -ro

Code:

mount -t ntfs -o ro /dev/hda1 /mnt/windows
To mount to so all users can access it and so it'll get mounted from boot you need to change your /etc/fstab. My looks like this reagaring to the windows partition I mount:

Code:

/dev/hde6      /mnt/win        ntfs    ro,gid=users,umask=0000 0      0
It's hde6 on my set since it's a SATA disk and I have a number of partitions on it. But it's probably hda1 for you. hda is your IDE primary master, hdb primary slave, hdc secondary master and hdd secondary slave. hda1 is the first partition on your primary master...

edit: just saw that you did get it to mount and wondered what to do then. If you got it mounted with "-t vfat" then you should put vfat where I wrote ntfs and "-o ro" is not needed, niether is "ro" as an option in /etc/fstab...

pashiewashie 05-10-2004 06:09 AM

i read the other examples above and firstly i have 2 probs:

1. when i type in [root@localhost root]# mount -t vfat/dev/hda2 /mnt/windows i get:
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options].
For many more details, say man 8 mount .

What do i do. Also when i go to /etc and find Fstab i dont have a folder and when i cd to it i type ./fstab and get "permission denied"

By the way i made the directory okay. i dunno what to do now.

mikshaw 05-10-2004 07:36 AM

"mount -t vfat/dev/hda2 /mnt/windows"
It looks like you need a space after the fs type --> vfat<space>/dev

"Also when i go to /etc and find Fstab i dont have a folder and when i cd to it i type ./fstab and get "permission denied""
./fstab looks like an attempt to execute the file, which is not what you need. Try opening it up in a text editor (as root).

BlandoCal 05-10-2004 10:32 AM

I am using fedora core 1 as well, and one problem you may run into is when you go to mount the ntfs (windows hard drive) you may get this error:

#mount -t ntfs /dev/hda1 /mnt/temp/
mount: fs type ntfs not supported by kernel (<--error)

Fedora Core 1 doesn't come w/ NTFS support compiled in automatically, there is a way to fix this (confusing, I'm sure). Supposely Fedora Core 2 (being released a week from today) will come w/ this already included, but I"m not sure about that.

Or someone here might know how to recompile your kernel w/ NTFS support.

I'm not for sure if you'll have this problem, but that's the problem I get when trying to mount my NTFS windowsXP drive.


All times are GMT -5. The time now is 08:07 AM.