LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-30-2005, 09:45 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
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?
 
Old 04-30-2005, 10:13 AM   #2
Cron
Member
 
Registered: Jun 2004
Location: Lithuania
Distribution: FreeBSD, Arch, Ubuntu
Posts: 145

Rep: Reputation: 15
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 !
 
Old 04-30-2005, 10:15 AM   #3
brainiac
Member
 
Registered: Jan 2005
Location: middle of a cornfield, IL
Distribution: Kanotix HD Install, Debian Testing, XP Pro,Vista RC1
Posts: 145

Rep: Reputation: 15
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.
 
Old 04-30-2005, 10:16 AM   #4
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
mounting under /etc or /var should not damage my sys.
 
Old 04-30-2005, 10:34 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
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.

Last edited by reddazz; 04-30-2005 at 10:35 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 11:03 AM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 12:34 PM
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 08:29 PM
can mount C not D FAT: invalid media value (0x45) mount: wrong fs type, bad option Emmanuel_uk Linux - Newbie 10 11-29-2005 03:47 AM
automount: mount(generic): failed to mount (null) (type iso9660) on /mnt/media/ vasudevadas Slackware 5 10-17-2005 04:05 PM


All times are GMT -5. The time now is 10:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration