Mounting Internal HD
Trying to mount my internal hard drive that has all the data and is my long-time Windows drive. Debian is on the other drive.
This other drive will not mount with a simple mount command with the complaint that there is nothing about it in the /etc/fstab file. So, I try to add to this file the last line shown: # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/hda1 / ext3 errors=remount-ro 0 1 /dev/hda5 none swap sw 0 0 /dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 /dev/sda / ext3 defaults 0 0 Two questions: 1) Should this work? 2) Why can't I seem to save it? I think I am "root" when I try to save it. If I go to the terminal screen now and type who, it gives me both my username and root. Much obliged for any suggestions, Thor |
Quote:
Quote:
1) you are trying to mount the drive on "/", which means "root filesystem". You cannot do that, since you already have a root filesystem mounted. 2) Unless the entire drive is one large partition (read: partitionless) then you will need to specify what partition to mount, such as /dev/sda2 or /dev/sda5 for example. Quote:
Also, a couple tips: -- Generally it is a good idea to let us know what Linux OS you are using when asking a question - in case it affects the exact commands, or locations of certain files, or use of `sudo` or not. Then folks don't need to ask what OS the problem is happening on. EDIT I see it is Debian - sorry. -- Please use code tags when posting snippets from files, or console output. Tags will retain the text formatting, making it much easier to read what you've posted. Code tags: http://www.phpbb.com/community/faq.php?mode=bbcode#f2r1 Any further questions, do feel free to elaborate! Kind regards. |
The last line
Code:
/dev/sda / ext3 defaults 0 0 Can you post the output of fdisk -l as root so we can make sure you're trying to mount the correct partition? |
GrapefruiTgirl covered most of what I would have said.
But in addition, I wonder if you are correct about sda being your Windows drive. It is certainly possible sda is your Windows drive and hda is your Linux drive. But it is a less common mix. You should post the output from the following command as root: Code:
/sbin/fdisk -l |
Quote:
Code:
Disk /dev/sda: 80.0 GB, 80025280000 bytes |
Thanks for the great detailed replies, GrapefruiTgirl and pljvaldez,
Here's the update: I tried Code:
mount -t nfts /dev/sda1 /home Code:
Couldn't display "home/myname". Access was denied. |
Two issues: 1) the file system type is ntfs, not nfts, and 2)you have to create a separate mount point. /home is already used for your personal files. You have to think of the linux filesystem as a tree. / is called root, the base of the filesystem. Then you have some standard branches like /home, /bin, /sbin, /mnt, etc. When mounting a separate drive (an external USB drive, a non system internal drive, etc.) the typical convention is to create a new folder under the /mnt directory and use that.
So for example go to the /mnt by using the cd (change directory) command. Then make a new folder (mkdir) called windows. Then use the mount command to assign /dev/sda1 to the directory /mnt/windows. |
you have to make sure that your linux system should be able to read NTFS file system. As the old version of RHEL (If u r using)version don't have this abitity default. If you have FAT filesystem then no need of additional RPM,Just make a new directory wherever you want and mount the partions.
For permanent mountion you have to make an entry in fstab file. Please correct me if i am wrong. |
Quote:
Quote:
Code:
debian:/home/myname# cd /mnt |
Quote:
Quote:
|
One computer two hard drives - set up to read windows drive
This is to summarize what it took to get this to work (but one open issue - see bottom):
1. Mounted the hard drive: Code:
mount -t ntfs-3g /dev/sda1 /mnt/win 2. edit the fstab file in /etc folder to include: Code:
/dev/sda1 /mnt/win ntfs-3g rwx, user 0 0 3. If you don't have ntfs-3g, you need to get the package. I did this on my Debian installation, I used the Synaptic Package Manager to find and install the package. (This SPM is found on GNOME under the System drop-down menu. Open Issue: There is something wrong with the fstab: I get the message: [code]Can't find /mnt/win in etc/fstab or /etc/mtab. Therefore, it doesn't mount the hard drive. |
All times are GMT -5. The time now is 11:20 PM. |