Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Distribution: Red Hat 9.0 - Suse 8.0 - Slackware 7.0 - Fedora Core 2 test 3
Posts: 133
Rep:
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.
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.
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:
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...
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.
"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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.