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!
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.
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?
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.
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.
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.
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370
Rep:
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:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.