LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux is great! now what? (https://www.linuxquestions.org/questions/linux-newbie-8/linux-is-great-now-what-8726/)

tomaz 11-14-2001 05:31 PM

Linux is great! now what?
 
I just installed linux Redhat 7.2 in another partition in my HD. I now have Win XP and Redhat. I really like linux, its stable, its got lots of cool stuff, its free, its got a photoshop clone (hehe). The problem is that it is kind of hard to use. And my question is:
"How can I access files from windows while using linux?" :confused: well thats all, thanks! :)

tomaz 11-14-2001 06:16 PM

anybody home?!
 
:smash:

isajera 11-14-2001 06:54 PM

you should have a directory in your / system - /windows - which mounts the windows partition on your linux virtual fs. if it's not there, then you need to edit your /etc/fstab file - i'm not sure off the top of my head what filesystem xp uses tho...

anyway, you'll need something like this in your fstab file, if it's not already in there:

/dev/hda1 /windows vfat auto,owner,uid=500,umask 022 0 0

if it gives you a "not defined" error, then you need to create the directory by hand. just type

mkdir /windows

as root, and that should do it. i'm guessing on the vfat format tho :).

tomaz 11-14-2001 08:24 PM

.....right
 
Sorry about all this but i am a true newbie. Linux has not been running in my machine for more than one day. Anyways, the thing you said did not work. Is there any other way to do this that is not editing <u>/dev/fstab</u>???

tomaz 11-14-2001 08:27 PM

Does it help to say that I have GNOME? (the latest version in redhat 7.2)

taz.devil 11-14-2001 08:42 PM

If you passed over it during install or wasn't an option, that pretty much is it, but very easy as long as the addition to the fstab is correct. Linux see's your hardrive as hda(usually a) and the partitions within hda are hda1, hda2 etc...First in the root '/' directory do a mkdir "whatever you want to call it to see windows" - the quotes. That will be your "mount point". Change directory to /etc by doing cd /etc then edit the fstab file. Before editing, type cfdisk, you will see all partitions. Make note of the name of the FAT/Windows hda number and quit, fon't write or edit anything. Now type jed fstab (jed is the easiest editor for me). You will see everything that is being mounted at boottime. If you want to add the windows partition, make a new line and start it with /dev/hd(whatever number you noted from cfdisk) hit tab and type the mount point which is /windows or whatever you called the new directory. Tab over again and type vfat (that's the file system type, tab again and type the mount options. Before you add these, go to a new terminal by pressing alt+2, login and type man mount and read up per your situation. Hit alt+1 to get back to your first terminal and add the options. Save the file, reboot and you should be good. I know it sounds a little complicated but it's really not, just go for it. Good luck, let me know if I can be clearer on any points. :)

isajera 11-14-2001 11:18 PM

it's /etc/fstab, not /dev/fstab. big difference.

WindozBytes 11-15-2001 10:54 AM

If cfdisk doesn't work,

http://www.linuxquestions.org/questi...&threadid=8612

you can get the same information from fdisk; as root, type:

fdisk -l

tomaz 11-15-2001 02:24 PM

ok, I already knew how to open files and all and how to access files but you didnt explain the hardest part! I have in /etc/fstab an extra line in the bottom:
/dev/hda1 /windows vfat
... what comes after that?
I read man mount, but I did not understand...
thanks for you help.

zhenwu 11-15-2001 03:57 PM

I believe what you are looking for is:

mount /windows

which will allow you to view your /windows partition

Then, if you wish to unmount it:

umount /windows

tomaz 11-15-2001 05:02 PM

nope! I need to do the fstab thing first before mounting windows..

isajera 11-15-2001 05:26 PM

check man fstab - the mount man page won't give you too much info. the line i gave above should be for the automounting at boot for the /windows partition.

drthornt 11-15-2001 08:20 PM

ok let's start simple.
 
let's not worry about /ets/fstab for now, let just see if you can even mount the windows partition.
Try this:
mount /dev/hda1 /windows
what does that give you?
does it spit out an error?
(if no then go take a looksee "cd /windows")
mount might complain about not knowing the fstype.. try:
"mount /dev/hda1 /windows -t vfat"
so now you have mounted the fs manually, how about getting it to come up everytime you boot?
try changing the line in the fstab:
"/dev/hda1 /windows vfat"
to:
"/dev/hda1 /windows vfat defaults 1 2"
next step see if mount can read the entry in the fstab, try:
"mount /windows"
cool? if not then go back and check your (and my) work.
if yes, then reboot and see if the fs was mounted, try:
"df"


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