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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
05-17-2004, 09:52 AM
|
#1
|
LQ Newbie
Registered: Apr 2004
Distribution: SlackWare 9.1
Posts: 23
Rep:
|
Extreme Newb, need help with fstab (on page 2)
I just recently installed Slackware my first linux installation. I have linux partitioned On one disk and Windows Xp my slave drive.
The thing is i don't know how to view my windows files from inside linux. i.e. if i wanted to open an mp3 that i have saved in windows' "My Documents"
Sorry if this is a really easy, as i have said i am completely new to this and i have tried everything i can think of.
Could it be that i cant view windows files from linux, they are on NTFS and i know you cant write to NTFS.
Last edited by TheFirefly; 05-19-2004 at 08:46 AM.
|
|
|
05-17-2004, 09:59 AM
|
#2
|
LQ Newbie
Registered: May 2004
Posts: 5
Rep:
|
Man I'm right there with you--I just installed Linspire (never even heard of Slackware--is it good?) and am learning the ropes. I probably shouldn't even reply but I do know the answer to your question. There should be a directory called /disks/ somewhere (/home/system/ maybe?) On my system a folder called /winxp/ shows up, and from there I can access everything. Otherwise, look for /hda/ which is basically your c: drive (possibly in /mnt/). Anyway, I'm sure someone else could give you a much better, definitive answer...
|
|
|
05-17-2004, 10:09 AM
|
#3
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
i am unfamiuliar with linspire and slack.
but this is the general way of doing it.
to make sure i miss nothing, i will asume you are a complete noob... (so dont be insulted if i talk to you like an idiot, lol)
Okay....
in linux everything is a file...
/dev/hda is the primary master hard disk
/dev/hda1 is the first partiton on a primary master
/dev/hda2 is the second partiton on the primary master
/dev/hdb is the primary slave
/dev/hdc is the secondry master
/dev/hdd is the secondry slave.
you get the idea.
if you dont know what disk and partiton the NTFS disk is on,
then as root (type 'su -')
run the command fdisk
the output should tell you which disk and partiton has what on it (file system / size)
here is how you mount the disk...
make a folder to mount the disk in (if one does not already exist)
mkdir /mnt/WindowsDisk
not try to mount the disk
mount -t ntfs /dev/(the disk and partiton you found with fdisk) /mnt/WindowsDisk
you dont need the -t ntfs part as mount can auto detect it, but like i said, im not sure if your distro's support ntfs.
if the command completes without error, your windows XP files will be in /mnt/WindowsDisk
you may get the error, ntfs is not supported by your kernel. or unknown fs type.
if you do get this error, you can download the ntfs driver driver and install it. ill not bother explaining how to do that untill you know wether or not you need it.
hope this helps.
|
|
|
05-17-2004, 10:10 AM
|
#4
|
LQ Newbie
Registered: Apr 2004
Distribution: SlackWare 9.1
Posts: 23
Original Poster
Rep:
|
Hmm, well i cant find it still, take into account i have two hard drives a windows one and a linux one, If that makes a difference.
Slackware is good from what ive seen, took me a while to install and i had to try twice, but thats mainly due to my lack of knowledge of the hardware inside my own pc.
But now its up and running its great, i havnt tried it with the net yet though, i have to get a new connection or a network set up for that.
Anybody else have an idea of where i coud find everything?
EDIT: Posted at same time, about to try it out
Last edited by TheFirefly; 05-17-2004 at 10:12 AM.
|
|
|
05-17-2004, 10:13 AM
|
#5
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
ohh, forgot to say....
when you know your system is capable of mounting NTFS
you need to add the disk to your /etc/fstab file. this makes it possible to mount the disk without root access, and shorter command lines.
add the line
/dev/(windowsNTFS disk) /mnt/WindowsDisk auto noauto,user,umask=0 0 0
make sure the fstab file ends with a newline (return)
then you will be able to mount the dist with the command 'mount /mnt/WindowsDisk'
or with KDE, right click the desktop, click new -> hard disk. and set device to tthe windows disk, you can then access the disk by double clicking the icon.
|
|
|
05-17-2004, 10:14 AM
|
#6
|
Member
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361
Rep:
|
Hi!
I've never installed linux having XP, and I don't know what slack will do in that case, but do you remember if the installation program asked you something about winXP? (I installed slack9.1 with win98, and it asked me about it, so I chose the dir under which win had to be)
Anyway, in order to read in NTFS, you need the proper kernel parameter; type "lsmod" to see if you have the NTFS module loaded, you also may check "cat /usr/linux/.config|grep "NTFS" to see if you can load the module.
Regards
|
|
|
05-17-2004, 10:21 AM
|
#7
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
the ntfs kernel module is loaded automatically when mount needs it.
and if the distro does not have the ntfs kernel module, you can install it from its web site. but with any luck, the distro will support it.
if not, we will deal with it when we get to it.
|
|
|
05-17-2004, 10:27 AM
|
#8
|
LQ Newbie
Registered: Apr 2004
Distribution: SlackWare 9.1
Posts: 23
Original Poster
Rep:
|
EDIT: Need Help
Last edited by TheFirefly; 05-17-2004 at 11:10 AM.
|
|
|
05-17-2004, 10:44 AM
|
#9
|
LQ Newbie
Registered: Apr 2004
Distribution: SlackWare 9.1
Posts: 23
Original Poster
Rep:
|
Ok, it didnt work, it did the first time but the thing you said to change permissions hasnt worked, it still requires root
|
|
|
05-17-2004, 10:54 AM
|
#10
|
LQ Newbie
Registered: Apr 2004
Distribution: SlackWare 9.1
Posts: 23
Original Poster
Rep:
|
Help please
Error: mount only root can do that
|
|
|
05-17-2004, 11:27 AM
|
#11
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
so you have sucesfully mounted the windows files as root ?
atleast we know your distro supports ntfs.
what was the command line you typed when mounting the drive ?
try 'mount /dev/(windowshdpartiton)'
|
|
|
05-17-2004, 11:33 AM
|
#12
|
LQ Newbie
Registered: Apr 2004
Distribution: SlackWare 9.1
Posts: 23
Original Poster
Rep:
|
Edit, basically i followed your guide step by step
Last edited by TheFirefly; 05-17-2004 at 11:41 AM.
|
|
|
05-17-2004, 02:25 PM
|
#13
|
Member
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361
Rep:
|
Did you do this?...
Quote:
ohh, forgot to say....
when you know your system is capable of mounting NTFS
you need to add the disk to your /etc/fstab file. this makes it possible to mount the disk without root access, and shorter command lines.
add the line
/dev/(windowsNTFS disk) /mnt/WindowsDisk auto noauto,user,umask=0 0 0
make sure the fstab file ends with a newline (return)
|
Tell us, what happens when you write in a console "mount /mnt/WindowsDisk"?
Regards
|
|
|
05-17-2004, 05:53 PM
|
#14
|
LQ Newbie
Registered: Apr 2004
Distribution: SlackWare 9.1
Posts: 23
Original Poster
Rep:
|
I did that and then afterwords i still need to be root
|
|
|
05-17-2004, 07:29 PM
|
#15
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
hmm, please post the conttents of your /etc/fstab file.
this shouldnt help, but just incase it does...
(as root)
chmod 666 /dev/(windowsDisk_and_Partiton)
chmod 666 /mnt/WindowsDisk/
also, lets try leaving as little as possible to be auto detected.
change the line to
Quote:
/dev/hda1 /mnt/hda1 ntfs noauto,user,umask=0 0 0
|
of cource cahnaging /dev/hda1 to whatever you need, and /mnt/hda1 to /mnt/WindowsDisk
hows that ?
|
|
|
All times are GMT -5. The time now is 09:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|