Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
To be able to help out, a couple more details will be required. Here are a few for starters:
1. Your distro is Ubuntu, right? If that is the case, ideally, if you get to the point where you could login with your username and password and it shows you a desktop, the desktop will have folders that are labelled something like hda1, hda2 hda3 and so on. Double clicking these will open the c:\, d:\ or something similar, which are of course your data on partitions that Windows sees.
If you are not able to do that, then please do give the following information:
1. Distribution and version of your Linux
2. Do you know whether your Windows files are on NTFS partitioned hard disks or FAT partitioned hard disk?
3. Anyway, please do copy and paste the contents of the file /etc/fstab in this forum.
I manage to mount one of my partitions it was had5. On this partion i keep my media files but i still wasn't abel to mount my winodws partitoin wich is had4. I do the exact same thing like with hda5 and it dosen't work.
Here is how it loks:
root@ubuntu:~ # mount -t /dev/hda4 winDrive
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] [-p passwdfd].
For many more details, say man 8 mount .
That is where your mistake lies, After -t you need to tell the kernel whether hda4 is ntfs formatted or FAT formatted.
Anyway, if you mounted your hda5 on winDrive, then of course, create another directory and mount this in the new directory, and not on the one you already mounted hda5 on. Hope I am making sense. Basically I am saying you should not mount both your partitions on the same folder.
Coming back, you managed to mount /dev/hda5 right? Copy the exact same command you used to mount that, but this time substituting 5 for 4 in the /dev/hda5 part and giving a different directory name other than winDrive.
Exactly. The point is that every drive you mount to a directory must be mounted to another directory, i.e. you can't have more than one drive mounted in one place.
For media files, I usually create a large Fat32 partition (vfat) - both Linux and Windows wil read and write Fat32; I then mount it @ /mnt/storage when I install our favorite operating system. Right now, I have blown WinXP away, but I have both Slackware 10.2 and Debian Etch on the system - and they both use /dev/hda4 which in both file systems is mounted as /mnt/storage.