LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 04-07-2012, 09:09 AM   #1
raleeha
Member
 
Registered: Jan 2011
Location: Berlin
Distribution: Manjaro
Posts: 43

Rep: Reputation: 1
how to find out mp3 player creative zen stone uuid?


Hello,

I'm trying to find out what's the uuid my creative zen stone mp3 player is. But i got no luck to do this right now. Maybe there are some devices without an uuid?

when i type into a console >>sudo blkid /dev/sdd1<<, i get following ..

Code:
/dev/sdd1: LABEL="ZEN Stone" TYPE="vfat"
Any suggestions?

thanks to all

raleeha
 
Old 04-08-2012, 02:00 AM   #2
lukkon
LQ Newbie
 
Registered: Dec 2011
Distribution: Slackware/Debian
Posts: 27

Rep: Reputation: Disabled
Try this:
Code:
ls -l /dev/disk/by-uuid/
 
1 members found this post helpful.
Old 04-08-2012, 03:09 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by raleeha View Post
Maybe there are some devices without an uuid?
Certainly.
Strictly speaking it's the filesystem that lacks UUID support.

With gpt, UUID is a property of the partition, as well as (in the case of Linux filesystems) the filesystem.
 
1 members found this post helpful.
Old 04-19-2012, 03:25 AM   #4
Babertje
Member
 
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125

Rep: Reputation: 20
Or you can write an Udev rule for it, see the ArchWiki tag: Udev how to write your own rule for the label method.
A good example script by label is shown there
 
Old 04-26-2012, 05:58 PM   #5
raleeha
Member
 
Registered: Jan 2011
Location: Berlin
Distribution: Manjaro
Posts: 43

Original Poster
Rep: Reputation: 1
udev rules: /etc/udev/rules.d/11-mnt-auto-mount.rules

Code:
KERNEL!="sd[a-z][0-9]", GOTO="mnt_auto_mount_end"

# Global mount options
ACTION=="add", ENV{mount_options}="relatime"
# Filesystem-specific mount options
ACTION=="add", IMPORT{program}="/sbin/blkid -o udev -p %N"
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"

# Mount under /mnt and create the symbolic link in /media 
ACTION=="add", RUN+="/bin/mkdir -p /mnt/usbhd-%k", RUN+="/bin/mount -o $env{mount_options} /dev/%k /mnt/usbhd-%k", RUN+="/bin/ln -s /mnt/usbhd-%k /media/usbhd-%k"

# Clean up after removal
ACTION=="remove", RUN+="/bin/rm -f /media/usbhd-%k", RUN+="/bin/umount -l /mnt/usbhd-%k", RUN+="/bin/rmdir /mnt/usbhd-%k"

# Exit
LABEL="mnt_auto_mount_end"
something like this?
 
Old 04-27-2012, 01:38 AM   #6
Babertje
Member
 
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125

Rep: Reputation: 20
Yes this creates a mountpoint in /mnt and symbolicly links it to /media.
Some desktops may need that you make a policy rule to like this

Code:
/etc/polkit-1/localauthority/50-local.d/50-filesystem-mount-system-internal.pkla
[Mount a system-internal device]
Identity=*
Action=org.freedesktop.udisks.filesystem-mount-system-internal
ResultActive=yes
this results that you not need to type the SU passwrd.
Tip if you use dolphin put /media in the location-bar the zen appears automaticly in locations

You might need to replace 'udisks' with 'udisks2' in case the newer version is used!!!

Last edited by Babertje; 04-30-2012 at 01:28 AM.
 
1 members found this post helpful.
Old 04-29-2012, 04:32 AM   #7
raleeha
Member
 
Registered: Jan 2011
Location: Berlin
Distribution: Manjaro
Posts: 43

Original Poster
Rep: Reputation: 1
entry in /etc/fstab ?

ty Babertje =)

I copied this content into a new file called "11-mnt-auto.rules" in the /etc/udev/rules.d directory. The device "Creative Zen Stone 1 GB" will be now mounted in /mnt/usbhd-sdc1 and a symlink will be created in /media/usbhd-sdc1. For now its only possible for the root account to mount or umount this device. I'm not sure, if it make a sense to put this device in /etc/fstab to make it possible mount as normal user account.

I would describe this device in /etc/fstab like the following
"/dev/sdc1 /mnt/usbhd-sdc1 auto fmask=133,dmask=022,noauto,user 1 0"

ty for any comments
 
Old 05-13-2012, 10:42 PM   #8
raleeha
Member
 
Registered: Jan 2011
Location: Berlin
Distribution: Manjaro
Posts: 43

Original Poster
Rep: Reputation: 1
normally i should umount the device before unplug but as normal user it gives there s no entry in /etc/fstab so only root can umount the device. So my question do i really need to umount as root to unplug or its possible to umount as normal user ?
 
  


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
Creative Zen mp3 player and Gnomad2 lawrence_lee_lee Linux - Software 3 07-05-2008 04:08 PM
Connecting to Creative Zen mp3 player edgjerp Linux - Hardware 1 12-09-2006 11:10 AM
Creative Zen Touch mp3 player ?? bigjohn Linux - Hardware 3 07-21-2006 03:38 PM
linux on creative zen touch mp3 player thenowherekid Linux - Laptop and Netbook 2 12-16-2005 09:26 AM
Creative Zen MP3 player on Linux? borbjo Linux - Hardware 16 05-24-2004 03:37 PM

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

All times are GMT -5. The time now is 04:06 PM.

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