You are not logged in.

#1 2009-07-08 14:05:33

Dogs1985
Member
Registered: 2008-03-01
Posts: 201

[solved] mount usb drive

i want to set when i plugin usb drive, automatic mount with utf-8, how to set? i want to set in global, not set for only that usb device.

Last edited by Dogs1985 (2009-07-09 15:48:19)

Offline

#2 2009-07-08 21:47:42

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [solved] mount usb drive

/dev/sda1     /media/sda1    auto    auto,umask=000,noatime,iocharset=utf8,codepage=932       0   0 <- such an example can't work ?

Offline

#3 2009-07-08 23:53:53

nmodlin
Member
From: Outer Banks North Carolina USA
Registered: 2009-04-15
Posts: 97

Re: [solved] mount usb drive

To manually mount them i do

sudo mount /dev/sde1 ~/kingston

ok but what happens if you have 2 different usb items that go back and forth between sde1 and sdf1/  I have a USB thumb and a USB external drvie that i plug in and out all the time.  How do i find out what there UUID is so i can mount specific drives to specific places. 

I have been doing just the manual and i am sick of it


And God created the Open Source Programming Community, and it was good. Satan retaliated with its evil twin, Windows and thus the battle for good and evil has begun.

Offline

#4 2009-07-09 07:24:16

Dogs1985
Member
Registered: 2008-03-01
Posts: 201

Re: [solved] mount usb drive

i know how to use command to mount with utf8. but i want to automount with utf-8, how to set? i'm using gnome.

Offline

#5 2009-07-09 08:09:18

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: [solved] mount usb drive

Something available here and HAL-wiki

F

Last edited by TheSaint (2009-07-09 08:10:07)


do it good first, it will be faster than do it twice the saint wink

Offline

#6 2009-07-09 12:17:56

lycurgus
Member
Registered: 2009-05-31
Posts: 13

Re: [solved] mount usb drive

you can find your drives' UUIDs with (for sde1) 'ls -l /dev/sde1' - the long string after the '->' will be the UUID. you can use awk/sed/whatever to cut it otu and pipe it into fstab, to save copy-pasting it or trying to write it out manually. something like "ls -l /dev/sde1 | awk '{print $4}' > /etc/fstab" would do it, where the $4 is the column number that has the UUID.

alternatively, solutions using HAL may be easier to manage. if you only have one or two drives, though, fstab should be fine.

Offline

#7 2009-07-09 12:29:05

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [solved] mount usb drive

I use blkid for UUIDs


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#8 2009-07-09 15:48:02

Dogs1985
Member
Registered: 2008-03-01
Posts: 201

Re: [solved] mount usb drive

my problem is solved.

Offline

Board footer

Powered by FluxBB