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.
dumb question, but I can't seem to find an answer.
I have another drive volume called "apps" and a couple of directories inside it.
My question is: From the command line, how do I change the drive and directory?
I've tried
cd /apps
cd /apps/
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 36405 291908608 8e Linux LVM
I take it you did not add the this partition or drive to the "fstab" file ?
even if you did not CentOS 6.3 using Gnome2
it "should" be auto mounted by autofs on boot
and listen in Nautilus ( on the left side window )
/media/????something , but after you click on it in Nautilus.
if i had to guess it might be "/dev/sdb1"
Code:
su -
---- your root password when asked ---
mkdir /mnt/apps
mount /dev/sdb1 /mnt/apps
The second drive was under /media/Apps/
is this an alias?
This comes down to a fundamental difference between Windows and Linux.
In Windows, all drives have their own, unique directory structure. The root of that directory structure is C:\, D:\, etc. All drives are separate.
In Linux, there is ONE directory structure, with a root at /. All drives are mounted somewhere inside this directory structure. Where they're mounted is up to you. You can mount an external drive at /media, or /mnt, or /home, or /this/is/where/i/want/to/mount/my/drive/thank/you/very/much. It is completely up to you. Your drive was auto-mounted by the operating system in a subdirectory of /media, which is pretty common, however there's no real reason for it to be there. You could umount it and then remount it anywhere in the directory structure that you like. /etc/fstab is the file that controls where various drives are mounted (and with what options) when the system boots up.
I do that for a large drive i use between two different os's
mine though is called "DATA"
You can mount it by name , ordevice ID, or any of a few options .
for say a usb back up drive ( like one of the 3 terabit drives )
mounting it by it's device id allows it to be plugged into ANY usb port and always be mounted in the SAME place and by the same name
Thanks all. Looks like the Apps volume (what it was named) disappeared after a reboot.
I'm going to have to do some more reading on how to have drives mounted at boot up.
okay, i see what's going on: Gnome mounts the volume if logging in to a desktop and it stays mounted until the next reboot. However, Linux does not mount the volume on its own (unless I connect to the desktop first), so I need to figure out how to have it mount the volume w/o needing to login to the desktop first.
okay, I looked into fstab and the volume is not there, so then I ran the df -a command and found that the 299GB hard drive (actually hardware RAID1) is not even listed.
UGH!
Losing hair fast. What to do next...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.