Linux - GeneralThis 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
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.
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"
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:
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.
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
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.