LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-31-2006, 10:12 AM   #1
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Remove /media


I've just upgraded from 10.2 to 11.0 and I've noticed that I've gained an extra folder in /, namely /media. The way my system was set up in 10.2 means that all my mount points are in /mnt, and not /media. The upgrade hasn't changed this, so I'm wondering if it's ok to remove the /media folder as I like a lean, mean slackware machine?
 
Old 10-31-2006, 10:15 AM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Sure you can. But does it really make a difference beyond the measly 4K it takes up on disk?
 
Old 10-31-2006, 10:19 AM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
Well, no, probably not. The only thing that annoys me about it slightly is that when I type "mount /mnt/usb", if I only have mnt in /, then I can autocomplete mnt having only typed the m, rather than having to type mount /mn, and then autocompleting. These things bug me
 
Old 10-31-2006, 10:27 AM   #4
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Ah yes, that would bug me too. I'm sure that you can tell zsh to ignore /media because my impression is that you can get the autocomplete to do anything from what I've heard. Not sure if you can do the same thing with bash.

So yeah, it does make a difference beyond the space on disk.
 
Old 10-31-2006, 10:49 AM   #5
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Quote:
Originally Posted by pwc101
These things bug me
It bugs me too. I once expiermented with using a sed filter in my hal build script to replace /media with /mnt in the actuall source code. Good idea but I don't think it worked. I don't use hal anyway. I think you can safely delete it. Not only does the autocompletiion thing annoy me but I just don't like having 2 mount points there as well.

Last edited by jong357; 10-31-2006 at 10:51 AM.
 
Old 10-31-2006, 11:01 AM   #6
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally Posted by jong357
...I just don't like having 2 mount points there as well.
Neither do I.
What's with that folder anyway? I mean, if I'm already used to mount and umount everything fine through desktop links and proper fstab permissions, that /media folder is practically useless to me and, I dare to believe, to most slackers.

Try to tell that to an Ubuntu user
 
Old 10-31-2006, 11:46 AM   #7
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by tuxdev
Ah yes, that would bug me too. I'm sure that you can tell zsh to ignore /media because my impression is that you can get the autocomplete to do anything from what I've heard. Not sure if you can do the same thing with bash.
I use zsh anyway, so I'll have a look into that (for other things since I'm going to get rid of /media). Glad I'm not the only one that thinks like this!
 
Old 10-31-2006, 12:14 PM   #8
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
To understand the inclusion of /media, see the 'Nix Filesystem Hierarchy Standard (FHS):

Media Mount Point
 
Old 10-31-2006, 12:20 PM   #9
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
I don't know slack, but here's what I know about /media (Mandriva uses /mnt too):
- /media is the standard location for removable mount points according to the LSB.
- /media is the only place that pmount/pumount look at if you want to use them, and they're indeed very useful in concordance with the new HAL+DBUS.

The way I did was to:
- remove /media entirely,
- get the pmount source RPM (source .tgz in slack?), patch the source to replace all occurences of /media with /mnt, rebuild the binary RPM from that, and install this modified version.

Now I use /mnt only, and pmount/pumount are happy with that.

Yves.
 
Old 10-31-2006, 03:38 PM   #10
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,454
Blog Entries: 7

Rep: Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559
Quote:
Originally Posted by pwc101
I'm wondering if it's ok to remove the /media folder as I like a lean, mean slackware machine?
Yes. It won't affect anything.

But, it will make a difference in the future. Once HAL & pmount become part of Slackware, the /media directory will have a proper purpose.
 
Old 11-01-2006, 03:03 AM   #11
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
What I've ended up doing is just moving it into /root, so that if I need it in the future, then I can just move it back to /.

Thanks for all your responses folks
 
  


Reply



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
remove media check dkrysak Red Hat 0 02-02-2006 02:08 PM
A Media Management Sytem (Windows Media Centre) for linux? carl0ski Linux - Software 5 12-07-2005 07:52 PM
CANT remove /media shortcuts from desktop bendeco13 Linux - General 4 09-01-2005 12:02 AM
Can't remove media dolphans1 Mandriva 3 05-28-2005 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:56 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
Open Source Consulting | Domain Registration