You are not logged in.

#1 2009-04-27 22:55:16

jaydoc
Member
From: Chennai/Birmingham,AL
Registered: 2008-12-30
Posts: 88

Using Openbox - I just cannot mount my USB drive as a normal user

I run a fully updated arch64.

This is my fstab....

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
/dev/fd0               /media/fl   auto    user,noauto             0      0
/dev/sdb              /media/usb  vfat    ro,user,noauto,unhide   0      0

UUID=bcddccf7-05f6-44ff-820c-af9838c5907a swap swap defaults 0 0
UUID=d008e868-27eb-4140-9e37-c627d502d373 / ext4 defaults 0 1
UUID=e9008bef-55d6-407a-8ac8-54fe3e54f78b /home ext3 defaults 0 1
UUID=f68616e7-a386-4c5b-873b-088f332f5669 /var ext4 defaults 0 1

I use emelfm2 and rox... clicking on /media/usb icon in rox  OR typing mount /media/usb as a normal user gives me,

Mounting /media/usb
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Mount failed

I can mount the USB as root without problems by specifying the filesystem as vfat.

I have HAL hotplugging enabled.

I have gone through all the similar threads in these forums and am quite confused now - i have tried editing the policykit.conf, udev rules and all other solutions - whatever I try the problem remains. While I can mount the cd /dvd I just cannot mount the usb drives.

Any help is appreciated. Thanks.


It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead

Offline

#2 2009-04-28 00:37:33

Tenken
Member
Registered: 2008-02-01
Posts: 126

Re: Using Openbox - I just cannot mount my USB drive as a normal user

Is your user a member of the storage group?

Offline

#3 2009-04-28 09:38:45

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: Using Openbox - I just cannot mount my USB drive as a normal user

jaydoc wrote:

I run a fully updated arch64.

This is my fstab....

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
/dev/fd0               /media/fl   auto    user,noauto             0      0
/dev/sdb              /media/usb  vfat    ro,user,noauto,unhide   0      0

I use emelfm2 and rox... clicking on /media/usb icon in rox  OR typing mount /media/usb as a normal user gives me,

Mounting /media/usb
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Mount failed

I can mount the USB as root without problems by specifying the filesystem as vfat.

you need to specify a partition in yout fstab:

/dev/sdb1 [or sdb2, etc]              /media/usb  vfat    ro,user,noauto,unhide   0      0

/dev/sdb is only the device

jaydoc wrote:

I have HAL hotplugging enabled.

I have gone through all the similar threads in these forums and am quite confused now - i have tried editing the policykit.conf, udev rules and all other solutions - whatever I try the problem remains. While I can mount the cd /dvd I just cannot mount the usb drives.

Any help is appreciated. Thanks.

or you could directly use pmount. it mounts "fstab-unknown" devices to /media/<device>

Offline

#4 2009-04-28 10:08:55

hrobeers
Member
From: Belgium
Registered: 2008-11-05
Posts: 79

Re: Using Openbox - I just cannot mount my USB drive as a normal user

From the beginner guide (http://wiki.archlinux.org/index.php/Beginners_Guide) about /etc/fstab

If you plan on using hal to automount media such as DVDs, you may wish to comment out the cdrom and dvd entries in preparation for hal, which will be installed later in this guide.

You don't need to put your usbdisk in fstab! I haven't done it and with "hal" and "pcmanfm" it is automounting in openbox!

You can use "pmount" to mount as normal user (but thats not automount).

my /etc/fstab:

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


tmpfs /mnt/ramdisk tmpfs size=256M,nr_inodes=10k,mode=777 0 0
#/dev/cdrom /media/cdrom   auto    ro,user,noauto,unhide   0      0
#/dev/dvd /media/dvd   auto    ro,user,noauto,unhide   0      0
UUID=1deabe59-... /home ext3 defaults 0 1
UUID=4fa858c6-... / ext3 defaults 0 1
UUID=b0d82d23-... /var ext3 defaults 0 1
UUID=ed9869dc-... swap swap defaults 0 0

Last edited by hrobeers (2009-04-28 10:12:10)

Offline

#5 2009-04-28 12:09:28

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: Using Openbox - I just cannot mount my USB drive as a normal user

hrobeers wrote:

If you plan on using hal to automount media such as DVDs, you may wish to comment out the cdrom and dvd entries in preparation for hal, which will be installed later in this guide.

You don't need to put your usbdisk in fstab! I haven't done it and with "hal" and "pcmanfm" it is automounting in openbox!

Putting an entry in /etc/fstab with the "user" option lets you mount devices by clicking the mount point in ROX-Filer.  It's perhaps not the best way but works for me.

@jaydoc:  DonVla is right, you need to specify a partition (like sdb1, sdb2, etc) not only the device (sdb).

EDIT: fixed typo

Last edited by Trent (2009-04-28 12:10:15)

Offline

Board footer

Powered by FluxBB