SlackwareThis Forum is for the discussion of Slackware Linux.
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.
When I plug my lg mp3 player into my pc it automounts as /media/----------- - however it works fine
---------- - is not a name I would like to use how do I change it?
My usb stick mounts as /media/disk and this is fine
It seems like the hal/d-bus mechanism mounts removable media under /media/$label_of_filesystem
e.g.: the first slackware install cdrom gets mounted under /media/Slack12d1
Quote:
I think you just need to change the label of the FAT32 filesystem.
So you will have to change the label on the filesystem itself.
BTW, is there a way to, say, automatically create symlinks like /media/cdrom -> /media/Slack12d1 ?
Be sure to use minfo first to check that it is the correct device:
Code:
jschiwal@hpamd64:~> sudo minfo d:
device information:
===================
filename="/dev/sdc1"
sectors per track: 32
heads: 16
cylinders: 979
mformat command line: mformat -t 979 -h 16 -s 32 -H 99 d:
bootsector information
======================
banner:"!W;n6IHC"
sector size: 512 bytes
cluster size: 32 sectors
reserved (boot) sectors: 1
fats: 2
max available root directory slots: 512
small size: 0 sectors
media descriptor byte: 0xf8
sectors per fat: 62
sectors per track: 32
heads: 16
hidden sectors: 99
big size: 501149 sectors
physical drive id: 0x80
reserved=0x1
dos4=0x29
serial number: 3B691AFD
disk label="DOCS "
disk type="FAT16 "
Create a label with:
sudo /usr/bin/mlabel d:newlabel
Then if the filesystem on the device is assigned to /dev/sdc1, you can use:
sudo /usr/bin/mlabel d:
I tried this out before posting. The filesystem didn't have a label before I used the mlabel program. Now when I insert it, it is mounted on /media/DOCS automatically.
try setting it up in fstab, according to Pat, HAL will honor fstab, so if I want /dev/hdb1 to always mount in /media/cdrom, I'd put it there
I've done this for larger filesystems but not for pendrives. There are some problems with this. First of all you need to use either "UUID=" or "LABEL=" in /etc/fstab. Not a device like /dev/hdb1 because the next time you insert the device, it may not be /dev/hdb. It may be /dev/hdc instead. Also, you need to use the noauto option so that when you boot and it isn't inserted, you won't have the boot process fail. I use "uid=" and "gid=" options to have exclusive access, combined with the "user" option, I can mount it as a normal user. However HAL doesn't automount it for me. This may be distro dependent based on the contents of the /etc/udev/rules.d/ config files and whatever hal helper program or script is called in the run+= entry. This will be different for each distro.
Since UUID= or LABEL= needs to be used anyway, might as well just label the filesystem and be done with it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.