LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-04-2001, 05:27 PM   #1
TheMentat
LQ Newbie
 
Registered: Aug 2001
Posts: 7

Rep: Reputation: 0
accessing other drives and remote access


2 questions here
first, i have two drives, a small one that i just made for linux and my main one which still has Win98 and all my stuff
how can i access my main one?
i went to /dev/hda1 or something like that dont remember and it treats the drive as an unknown file type

second, Linux is quite obviously built for having a bunch of users and remote access. Is there any way to treat linux as an ftp? just give a friend a program and say "here your login and password is x/x check out my computer sometime"

Thanks
 
Old 08-04-2001, 07:37 PM   #2
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 186

Rep: Reputation: 33
As to the first question,

I'll take a shot.

You have to have an entry in /etc/fstab if you want your windows partition to be mounted at boot and visible in a file manager like konqueror, e.g.

Mine looks like this:

/dev/hda1 /mnt/win_c vfat user,exec,umask=0,codepage=850,iocharset=iso8859-1 0 0

See man mount and man fstab. The second item in this entry, /mnt/win_c, is the mount point of that partition. So, you have to make this in the /mnt directory:

# mkdir /mnt/win_c

Now, you should be good to go. Good luck.
 
Old 08-04-2001, 07:45 PM   #3
TheMentat
LQ Newbie
 
Registered: Aug 2001
Posts: 7

Original Poster
Rep: Reputation: 0
ok, im sorry about this, but i just got very little of what you just said
I am a total newb at this, i just got linux yesterday

if you could dumbify the above just a couple notches it would be greatly appreciated

Thanks
 
Old 08-04-2001, 08:14 PM   #4
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 186

Rep: Reputation: 33
Well, I am not an expert. What distro are you running? What I know is mostly Mandrake.

There should be documentation on your machine that is accessible by typing

$ man [name of command/program]

Do this at a terminal, console, or konsole [in kde]. The '$' sign is when you are user. If you type '$ su' and give the root password, the prompt changes to '#', which is when you are root, to be used sparingly for administration, such as when creating files and directories anywhere but your /home/'user' directory. Therefore,

# mkdir /mnt/win_c

for creating the mount point in your directory tree to access your windows partition.

Do $ man mount, $ man mkdir, $ man fstab, $ man [anything] to see if there is a manual entry for that command/executable and, if so, to learn about it.

To add the line to /etc/fstab that mounts your windows directory, you need to be root, such as

# xemacs /etc/fstab

which loads /etc/fstab into the editor xemacs, as root, where you can add the line and save to change the file, for example.

You need to do some reading to learn these things. Start with your distros website and look for help, tutorial, documentation links.

http://www.linuxnewbie.org/ is a good place to start. Also, http://www.stormloader.com/jrusso2/index.html

Good luck.
 
Old 08-04-2001, 09:29 PM   #5
TheMentat
LQ Newbie
 
Registered: Aug 2001
Posts: 7

Original Poster
Rep: Reputation: 0
im using mandrake 8.0, im also using kde.
ok, i was got to the fstab thingy and i see where i could enter in the line of code, but is this the correct code for me?
can i just paste in the

/dev/hda1 /mnt/win_c vfat user,exec,umask=0,codepage=850,iocharset=iso8859-1 0 0??

i think i can make the directory and i understand that

again, thanks
 
Old 08-04-2001, 10:13 PM   #6
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 186

Rep: Reputation: 33
You're on your own, dude :D

When you edit one of these files and add something to the end, be sure the last thing you type in the editor is a carriage return (Enter) as this creates a blank "new line" at the end of the file and things sometimes don't work if you don't.

win_c is arbitrary, it's what Mandrake put in fstab when I installed 8.0 but you have to be consistent and call it the same thing in /mnt (the way you installed must have somehow prevented Mandrake from automatically making these entries?).

I would guess you could use the same line and same /mnt/win_c directory. The one thing I see as different from 7.2 is that iocharset=iso8859-1. Oh yeah, codepage=850. I don't know why. Here's my 7.2 entry:

/dev/hda1 /mnt/win_c vfat umask=0,nosuid,user,nodev,exec 0 0

Keep in mind that these are typed as all one line. There is a space after vfat and no carriage returns within the line. Here, hda is the first hard drive and hda1 is the first partition on that drive, hda2 is the second partition, hdb is the second hard drive, hdb1 is the first partition on the second hard drive, etc. Write whatever represents your windows partition.

If fstab is not right, I believe it will not boot. In that case, you would have to do 'rescue' from the Install CD1 or boot from a floppy. At that point, you will be in a generic linux in ram and you will have to mount your installed directory tree to fix it:

# mount /dev/hdb1 /mnt/disk -t ext2 (or reiserfs)
# cd /mnt/disk
# chroot /mnt/disk (makes / the top of your mounted file system)
# less /etc (displays contents of /etc one page at a time, advanced with the space bar)

When you edit fstab, Mandrake should make a backup such as fstab~. Make sure you have this before you reboot, in case you want to go back. # less should show you it is there and you can do:

# mv fstab fstab.bak (if you want to keep the troublemaker)
# mv fstab~ fstab
# shutdown -r now

Take the boot media out, you should reboot back to where you were before but at least you have linux booting again.

As I said, I am not an expert but I believe this to be fairly accurate and maybe you can do something with it.

Good luck.

Last edited by rolf; 08-04-2001 at 10:15 PM.
 
Old 08-04-2001, 11:03 PM   #7
TheMentat
LQ Newbie
 
Registered: Aug 2001
Posts: 7

Original Poster
Rep: Reputation: 0
thanks, got it working

Thanks a lot rolf, i got it working
hope i can repay the favor one of these days when i actually get used to this system

Later
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing drives afrm Linux - Software 3 02-08-2005 11:07 PM
accessing cdrom drives Killer_VCS Linux - Newbie 5 01-12-2005 03:26 AM
how can I access remote drives? spicychicken Linux - Software 3 12-13-2004 08:07 PM
Accessing CD Drives/Floppy Drives rsearing Linux - Newbie 9 08-13-2004 09:53 PM
Accessing windows drives playmesumch00ns Linux - Newbie 5 06-14-2001 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:42 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