LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 10-10-2008, 10:42 PM   #1
ELECTRONICSFREAK
LQ Newbie
 
Registered: Jul 2008
Posts: 27

Rep: Reputation: 15
Mounting issue


Ok, I read tutorials and managed to get networking setup between my windows machine and the linux server. However, everytime I restart the computer, it appears the 2 hard drives become unmounted. I am running 3 hard drives, a 40GB that has the os on it, and 2 500GB drives for storage. Both seem to be unmounted everytime I restart. Therefore I have to mount them before I can access them again through network. How do I permately mount them?
 
Old 10-10-2008, 10:55 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

What distribution?
 
Old 10-10-2008, 11:00 PM   #3
ELECTRONICSFREAK
LQ Newbie
 
Registered: Jul 2008
Posts: 27

Original Poster
Rep: Reputation: 15
Woops, sorry about that. I am running Ubuntu server edition.
 
Old 10-11-2008, 05:09 AM   #4
cyprinidae
Member
 
Registered: Oct 2008
Distribution: Fedora, CentOS, Crunchbang
Posts: 46

Rep: Reputation: 16
Have you added these drives when the system was already installed? How do the entries for each one of them look like in your /etc/fstab?
 
Old 10-11-2008, 07:44 AM   #5
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
Linux looks in a file called /etc/fstab to determine what drives should be mounted at startup and how they should be mounted.

One of the very best tutorials and explanations of the operation and setup of /etc/fstab was written in the Ubuntu Forums at:

http://ubuntuforums.org/showthread.php?t=283131

also see:
https://help.ubuntu.com/community/Fstab

Have a look at it and get back to us if you still have questions.

Generally, you will want to add a couple of lines to your /etc/fstab such as:

Code:
/dev/sdb1       /mnt/disk1name     ext3    defaults        0       0
/dev/sdc1       /mnt/disk2name     auto    defaults        0       0
Have a look at the forum post tutorial for an explanation of these lines since they explain it better than I probably can here.

After adding the lines you need to execute a mount -a command or reboot.

Last edited by AuroraCA; 10-11-2008 at 07:48 AM.
 
Old 10-12-2008, 10:55 PM   #6
ELECTRONICSFREAK
LQ Newbie
 
Registered: Jul 2008
Posts: 27

Original Poster
Rep: Reputation: 15
I have been reading those sites and I guess im just too new to linux right now. I am very confused lol. Have been trying to figure this stuff out but it is not making much sense. I did find another site that seems to be making some sense, however, it is not completely working.

http://www.psychocats.net/ubuntu/mountlinux

I have got everything to work till the part of sudo mount -a. That is where the problem arrises. I did change one part, my drive location is /dev/sdb1, so I put that on the fstab file instead of the /dev/hda5.

I have a photo attached showing the problem. This is probably something simple, but right now to me , this is complicated lol.

http://i100.photobucket.com/albums/m...untproblem.jpg
 
Old 10-12-2008, 11:46 PM   #7
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
Type the following commands and then post the output. This should help with debugging your issue.

Code:
sudo fdisk -l
Code:
cat /etc/fstab
Code:
ls -ld /storage
 
Old 10-13-2008, 12:05 AM   #8
ELECTRONICSFREAK
LQ Newbie
 
Registered: Jul 2008
Posts: 27

Original Poster
Rep: Reputation: 15
Sorry for having to do this the picture way, but something messed up on the network and I think its my cable. Have not made another one yet, so for now , I am taking pictures. Here they are on what you requested me to do.

http://i100.photobucket.com/albums/m...K/problem2.jpg

http://i100.photobucket.com/albums/m...K/problem1.jpg
 
Old 10-13-2008, 12:46 AM   #9
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
Thanks. Actually the fdisk command should be the letter 'l' (ell), not the number '1' (one).
 
Old 10-13-2008, 12:56 AM   #10
ELECTRONICSFREAK
LQ Newbie
 
Registered: Jul 2008
Posts: 27

Original Poster
Rep: Reputation: 15
ah ok, here you go

http://i100.photobucket.com/albums/m...K/problem3.jpg
 
Old 10-13-2008, 08:01 AM   #11
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
OK.

Your two 500 gig hard drives are recognized by the system as

Code:
/dev/sdb1 ext3 Type 83 (Linux)
/dev/sdc1 ext3 Type 83 (Linux)
You need to add a mount point for each disk. You have already established a mount directory of /storage but you will need a mount point for each disk. For example /storage/disk1 or /storage/disk2, /storage/d1 or /storage/d2 or /storage/mirror or /storage/backup. It is up to you to choose a name you wish to use which is easy to remember and/or type.

Make the mount points as follows:

Code:
mkdir /storage/disk1 (or whatever name you choose for disk 1)
mkdir /storage/disk2 (or whatever name you choose for disk 2
Then add the following lines to you /etc/fstab with an editor such as nano, vi, etc. Caution: Make a copy of your original /etc/fstab file first! (cp /etc/fstab /etc/fstab.orig)

Add these lines to /etc/fstab:
Code:
# mount /dev/sdb1 as /storage/disk1
/dev/sdb1 /storage/disk1 ext3 defaults 0 0

# mount /dev/sdc1 as /storage/disk2
/dev/sdc1 /storage/disk2 ext3 default 0 0
NOTE: If you are not certain as to the type of disk format you can use the work "auto" instead of "ext3" in the above lines.

Save the file and run to mount your new disks without rebooting your computer (hereafter your computer will automatically recognize these disks upon startup)
Code:
mount -a
Then type the following to see your mounted devices and locations:
Code:
mount
and you should see your mounted devices and their system names and information.

HINT: You can see what space is being used on each disk with the following command:
Code:
df -h
 
Old 10-13-2008, 01:46 PM   #12
ELECTRONICSFREAK
LQ Newbie
 
Registered: Jul 2008
Posts: 27

Original Poster
Rep: Reputation: 15
Ok , I followed what you said and they appear to be mounted now. However when I type mount, I see an error on one of the lines. I took a photo. Not sure if it means anything or not. Here is the photo

http://i100.photobucket.com/albums/m.../donemaybe.jpg
 
Old 10-13-2008, 07:45 PM   #13
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
You have one of your 500GB drives mounted (/dev/sdb1) on /storage/disk1. You can do the same thing for the second 500GB drive (/dev/sdc1).

I don't see an error in the output of your "mount" command.
 
Old 10-13-2008, 08:24 PM   #14
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
I don't see any errors either.

If you are referring to the line:

Code:
/dev/sda1 on / type ext3 (rw,relatime,errors=remount -ro)
This means that if the device is found to have errors mount it as read only. This will prevent data loss.

You are up and running but your /dev/sdc1 is still not mounted.
 
Old 10-14-2008, 01:35 AM   #15
ELECTRONICSFREAK
LQ Newbie
 
Registered: Jul 2008
Posts: 27

Original Poster
Rep: Reputation: 15
I saw I forgot to add something to the line so they should both be mounted now. I just checked and if I am reading right they are.

Thanks for all the help!!! I really appreciate it. Definitely thanks for being patient lol.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting issue, please help emperor_black Linux - Networking 3 08-20-2008 03:07 PM
mounting issue itzig Linux - Hardware 17 02-18-2006 02:54 PM
cd mounting issue greenmuzz Linux - Hardware 2 09-09-2005 02:44 PM
Help with a mounting issue????? graystarr Red Hat 1 04-27-2005 07:47 AM
RH 7.2 Mounting Issue santiagodelgado Linux - Software 6 10-29-2001 06:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:46 AM.

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
Open Source Consulting | Domain Registration