LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount ? (https://www.linuxquestions.org/questions/linux-newbie-8/mount-318708/)

bruse 04-30-2005 08:45 AM

mount ?
 
can i mount my device on a mount directory only?

or can i mount it under any /etc or /var or /usr.

is it allowed?

Cron 04-30-2005 09:13 AM

Mounting anywhere
 
Yes it is allowed :).
Just do:
Code:

mount -t FILE_SYSTEM DEVICE MOUNTPOINT
Where:
FILE_SYSTEM is file system you use on that media (vfat, ntfs, reiserfs, xfs, etc...)
DEVICE is a device you want to mount (like /dev/hda1 for first ide disk first partition)
MOUNTPOINT is a directory where you want to mount (like /var/backup)
Just make sure directory exists, before mounting.

Hope this helps :) !

brainiac 04-30-2005 09:15 AM

You can mount a device anywhere it just doesn't work as well or isn't a standard procedure to mount them anywhere but under /mnt or a directory you create for mounting them.

bruse 04-30-2005 09:16 AM

mounting under /etc or /var should not damage my sys.

reddazz 04-30-2005 09:34 AM

Whatever you do, don't mess around with /bin, /etc, /lib and /sbin because they contain essential system packages and config files, so mounting stuff in there or tampering with them can be potentially disastrous. Also /bin, /etc, /lib, /sbin and /tmp should always be on the root (/) filesystem, anything else can be mounted anywhere but /mnt or /media are good places to create mount points.


All times are GMT -5. The time now is 12:22 PM.