Re: [Hampshire] Disk mounting locations

2009-06-05 Thread Dr A. J. Trickett
On Fri, 05 Jun 2009 at 06:16:06PM +0100, Steve Kemp wrote:
> On Fri Jun 05, 2009 at 12:09:23 +0100, Leo wrote:
> 
> > options, as I see it, are:
> > 1. Mount the disk directly in /home/me/Music.
> > 2. Mount the disk in /mnt/Music and link /home/me/Music to it.
> > 3. Mount the disk in /mnt/Music and bind /home/me/Music to it.
> >
> > Is there a standard/prefered way of doing this?
> 
>   Conventionally you'd probably mount it to /mnt, or /media
>  then symlink that to your preferred location.
> 
>   I have a similar disk with music, and it is mounted at
>  /mnt/music.  Then I have ~/mp3/ symlinked to /mnt/music/mp3
>  and similarly I have ~/ogg/ symlinked to the disk.
> 

Yes there is a standard, which is probably /media for a disk, 
though on older systems it would have been /mnt.

It's easy as a beginner to want to mount things where we feel like 
not where the standard says we should. However once you get the 
hang of links it be comes natural to put things where they should 
go and then link things how you want them to appear from your home 
directiory as Steve has suggested.

A properly run Linux/Unix system should always follow the 
standard, and you should always be able to lay your own links on 
top. If you do things the easy/your way - that way leads to the 
dark side - well normally just chaos...

-- 
Adam Trickett
Overton, HANTS, UK

Considering the number of wheels Microsoft has found reason
to invent, one never ceases to be baffled by the minuscule
number whose shape even vaguely resembles a circle.
-- anon, on Usenet

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] Disk mounting locations

2009-06-05 Thread Steve Kemp
On Fri Jun 05, 2009 at 12:09:23 +0100, Leo wrote:

> options, as I see it, are:
> 1. Mount the disk directly in /home/me/Music.
> 2. Mount the disk in /mnt/Music and link /home/me/Music to it.
> 3. Mount the disk in /mnt/Music and bind /home/me/Music to it.
>
> Is there a standard/prefered way of doing this?

  Conventionally you'd probably mount it to /mnt, or /media
 then symlink that to your preferred location.

  I have a similar disk with music, and it is mounted at
 /mnt/music.  Then I have ~/mp3/ symlinked to /mnt/music/mp3
 and similarly I have ~/ogg/ symlinked to the disk.

  The disk itself is mounted read-only, as I rarely add new
 music to it.  (I've ripped all the albums I own and I rarely
 buy new ones these days.  Sometimes I download new tunes
 but very very rarely.)

  If you plan to share the disk(s) via samba it makes sense
 to mount them somewhere "global" so using "/mnt", or
 "/home/music" makes sense, but using "~me/music" doesn't.

  Still at the end of the day you can choose your location
 yourself..

Steve
-- 
Managed Anti-Spam Service
http://mail-scanning.com/


-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] Disk mounting locations

2009-06-05 Thread Anton Piatek
2009/6/5 Leo :
> I've a general query about where to mount hard disks. I've read various
> bits on the web about the general linux structure of /, /usr, /etc...
> which I think I understand. However I now seem to have quite a few hard
> disks in my desktop and I don't immediately see how they fit with this
> structure.
>
> Anyway after that somewhat rambling start what I was trying to get to is
> the following: I started with a disk mounted on /, and one on /home.
> I've since acquired some more hard disks that I use to store data
> (mainly music) and I'm trying to work out how to mount them. The
> options, as I see it, are:
> 1. Mount the disk directly in /home/me/Music.
> 2. Mount the disk in /mnt/Music and link /home/me/Music to it.
> 3. Mount the disk in /mnt/Music and bind /home/me/Music to it.
>
> Is there a standard/prefered way of doing this? (As an aside, I am the
> only user of the computer so I don't have to worry about other users
> needing to access the drives.) I also have some samba shares on the
> server that I want to use. What is the recommended way of mounting those
> on my desktop?

This is the point I use LVM - it will merge all those disks into one
visible disk.
Warning: LVM means that if all your disks are in one LVM group, then a
single disk failing can mean ALL your data is corrupted - backup data
if using LVM

Anton

-- 
Anton Piatek
email: an...@piatek.co.uk   
blog/photos:http://www.strangeparty.com
pgp: [0xB307BAEF]   (http://www.strangeparty.com/anton.asc)
fingerprint: 116A 5F01 1E5F 1ADE 78C6 EDB3 B9B6 E622 B307 BAEF

No trees were destroyed in the sending of this message, however, a
significant number of electrons were terribly inconvenienced.

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


[Hampshire] Disk mounting locations

2009-06-05 Thread Leo
I've a general query about where to mount hard disks. I've read various 
bits on the web about the general linux structure of /, /usr, /etc... 
which I think I understand. However I now seem to have quite a few hard 
disks in my desktop and I don't immediately see how they fit with this 
structure.

Anyway after that somewhat rambling start what I was trying to get to is 
the following: I started with a disk mounted on /, and one on /home. 
I've since acquired some more hard disks that I use to store data 
(mainly music) and I'm trying to work out how to mount them. The 
options, as I see it, are:
1. Mount the disk directly in /home/me/Music.
2. Mount the disk in /mnt/Music and link /home/me/Music to it.
3. Mount the disk in /mnt/Music and bind /home/me/Music to it.

Is there a standard/prefered way of doing this? (As an aside, I am the 
only user of the computer so I don't have to worry about other users 
needing to access the drives.) I also have some samba shares on the 
server that I want to use. What is the recommended way of mounting those 
on my desktop?

Thanks,
Leo

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--