Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Ranjan Maitra
On Fri, 23 Nov 2012 12:39:21 +0800 Ed Greshko 
wrote:

> On 11/23/2012 12:27 PM, Ranjan Maitra wrote:
> > sudo blkid -p /dev/sdb 
> > error: /dev/sdb: No medium found
> >
> > sudo blkid -p /dev/sdc
> > error: /dev/sdc: No medium found
> >
> >
> > Btw, for context, here is the background to this device: it is a tablet
> > (ARNOVA 10). From my e-mail of earlier this afternoon
> 
> If I read this correctly.  You are plugging this tablet into at running 
> F17 system via a USB connector?  And, you're expecting to access the tablet's 
> file system on the F17 system?
> 

Yes, and as I mentioned earlier, it has been possible in the past
(before this USB debugging mode got activated).

Many thanks,
Ranjan


FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your 
desktop!
Check it out at http://www.inbox.com/marineaquarium


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Ranjan Maitra
Thanks, Geoff! Sorry I do not understand (please see below):

On Thu, 22 Nov 2012 20:28:24 -0800 Geoffrey Leach 
wrote:

> On 11/22/2012 08:21:20 PM, Ranjan Maitra wrote:
> > On Thu, 22 Nov 2012 19:39:20 -0800 Geoffrey Leach 
> > wrote:
> > 
> > > On 11/22/2012 06:41:21 PM, Ranjan Maitra wrote:
> > > 
> > > > > On 11/22/2012 02:38 PM, Ranjan Maitra wrote:
> > > > > > On Thu, 22 Nov 2012 15:57:46 -0600 Ranjan Maitra
> > > > > >  wrote:
> > > > > >
> > > > > >> Hi,
> > > > > >>
> > > > > >> Following up on my previous e-mail, I wanted to mention that
> > two
> > > > usb
> > > > > >> interfaces are being recognized. Here is the relevant output
> > of
> > > > > >>
> > > > > >> % usb-devices
> > > > > >>
> > > > > >> T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 15 Spd=480
> > MxCh= 
> > > > 0
> > > > > >> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> > > > > >> P:  Vendor=0bb4 ProdID=0c02 Rev=02.22
> > > > > >> S:  Manufacturer=ARNOVA 10
> > > > > >> S:  Product=ARNOVA 10
> > > > > >> S:  SerialNumber=11223344
> > > > > >> C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=256mA
> > > > > >> I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
> > > > > >> Driver=usb-storage
> > > > > >> I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42
> > > > > >> Prot=01 Driver=(none)
> > > > > >>
> > > > > >> I want to mount this as a USB storage device, so that i can
> > > > access the
> > > > > >> filesystem.
> > > > > >>
> > > > > >> Question: How do I mount the first interface?
> > > > > > Sorry to add to my e-mail, the output of lsusb -v is as
> > follows:
> > > > > >
> > > [snip]
> > > 
> > > Here's an alternate method.
> > > 
> > > Your disks should each have a unique UUID identifier, that can be
> > used 
> > > to create a fstab entry.
> > > 
> > > For example, when I plug in my USB MP3 player, /dev/disk/by-uuid
> > gets a 
> > > symlink 1839-015E, symbolic link to `../../sdb'. Not much use.
> > However, 
> > > I have an entry in /etc/fstab: UUID=1839-015E  /Media/Sansa2  ..., 
> > > which allows me to access its contents by mounting /Media/Sansa2.
> > > 
> > 
> > Thanks! Does this happen only upon mounting. Because I don't have 
> > such
> > an entry corresponding to /dev/sdb or /dev/sdc
> > 
> > $ ll /dev/disk/by-uuid 
> > total 0
> > lrwxrwxrwx. 1 root root 10 Nov 22 12:06
> > 359f5eea-47cb-42c4-b96e-974b6f07ad19 -> ../../sda3 
> > 
> > lrwxrwxrwx. 1 root root 10 Nov 22 12:06
> > d0b7bacc-879a-4b34-9ddd-76f438a28c5d -> ../../sda6
> > 
> > lrwxrwxrwx. 1 root root 10 Nov 22 12:06
> > e082b796-2fc7-449b-95d8-a39ef6a29891 -> ../../sda2 
> > 
> > lrwxrwxrwx. 1 root
> > root 10 Nov 22 12:06 EEE4584BE4581863 -> ../../sda1 
> > 
> > lrwxrwxrwx. 1 root
> > root 10 Nov 22 12:06 f2ed8f21-da63-4def-a674-afdc90e448c5 ->
> > ../../sda5
> > 
> > (I am on F17.)
> 
> This is before mounting. Looks like your UUID is 359f5eea-47cb-42c4-
> b96e-974b6f07ad19. I'll bet that if you look in /etc/fstab, you'll find 
> that there's an entry UUID=d0b7bacc-879a-4b34-9ddd-76f438a28c5d ... 
> make a directory for your new disk and then make an entry for your new 
> UUID that mimics the existing one, with appropriate changes. Then mount 
> that directory.
> -- 

The entry for UID=359f5eea-47cb-42c4-b96e-974b6f07ad19
is for swap. 

Here is my /etc/fstab.

#
# /etc/fstab
# Created by anaconda on Tue May 29 12:02:11 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=e082b796-2fc7-449b-95d8-a39ef6a29891 / ext4defaul ts1 1
UUID=f2ed8f21-da63-4def-a674-afdc90e448c5 /home ext4defaults 1 2 
UUID=d0b7bacc-879a-4b34-9ddd-76f438a28c5d /usr/local ext4
defaults1 2 UUID=359f5eea-47cb-42c4-b96e-974b6f07ad19 swap
swapdefaults 0 0

What should I be doing?

Many thanks again!

Ranjan

-- 
Important Notice: This mailbox is ignored: e-mails are set to be
deleted on receipt. For those needing to send personal or professional
e-mail, please use appropriate addresses.


FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your 
desktop!
Check it out at http://www.inbox.com/marineaquarium


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Ed Greshko
On 11/23/2012 12:27 PM, Ranjan Maitra wrote:
> sudo blkid -p /dev/sdb 
> error: /dev/sdb: No medium found
>
> sudo blkid -p /dev/sdc
> error: /dev/sdc: No medium found
>
>
> Btw, for context, here is the background to this device: it is a tablet
> (ARNOVA 10). From my e-mail of earlier this afternoon

If I read this correctly.  You are plugging this tablet into at running F17 
system via a USB connector?  And, you're expecting to access the tablet's file 
system on the F17 system?


-- 
Programming today is a race between software engineers striving to build bigger 
and better idiot-proof programs, and the Universe trying to produce bigger and 
better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry 
Compiled
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Ranjan Maitra
On Fri, 23 Nov 2012 12:07:01 +0800 Ed Greshko 
wrote:

> On 11/23/2012 11:30 AM, Ranjan Maitra wrote:
> > On Fri, 23 Nov 2012 11:17:47 +0800 Ed Greshko 
> > wrote:
> >
> >>
> >> Are you saying you don't have an sdb1 or sdc1?
> >>
> >> If the device you have is a storage device which has partition table 
> >> defined it you should get /dev/sdbX (where X is an integer).  If you're 
> >> not getting this, the device doesn't have a valid partition table.
> > Yes, this is correct. Any suggestions then?
> >
> 
> As root.(example below for my USB thumb drive)
> 
> [root@meimei ~]# parted /dev/sdb
> GNU Parted 3.0
> Using /dev/sdg
> Welcome to GNU Parted! Type 'help' to view a list of commands.
> 
> (parted) print   
> Model: Ut165  (scsi)
> Disk /dev/sdg: 2022MB
> Sector size (logical/physical): 512B/512B
> Partition Table: loop
> Disk Flags:
> 
> Number  Start  End SizeFile system  Flags
>  1  0.00B  2022MB  2022MB  fat32
> 
> (parted) quit   

Thanks again! Same story

sudo parted /dev/sdb
Error: Error opening /dev/sdb: No medium found
Retry/Cancel? 

Many thanks and best wishes!
Ranjan


Receive Notifications of Incoming Messages
Easily monitor multiple email accounts & access them with a click.
Visit http://www.inbox.com/notifier and check it out!


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Geoffrey Leach
On 11/22/2012 08:21:20 PM, Ranjan Maitra wrote:
> On Thu, 22 Nov 2012 19:39:20 -0800 Geoffrey Leach 
> wrote:
> 
> > On 11/22/2012 06:41:21 PM, Ranjan Maitra wrote:
> > 
> > > > On 11/22/2012 02:38 PM, Ranjan Maitra wrote:
> > > > > On Thu, 22 Nov 2012 15:57:46 -0600 Ranjan Maitra
> > > > >  wrote:
> > > > >
> > > > >> Hi,
> > > > >>
> > > > >> Following up on my previous e-mail, I wanted to mention that
> two
> > > usb
> > > > >> interfaces are being recognized. Here is the relevant output
> of
> > > > >>
> > > > >> % usb-devices
> > > > >>
> > > > >> T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 15 Spd=480
> MxCh= 
> > > 0
> > > > >> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> > > > >> P:  Vendor=0bb4 ProdID=0c02 Rev=02.22
> > > > >> S:  Manufacturer=ARNOVA 10
> > > > >> S:  Product=ARNOVA 10
> > > > >> S:  SerialNumber=11223344
> > > > >> C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=256mA
> > > > >> I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
> > > > >> Driver=usb-storage
> > > > >> I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42
> > > > >> Prot=01 Driver=(none)
> > > > >>
> > > > >> I want to mount this as a USB storage device, so that i can
> > > access the
> > > > >> filesystem.
> > > > >>
> > > > >> Question: How do I mount the first interface?
> > > > > Sorry to add to my e-mail, the output of lsusb -v is as
> follows:
> > > > >
> > [snip]
> > 
> > Here's an alternate method.
> > 
> > Your disks should each have a unique UUID identifier, that can be
> used 
> > to create a fstab entry.
> > 
> > For example, when I plug in my USB MP3 player, /dev/disk/by-uuid
> gets a 
> > symlink 1839-015E, symbolic link to `../../sdb'. Not much use.
> However, 
> > I have an entry in /etc/fstab: UUID=1839-015E  /Media/Sansa2  ..., 
> > which allows me to access its contents by mounting /Media/Sansa2.
> > 
> 
> Thanks! Does this happen only upon mounting. Because I don't have 
> such
> an entry corresponding to /dev/sdb or /dev/sdc
> 
> $ ll /dev/disk/by-uuid 
> total 0
> lrwxrwxrwx. 1 root root 10 Nov 22 12:06
> 359f5eea-47cb-42c4-b96e-974b6f07ad19 -> ../../sda3 
> 
> lrwxrwxrwx. 1 root root 10 Nov 22 12:06
> d0b7bacc-879a-4b34-9ddd-76f438a28c5d -> ../../sda6
> 
> lrwxrwxrwx. 1 root root 10 Nov 22 12:06
> e082b796-2fc7-449b-95d8-a39ef6a29891 -> ../../sda2 
> 
> lrwxrwxrwx. 1 root
> root 10 Nov 22 12:06 EEE4584BE4581863 -> ../../sda1 
> 
> lrwxrwxrwx. 1 root
> root 10 Nov 22 12:06 f2ed8f21-da63-4def-a674-afdc90e448c5 ->
> ../../sda5
> 
> (I am on F17.)

This is before mounting. Looks like your UUID is 359f5eea-47cb-42c4-
b96e-974b6f07ad19. I'll bet that if you look in /etc/fstab, you'll find 
that there's an entry UUID=d0b7bacc-879a-4b34-9ddd-76f438a28c5d ... 
make a directory for your new disk and then make an entry for your new 
UUID that mimics the existing one, with appropriate changes. Then mount 
that directory.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Ranjan Maitra
Thanks again, John! This does not work for me.


On Thu, 22 Nov 2012 19:23:27 -0800 John Wendel 
wrote:

> On 11/22/2012 06:41 PM, Ranjan Maitra wrote:
> > sudo mount  /dev/sdb /mnt/myusb
> 
> The "blkid" command will give you more info about the device
> 
> sudo blkid -p /dev/sdb
> 
> will show you the partition type ( like PTTYPE="dos" ), if there is one.
> 
> sudo blkid -p /dev/sdb1
> 
> will show you the filesystem type of partition 1
> 
> /dev/sdd1: LABEL="WD1000" UUID="694b6f8b-42e6-49e8-be51-5806e5e315e9" 
> SEC_TYPE="ext2" VERSION="1.0" TYPE="ext3" USAGE="filesystem" 
> PART_ENTRY_SCHEME="dos" PART_ENTRY_TYPE="0x83" PART_ENTRY_NUMBER="1"


sudo blkid -p /dev/sdb 
error: /dev/sdb: No medium found

sudo blkid -p /dev/sdc
error: /dev/sdc: No medium found


Btw, for context, here is the background to this device: it is a tablet
(ARNOVA 10). From my e-mail of earlier this afternoon

"I am using F17 (LXDE) but this is not really the issue here. 

So, I had this old Arnova 10 tablet which I wanted to unroot, and
install Android 2.2 (from 2.1) so I flashed the apprpriate image using
the USB connection and all appeared well. 

However, during the touchscreen calibration stage, the calibration did
not get done correctly (or much at all from what I can tell). Looking
around, this seems to be happen and the way to get around it is to go
in and remove the necessary files. The trouble however is that I can no
longer mount the USB so I can not enter the device. When I mount the
USB onto my F17, I get the following:

Bus 001 Device 006: ID 0bb4:0c02 High Tech Computer Corp. Dream /
ADP1 / G1 / Magic / Tattoo (Debug)

however, this does not get mounted. Actually, the screen of the tablet
says "USB connected" but unfortunately also "USB debugging connected".
(And the latter is the problem: the issue appears to be that the latter
has to be disabled, which can only be done using the touchscreen, which
is not recognized.) Btw, I can not attach a mouse or a keyboard to the
tablet either because the USB mode has to be activated (done using a
touchscreen again). Also, there is some paperclip press on some reset
hole that should reset the device to factory settings, but absolutely
nothing happens (my fingers become sore from pushing the clip
interminably).

Question: is there a way to "force" linux (F17) to mount the USB as a
storage device? I understand the naivette of this question, but is
something else possible?"


Many thanks again and best wishes!

Ranjan






 
> try
> 
> sudo mount /dev/sdb1 /mnt/myusb
> 
> The -t argument takes a filesystem type - "vfat" is very commonly used 
> on usb devices, so try
> 
> sudo mount -t vfat /dev/sdb1 /mnt/myusb
> 
> But mount should figure this out automagically.
> 
> Regards,
> 
> John
> 
> 
> -- 
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
-- 
Important Notice: This mailbox is ignored: e-mails are set to be
deleted on receipt. For those needing to send personal or professional
e-mail, please use appropriate addresses.


FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Ranjan Maitra
On Thu, 22 Nov 2012 19:39:20 -0800 Geoffrey Leach 
wrote:

> On 11/22/2012 06:41:21 PM, Ranjan Maitra wrote:
> 
> > > On 11/22/2012 02:38 PM, Ranjan Maitra wrote:
> > > > On Thu, 22 Nov 2012 15:57:46 -0600 Ranjan Maitra
> > > >  wrote:
> > > >
> > > >> Hi,
> > > >>
> > > >> Following up on my previous e-mail, I wanted to mention that two
> > usb
> > > >> interfaces are being recognized. Here is the relevant output of
> > > >>
> > > >> % usb-devices
> > > >>
> > > >> T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 15 Spd=480 MxCh= 
> > 0
> > > >> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> > > >> P:  Vendor=0bb4 ProdID=0c02 Rev=02.22
> > > >> S:  Manufacturer=ARNOVA 10
> > > >> S:  Product=ARNOVA 10
> > > >> S:  SerialNumber=11223344
> > > >> C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=256mA
> > > >> I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
> > > >> Driver=usb-storage
> > > >> I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42
> > > >> Prot=01 Driver=(none)
> > > >>
> > > >> I want to mount this as a USB storage device, so that i can
> > access the
> > > >> filesystem.
> > > >>
> > > >> Question: How do I mount the first interface?
> > > > Sorry to add to my e-mail, the output of lsusb -v is as follows:
> > > >
> [snip]
> 
> Here's an alternate method.
> 
> Your disks should each have a unique UUID identifier, that can be used 
> to create a fstab entry.
> 
> For example, when I plug in my USB MP3 player, /dev/disk/by-uuid gets a 
> symlink 1839-015E, symbolic link to `../../sdb'. Not much use. However, 
> I have an entry in /etc/fstab: UUID=1839-015E  /Media/Sansa2  ..., 
> which allows me to access its contents by mounting /Media/Sansa2.
> 

Thanks! Does this happen only upon mounting. Because I don't have such
an entry corresponding to /dev/sdb or /dev/sdc

$ ll /dev/disk/by-uuid 
total 0
lrwxrwxrwx. 1 root root 10 Nov 22 12:06
359f5eea-47cb-42c4-b96e-974b6f07ad19 -> ../../sda3 

lrwxrwxrwx. 1 root root 10 Nov 22 12:06
d0b7bacc-879a-4b34-9ddd-76f438a28c5d -> ../../sda6

lrwxrwxrwx. 1 root root 10 Nov 22 12:06
e082b796-2fc7-449b-95d8-a39ef6a29891 -> ../../sda2 

lrwxrwxrwx. 1 root
root 10 Nov 22 12:06 EEE4584BE4581863 -> ../../sda1 

lrwxrwxrwx. 1 root
root 10 Nov 22 12:06 f2ed8f21-da63-4def-a674-afdc90e448c5 -> ../../sda5

(I am on F17.)

Many thanks,
Ranjan

-- 
Important Notice: This mailbox is ignored: e-mails are set to be
deleted on receipt. For those needing to send personal or professional
e-mail, please use appropriate addresses.


FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Ed Greshko
On 11/23/2012 11:30 AM, Ranjan Maitra wrote:
> On Fri, 23 Nov 2012 11:17:47 +0800 Ed Greshko 
> wrote:
>
>>
>> Are you saying you don't have an sdb1 or sdc1?
>>
>> If the device you have is a storage device which has partition table defined 
>> it you should get /dev/sdbX (where X is an integer).  If you're not getting 
>> this, the device doesn't have a valid partition table.
> Yes, this is correct. Any suggestions then?
>

As root.(example below for my USB thumb drive)

[root@meimei ~]# parted /dev/sdb
GNU Parted 3.0
Using /dev/sdg
Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) print

Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Geoffrey Leach
On 11/22/2012 06:41:21 PM, Ranjan Maitra wrote:

> > On 11/22/2012 02:38 PM, Ranjan Maitra wrote:
> > > On Thu, 22 Nov 2012 15:57:46 -0600 Ranjan Maitra
> > >  wrote:
> > >
> > >> Hi,
> > >>
> > >> Following up on my previous e-mail, I wanted to mention that two
> usb
> > >> interfaces are being recognized. Here is the relevant output of
> > >>
> > >> % usb-devices
> > >>
> > >> T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 15 Spd=480 MxCh= 
> 0
> > >> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> > >> P:  Vendor=0bb4 ProdID=0c02 Rev=02.22
> > >> S:  Manufacturer=ARNOVA 10
> > >> S:  Product=ARNOVA 10
> > >> S:  SerialNumber=11223344
> > >> C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=256mA
> > >> I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
> > >> Driver=usb-storage
> > >> I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42
> > >> Prot=01 Driver=(none)
> > >>
> > >> I want to mount this as a USB storage device, so that i can
> access the
> > >> filesystem.
> > >>
> > >> Question: How do I mount the first interface?
> > > Sorry to add to my e-mail, the output of lsusb -v is as follows:
> > >
[snip]

Here's an alternate method.

Your disks should each have a unique UUID identifier, that can be used 
to create a fstab entry.

For example, when I plug in my USB MP3 player, /dev/disk/by-uuid gets a 
symlink 1839-015E, symbolic link to `../../sdb'. Not much use. However, 
I have an entry in /etc/fstab: UUID=1839-015E  /Media/Sansa2  ..., 
which allows me to access its contents by mounting /Media/Sansa2.

This works on Fedora 17. On 16, the link was in a different directory, 
but the principle was the same.

Good luck.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Ranjan Maitra
On Fri, 23 Nov 2012 11:17:47 +0800 Ed Greshko 
wrote:

> On 11/23/2012 10:41 AM, Ranjan Maitra wrote:
> >
> >> I didn't catch your original email, so please excuse if I answer a 
> >> question you didn't ask.
> >>
> >> You want to mount a usb device that for some reason doesn't automount?
> >>
> >> Try these commands in a console window:
> >>
> >> [1] unplug the usb device
> >>
> >> [2] > ls /dev
> >>
> >> [3] plug in the device
> >>
> >> [4] > ls /dev
> >>
> >> Now identify the new device in /dev by comparing the output from [2] and 
> >> [4].
> > The output differs by sdb and sdc
> 
> Are you saying you don't have an sdb1 or sdc1?
> 
> If the device you have is a storage device which has partition table defined 
> it you should get /dev/sdbX (where X is an integer).  If you're not getting 
> this, the device doesn't have a valid partition table.

Yes, this is correct. Any suggestions then?

Thanks,
Ranjan


FREE ONLINE PHOTOSHARING - Share your photos online with your friends and 
family!
Visit http://www.inbox.com/photosharing to find out more!


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread John Wendel

On 11/22/2012 06:41 PM, Ranjan Maitra wrote:

sudo mount  /dev/sdb /mnt/myusb


The "blkid" command will give you more info about the device

sudo blkid -p /dev/sdb

will show you the partition type ( like PTTYPE="dos" ), if there is one.

sudo blkid -p /dev/sdb1

will show you the filesystem type of partition 1

/dev/sdd1: LABEL="WD1000" UUID="694b6f8b-42e6-49e8-be51-5806e5e315e9" 
SEC_TYPE="ext2" VERSION="1.0" TYPE="ext3" USAGE="filesystem" 
PART_ENTRY_SCHEME="dos" PART_ENTRY_TYPE="0x83" PART_ENTRY_NUMBER="1"


try

sudo mount /dev/sdb1 /mnt/myusb

The -t argument takes a filesystem type - "vfat" is very commonly used 
on usb devices, so try


sudo mount -t vfat /dev/sdb1 /mnt/myusb

But mount should figure this out automagically.

Regards,

John


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Ed Greshko
On 11/23/2012 10:41 AM, Ranjan Maitra wrote:
>
>> I didn't catch your original email, so please excuse if I answer a 
>> question you didn't ask.
>>
>> You want to mount a usb device that for some reason doesn't automount?
>>
>> Try these commands in a console window:
>>
>> [1] unplug the usb device
>>
>> [2] > ls /dev
>>
>> [3] plug in the device
>>
>> [4] > ls /dev
>>
>> Now identify the new device in /dev by comparing the output from [2] and 
>> [4].
> The output differs by sdb and sdc

Are you saying you don't have an sdb1 or sdc1?

If the device you have is a storage device which has partition table defined it 
you should get /dev/sdbX (where X is an integer).  If you're not getting this, 
the device doesn't have a valid partition table.

-- 
Programming today is a race between software engineers striving to build bigger 
and better idiot-proof programs, and the Universe trying to produce bigger and 
better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry 
Compiled
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Ranjan Maitra
Hi John,

Thanks for helping out!

On Thu, 22 Nov 2012 18:08:24 -0800 John Wendel 
wrote:

> On 11/22/2012 02:38 PM, Ranjan Maitra wrote:
> > On Thu, 22 Nov 2012 15:57:46 -0600 Ranjan Maitra
> >  wrote:
> >
> >> Hi,
> >>
> >> Following up on my previous e-mail, I wanted to mention that two usb
> >> interfaces are being recognized. Here is the relevant output of
> >>
> >> % usb-devices
> >>
> >> T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 15 Spd=480 MxCh= 0
> >> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> >> P:  Vendor=0bb4 ProdID=0c02 Rev=02.22
> >> S:  Manufacturer=ARNOVA 10
> >> S:  Product=ARNOVA 10
> >> S:  SerialNumber=11223344
> >> C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=256mA
> >> I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
> >> Driver=usb-storage
> >> I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42
> >> Prot=01 Driver=(none)
> >>
> >> I want to mount this as a USB storage device, so that i can access the
> >> filesystem.
> >>
> >> Question: How do I mount the first interface?
> > Sorry to add to my e-mail, the output of lsusb -v is as follows:
> >
> > $ lsusb -v -s 001:024
> >
> > Bus 001 Device 024: ID 0bb4:0c02 High Tech Computer Corp. Dream /
> > ADP1 / G1 / Magic / Tattoo (Debug) Couldn't open device, some
> > information will be missing Device Descriptor:
> >bLength18
> >bDescriptorType 1
> >bcdUSB   2.00
> >bDeviceClass0 (Defined at Interface level)
> >bDeviceSubClass 0
> >bDeviceProtocol 0
> >bMaxPacketSize064
> >idVendor   0x0bb4 High Tech Computer Corp.
> >idProduct  0x0c02 Dream / ADP1 / G1 / Magic / Tattoo (Debug)
> >bcdDevice2.22
> >iManufacturer   1
> >iProduct2
> >iSerial 3
> >bNumConfigurations  1
> >Configuration Descriptor:
> >  bLength 9
> >  bDescriptorType 2
> >  wTotalLength   55
> >  bNumInterfaces  2
> >  bConfigurationValue 1
> >  iConfiguration  0
> >  bmAttributes 0xe0
> >Self Powered
> >Remote Wakeup
> >  MaxPower  256mA
> >  Interface Descriptor:
> >bLength 9
> >bDescriptorType 4
> >bInterfaceNumber0
> >bAlternateSetting   0
> >bNumEndpoints   2
> >bInterfaceClass 8 Mass Storage
> >bInterfaceSubClass  6 SCSI
> >bInterfaceProtocol 80 Bulk (Zip)
> >iInterface  0
> >Endpoint Descriptor:
> >  bLength 7
> >  bDescriptorType 5
> >  bEndpointAddress 0x81  EP 1 IN
> >  bmAttributes2
> >Transfer TypeBulk
> >Synch Type   None
> >Usage Type   Data
> >  wMaxPacketSize 0x0200  1x 512 bytes
> >  bInterval   0
> >Endpoint Descriptor:
> >  bLength 7
> >  bDescriptorType 5
> >  bEndpointAddress 0x02  EP 2 OUT
> >  bmAttributes2
> >Transfer TypeBulk
> >Synch Type   None
> >Usage Type   Data
> >  wMaxPacketSize 0x0200  1x 512 bytes
> >  bInterval   1
> >  Interface Descriptor:
> >bLength 9
> >bDescriptorType 4
> >bInterfaceNumber1
> >bAlternateSetting   0
> >bNumEndpoints   2
> >bInterfaceClass   255 Vendor Specific Class
> >bInterfaceSubClass 66
> >bInterfaceProtocol  1
> >iInterface  0
> >Endpoint Descriptor:
> >  bLength 7
> >  bDescriptorType 5
> >  bEndpointAddress 0x83  EP 3 IN
> >  bmAttributes2
> >Transfer TypeBulk
> >Synch Type   None
> >Usage Type   Data
> >  wMaxPacketSize 0x0040  1x 64 bytes
> >  bInterval   0
> >Endpoint Descriptor:
> >  bLength 7
> >  bDescriptorType 5
> >  bEndpointAddress 0x04  EP 4 OUT
> >  bmAttributes2
> >Transfer TypeBulk
> >Synch Type   None
> >Usage Type   Data
> >  wMaxPacketSize 0x0200  1x 512 bytes
> >  bInterval   0
> >
> >
> > And the output of:
> >
> > $ lsusb -D /dev/bus/usb/001/001
> > Device: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > Couldn't open device, some information will be missing
> > Device Descriptor:
> >bLength18
> >bDescriptorType 1
> >bcdUS

Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread John Wendel

On 11/22/2012 02:38 PM, Ranjan Maitra wrote:

On Thu, 22 Nov 2012 15:57:46 -0600 Ranjan Maitra
 wrote:


Hi,

Following up on my previous e-mail, I wanted to mention that two usb
interfaces are being recognized. Here is the relevant output of

% usb-devices

T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 15 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0bb4 ProdID=0c02 Rev=02.22
S:  Manufacturer=ARNOVA 10
S:  Product=ARNOVA 10
S:  SerialNumber=11223344
C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=256mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42
Prot=01 Driver=(none)

I want to mount this as a USB storage device, so that i can access the
filesystem.

Question: How do I mount the first interface?

Sorry to add to my e-mail, the output of lsusb -v is as follows:

$ lsusb -v -s 001:024

Bus 001 Device 024: ID 0bb4:0c02 High Tech Computer Corp. Dream /
ADP1 / G1 / Magic / Tattoo (Debug) Couldn't open device, some
information will be missing Device Descriptor:
   bLength18
   bDescriptorType 1
   bcdUSB   2.00
   bDeviceClass0 (Defined at Interface level)
   bDeviceSubClass 0
   bDeviceProtocol 0
   bMaxPacketSize064
   idVendor   0x0bb4 High Tech Computer Corp.
   idProduct  0x0c02 Dream / ADP1 / G1 / Magic / Tattoo (Debug)
   bcdDevice2.22
   iManufacturer   1
   iProduct2
   iSerial 3
   bNumConfigurations  1
   Configuration Descriptor:
 bLength 9
 bDescriptorType 2
 wTotalLength   55
 bNumInterfaces  2
 bConfigurationValue 1
 iConfiguration  0
 bmAttributes 0xe0
   Self Powered
   Remote Wakeup
 MaxPower  256mA
 Interface Descriptor:
   bLength 9
   bDescriptorType 4
   bInterfaceNumber0
   bAlternateSetting   0
   bNumEndpoints   2
   bInterfaceClass 8 Mass Storage
   bInterfaceSubClass  6 SCSI
   bInterfaceProtocol 80 Bulk (Zip)
   iInterface  0
   Endpoint Descriptor:
 bLength 7
 bDescriptorType 5
 bEndpointAddress 0x81  EP 1 IN
 bmAttributes2
   Transfer TypeBulk
   Synch Type   None
   Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes
 bInterval   0
   Endpoint Descriptor:
 bLength 7
 bDescriptorType 5
 bEndpointAddress 0x02  EP 2 OUT
 bmAttributes2
   Transfer TypeBulk
   Synch Type   None
   Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes
 bInterval   1
 Interface Descriptor:
   bLength 9
   bDescriptorType 4
   bInterfaceNumber1
   bAlternateSetting   0
   bNumEndpoints   2
   bInterfaceClass   255 Vendor Specific Class
   bInterfaceSubClass 66
   bInterfaceProtocol  1
   iInterface  0
   Endpoint Descriptor:
 bLength 7
 bDescriptorType 5
 bEndpointAddress 0x83  EP 3 IN
 bmAttributes2
   Transfer TypeBulk
   Synch Type   None
   Usage Type   Data
 wMaxPacketSize 0x0040  1x 64 bytes
 bInterval   0
   Endpoint Descriptor:
 bLength 7
 bDescriptorType 5
 bEndpointAddress 0x04  EP 4 OUT
 bmAttributes2
   Transfer TypeBulk
   Synch Type   None
   Usage Type   Data
 wMaxPacketSize 0x0200  1x 512 bytes
 bInterval   0


And the output of:

$ lsusb -D /dev/bus/usb/001/001
Device: ID 1d6b:0002 Linux Foundation 2.0 root hub
Couldn't open device, some information will be missing
Device Descriptor:
   bLength18
   bDescriptorType 1
   bcdUSB   2.00
   bDeviceClass9 Hub
   bDeviceSubClass 0 Unused
   bDeviceProtocol 0 Full speed (or root) hub
   bMaxPacketSize064
   idVendor   0x1d6b Linux Foundation
   idProduct  0x0002 2.0 root hub
   bcdDevice3.06
   iManufacturer   3
   iProduct2
   iSerial 1
   bNumConfigurations  1
   Configuration Descriptor:
 bLength 9
 bDescriptorType 2
 wTotalLength   25
 bNumInterfaces  1
 bConfigurationValue 1
 iConfiguration

Re: What are these for?

2012-11-22 Thread Ian Malone
On 22 November 2012 19:13, lee  wrote:
> Ian Malone  writes:
>

>> Also the equivalent is not su, it's actually suid, which does rely on
>> the individual application to assume and drop privileges responsibly.
>
> In which way is relying on an application that uses polkit to do only
> what it is supposed to do better or different?  I can see it being

'allowed to do'

> better forcing apps that are setuid root to request a password, yet they
> don't need to do that when they already have the permissions they're
> asking for.
>

Not how setuid works. If it did that it would be polkit.

> If I understand the desgin correctly, using polkit is voluntary for an
> application and it's up to the application to do whatever when it
> receives extended permissions.  When the application already has
> extended permissions, it doesn't need to ask and can do whatever anyway.
>

Apparently you don't and are trying very hard not to.

-- 
imalone
http://ibmalone.blogspot.co.uk
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: What are these for?

2012-11-22 Thread Matthew Miller
On Thu, Nov 22, 2012 at 08:22:23PM +0100, lee wrote:
> > Or better, set VISUAL=emacs and run `sudo -e`, which was designed for
> > this purpose. (And which, by the way, will work out of the box on Fedora
> > for members of the wheel group.)
> In which way is that better?

Because emacs isn't actually executed as root. The editor is executed under
your user id, operating on a temporary file, which is then copied into
place. It's impossible for the editor (or the person using it) to do
anything as root other than edit the specified file.




-- 
Matthew Miller  ☁☁☁  Fedora Cloud Architect  ☁☁☁  
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


f17 - k3b and mp3

2012-11-22 Thread Robert Moskowitz
I had instructions for f16 from T.C. to do the following after checking 
that libmad was install:


All of the k3b plugins inappropriate for Fedora are packed in the
"k3b-extras-freeworld" package in RPMFusion-Free.  Install that and
run 'kbuildsycoca4 --noincremental' and you'll be all set.


So I installed k3b-extras-freeworld then ran the kbuild...  and got the 
following errors:


# kbuildsycoca4 --noincremental
kbuildsycoca4 running...
kbuildsycoca4(7783) VFolderMenu::loadDoc: Parse error in 
"/root/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu" , 
line  1 , col  1 :  "unexpected end of file"
kbuildsycoca4(7783) KConfigGroup::readXdgListEntry: List entry 
Categories in "/usr/share/applications/fedora-release-notes.desktop" is 
not compliant with XDG standard (missing trailing semicolon).


I started up k3b and did not get the mp3 warning.  Is the kbuild no 
longer needed or did it do its job before the errors or am I still 
messed up



--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mounting one usb interface (from 2 identified)

2012-11-22 Thread Ranjan Maitra
On Thu, 22 Nov 2012 15:57:46 -0600 Ranjan Maitra
 wrote:

> Hi,
> 
> Following up on my previous e-mail, I wanted to mention that two usb
> interfaces are being recognized. Here is the relevant output of 
> 
> % usb-devices
> 
> T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 15 Spd=480 MxCh= 0
> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=0bb4 ProdID=0c02 Rev=02.22
> S:  Manufacturer=ARNOVA 10
> S:  Product=ARNOVA 10
> S:  SerialNumber=11223344
> C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=256mA
> I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
> Driver=usb-storage 
> I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42
> Prot=01 Driver=(none)
> 
> I want to mount this as a USB storage device, so that i can access the
> filesystem.
> 
> Question: How do I mount the first interface?

Sorry to add to my e-mail, the output of lsusb -v is as follows:

$ lsusb -v -s 001:024

Bus 001 Device 024: ID 0bb4:0c02 High Tech Computer Corp. Dream /
ADP1 / G1 / Magic / Tattoo (Debug) Couldn't open device, some
information will be missing Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0 
  bDeviceProtocol 0 
  bMaxPacketSize064
  idVendor   0x0bb4 High Tech Computer Corp.
  idProduct  0x0c02 Dream / ADP1 / G1 / Magic / Tattoo (Debug)
  bcdDevice2.22
  iManufacturer   1 
  iProduct2 
  iSerial 3 
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   55
bNumInterfaces  2
bConfigurationValue 1
iConfiguration  0 
bmAttributes 0xe0
  Self Powered
  Remote Wakeup
MaxPower  256mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass 8 Mass Storage
  bInterfaceSubClass  6 SCSI
  bInterfaceProtocol 80 Bulk (Zip)
  iInterface  0 
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02  EP 2 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   1
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber1
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass 66 
  bInterfaceProtocol  1 
  iInterface  0 
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83  EP 3 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0040  1x 64 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04  EP 4 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0


And the output of:

$ lsusb -D /dev/bus/usb/001/001
Device: ID 1d6b:0002 Linux Foundation 2.0 root hub
Couldn't open device, some information will be missing
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 0 Full speed (or root) hub
  bMaxPacketSize064
  idVendor   0x1d6b Linux Foundation
  idProduct  0x0002 2.0 root hub
  bcdDevice3.06
  iManufacturer   3 
  iProduct2 
  iSerial 1 
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   25
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0 
bmAttributes 0xe0
  Self Powered
  Remote Wakeup
MaxPower   

Re: why does this rsync commands copy again the same files?

2012-11-22 Thread Gordon Messmer

On 11/22/2012 01:55 PM, M. Fioretti wrote:

However, I do remember that this thing of having the trailing slash in
the source, but not in the destination, is something I have read in
many places as the thing to do, and this is the first time I hear
speaking against it.


The man page for rsync is clear on the topic:
"""
A trailing slash on the source changes this behavior to avoid  creating
an  additional  directory level at the destination.  You can think of a
trailing / on a source as meaning "copy the contents of this directory"
as  opposed  to  "copy  the  directory  by name"
"""
Putting a trailing slash on both directories will produce exactly the 
same behavior as not putting a trailing slash on the destination. 
Suggestions otherwise are mistaken.  Putting a slash on both is very 
common, since it relieves users of needing to understand the more 
specific details of this behavior.



Back on topic, why do you think there may be some link between this
issue and the problem I see? My problem seems more due to some wrong
option, because a) it is the only problem I see, never had any filled
partition, and b) it is very, very constant. Sorry if I forgot to
specify this earlier, but if I run the command on two different
drives, both vfat, both times the folder(s) that are recopied are the
same.


Use --modify-window=1

vfat's time resolution is only 2 seconds, so about half of original 
files copied to vfat using rsync will have a timestamp that doesn't 
match.  Since rsync uses size and modified time to decide whether or not 
to copy files (unless you specify -c), about half of your files will be 
rsynced every time you copy from ext4 to vfat.



--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: why does this rsync commands copy again the same files?

2012-11-22 Thread Reindl Harald


Am 22.11.2012 23:21, schrieb M. Fioretti:
> On Thu, Nov 22, 2012 23:07:33 PM +0100, Reindl Harald wrote:
> 
>> as said: please compare the timestamp on the target most likely the
>> timestamp on vfat contains daylight-savings which is not the case on
>> unix-filesystems
> 
> Indeed! Thanks. Here are the outputs of fstat on two copies of the
> same file, just rsync-ed from the ext4 folder to the vfat ext drive:
> 
> [marco@avalon LACIE]$ stat  --format "%y" 
> /home/z/photo/2011/20110719/P1110546.JPG
> 2011-07-19 07:28:36.0 +0200
> [marco@avalon LACIE]$ stat  --format "%y" 
> /media/LACIE/photo/2011/20110719/P1110546.JPG
> 2011-07-19 06:28:36.0 +0200
> 
> OK, thanks you got it exactly right!!! But, now what? Is there any way
> to keep the drive vfat AND end this problem, without losing file
> modification time? I'd really like to keep the vfat simply because some of
> those drives are not mine 

google says:

http://lwn.net/Articles/287428/
http://www.kernel.org/doc/Documentation/filesystems/vfat.txt

tz=UTC-- Interpret timestamps as UTC rather than local time.
 This option disables the conversion of timestamps
 between local time (as used by Windows on FAT) and UTC
 (which Linux uses internally).  This is particularly
 useful when mounting devices (like digital cameras)
 that are set to UTC in order to avoid the pitfalls of
 local time.

so i guess mount the crappy vfat with the mount-param
tz=UTC should do the job





signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: why does this rsync commands copy again the same files?

2012-11-22 Thread M. Fioretti
On Thu, Nov 22, 2012 23:07:33 PM +0100, Reindl Harald wrote:

> as said: please compare the timestamp on the target most likely the
> timestamp on vfat contains daylight-savings which is not the case on
> unix-filesystems

Indeed! Thanks. Here are the outputs of fstat on two copies of the
same file, just rsync-ed from the ext4 folder to the vfat ext drive:

[marco@avalon LACIE]$ stat  --format "%y" 
/home/z/photo/2011/20110719/P1110546.JPG
2011-07-19 07:28:36.0 +0200
[marco@avalon LACIE]$ stat  --format "%y" 
/media/LACIE/photo/2011/20110719/P1110546.JPG
2011-07-19 06:28:36.0 +0200

OK, thanks you got it exactly right!!! But, now what? Is there any way
to keep the drive vfat AND end this problem, without losing file
modification time? I'd really like to keep the vfat simply because some of
those drives are not mine (*)


Marco

(*) I do photo archiving for the extended family, and telling some of
them to "mess with their computers" to make them read decent file
systems would be... OK, pls tell me if there's another way first...

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: why does this rsync commands copy again the same files?

2012-11-22 Thread Reindl Harald


Am 22.11.2012 22:55, schrieb M. Fioretti:
> On Thu, Nov 22, 2012 22:44:25 PM +0100, Reindl Harald wrote:
> 
>>> IIRC, adding a trailing slash /media/Verbatim/photo/ would cause
>>> another "photo" folder to appear inside /media/Verbatim/photo/,
>>> which is not what I want
>>
>> i am using rsync since many years in any environment
>> for backups, for sync folders, for sync TB's of data all over the world
>>
>> adding a trailing slash /media/Verbatim/photo/ would cause
>> NEVER EVER another "photo" folder to appear inside /media/Verbatim/photo/
> 
> I am sure you have more experience than me. I said "IIRC". If my
> specific explanation above, which I plucked out from memory in a rush,
> is the wrong one, OK, no problem.

i did not feel offended - really!

> However, I do remember that this thing of having the trailing slash in
> the source, but not in the destination, is something I have read in
> many places as the thing to do, and this is the first time I hear
> speaking against it

my intention was to give the hint that a mssing trailing
slash may some times produce unexpected results while have
both sides with a trailing slash is 100% sure

> I'm not "attacking" you in any way, of course. Just saying that I am
> puzzled, because I had never heard of such an issue before.

as said: i did not feel offendned nor was my intention to offend you

> Back on topic, why do you think there may be some link between this
> issue and the problem I see?

hmm - i did not
look at my first reply
the hint with the lsahses was one line and a "yb the way"

> So it is either something weird in the permissions or other metadata
> of those folders only, or some wrong option in the command. But what?

for sure vfat is the problem

as said: please compare the timestamp on the target
most likely the timestamp on vfat contains daylight-savings
which is not the case on unix-filesystems

but it is long ago that i had to deal with anything not ext4



signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


mounting one usb interface (from 2 identified)

2012-11-22 Thread Ranjan Maitra
Hi,

Following up on my previous e-mail, I wanted to mention that two usb
interfaces are being recognized. Here is the relevant output of 

% usb-devices

T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 15 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0bb4 ProdID=0c02 Rev=02.22
S:  Manufacturer=ARNOVA 10
S:  Product=ARNOVA 10
S:  SerialNumber=11223344
C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=256mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage 
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42
Prot=01 Driver=(none)

I want to mount this as a USB storage device, so that i can access the
filesystem.

Question: How do I mount the first interface?

Many thanks and best wishes,
Ranjan


-- 
Important Notice: This mailbox is ignored: e-mails are set to be
deleted on receipt. For those needing to send personal or professional
e-mail, please use appropriate addresses.


FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your 
desktop!
Check it out at http://www.inbox.com/marineaquarium


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: why does this rsync commands copy again the same files?

2012-11-22 Thread M. Fioretti
On Thu, Nov 22, 2012 22:44:25 PM +0100, Reindl Harald wrote:

> > IIRC, adding a trailing slash /media/Verbatim/photo/ would cause
> > another "photo" folder to appear inside /media/Verbatim/photo/,
> > which is not what I want
> 
> i am using rsync since many years in any environment
> for backups, for sync folders, for sync TB's of data all over the world
> 
> adding a trailing slash /media/Verbatim/photo/ would cause
> NEVER EVER another "photo" folder to appear inside /media/Verbatim/photo/

Harald,

I am sure you have more experience than me. I said "IIRC". If my
specific explanation above, which I plucked out from memory in a rush,
is the wrong one, OK, no problem.

However, I do remember that this thing of having the trailing slash in
the source, but not in the destination, is something I have read in
many places as the thing to do, and this is the first time I hear
speaking against it.

I'm not "attacking" you in any way, of course. Just saying that I am
puzzled, because I had never heard of such an issue before.

Back on topic, why do you think there may be some link between this
issue and the problem I see? My problem seems more due to some wrong
option, because a) it is the only problem I see, never had any filled
partition, and b) it is very, very constant. Sorry if I forgot to
specify this earlier, but if I run the command on two different
drives, both vfat, both times the folder(s) that are recopied are the
same.

So it is either something weird in the permissions or other metadata
of those folders only, or some wrong option in the command. But what?

TIA,
Marco
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: why does this rsync commands copy again the same files?

2012-11-22 Thread Reindl Harald


Am 22.11.2012 22:44, schrieb Reindl Harald:
> 
> 
> Am 22.11.2012 22:34, schrieb M. Fioretti:
>> On Thu, Nov 22, 2012 22:10:04 PM +0100, Reindl Harald wrote:
>>
>> rsync -rvt --delete --no-o --no-g /home/z/photo/ /media/Verbatim/photo
>
> this command has a error
> the last aparm is missing a trailing slash

 Why would that be an error?
>>>
>>> because i had enough cases with rsync over different partitions
>>> where the missing trailing slash resulted in copy the whole data to
>>> the source partition and fill it up
>>
>> omitting the trailing slash is the way explained by many tutorials and
>> by the rsync documentation itself if what one wants to do is, as in my
>> case, to copy the whole content of /home/z/photo/ inside
>> /media/Verbatim/photo
>>
>> IIRC, adding a trailing slash /media/Verbatim/photo/ would cause
>> another "photo" folder to appear inside /media/Verbatim/photo/, which
>> is not what I want
> 
> i am using rsync since many years in any environment
> for backups, for sync folders, for sync TB's of data all over the world
> 
> adding a trailing slash /media/Verbatim/photo/ would cause
> NEVER EVER another "photo" folder to appear inside /media/Verbatim/photo/

http://defindit.com/readme_files/rsync_backup.html

if you are using /source/ /target/ you do not need
to care about any destination folder - /target/
will be a 100% identical copy of the source



signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: failing drives or false positives

2012-11-22 Thread Brian West

On 11/22/2012 04:29 PM, Mark LaPierre wrote:

On 11/22/2012 03:04 PM, Brian West wrote:

On 11/22/2012 12:58 PM, JD wrote:



On Thu, Nov 22, 2012 at 8:13 AM, Brian West mailto:bionicfre...@gmail.com>> wrote:

Hi everyone

yesterday i began receiving messages from one  of my drives in my
hard drive dock that it could be failing.  so i tested my
notebooks drive and the docked drive in question both said tests
completed without error both short and extended tests were
performed is my drive really failing or is this a false positive.
 logs for each drive are below what really gets me is both of the
drives give the exact same output for the most part should i be
concerned?  Thanks in advance for your time.

Brian West


You did not append the error messages you say you are getting.
I too am having drive errors in the system log.
Interested in your log or error messages in /var/log/messages.




where do i locate the errors?




Didn't you say in your original post that, "yesterday i began 
receiving messages from one  of my drives in my hard drive dock that 
it could be failing."?  What are those messages?

device sdb could be failing i/o error comes up as a broadcast message

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: why does this rsync commands copy again the same files?

2012-11-22 Thread Reindl Harald


Am 22.11.2012 22:34, schrieb M. Fioretti:
> On Thu, Nov 22, 2012 22:10:04 PM +0100, Reindl Harald wrote:
> 
> rsync -rvt --delete --no-o --no-g /home/z/photo/ /media/Verbatim/photo

 this command has a error
 the last aparm is missing a trailing slash
>>>
>>> Why would that be an error?
>>
>> because i had enough cases with rsync over different partitions
>> where the missing trailing slash resulted in copy the whole data to
>> the source partition and fill it up
> 
> omitting the trailing slash is the way explained by many tutorials and
> by the rsync documentation itself if what one wants to do is, as in my
> case, to copy the whole content of /home/z/photo/ inside
> /media/Verbatim/photo
> 
> IIRC, adding a trailing slash /media/Verbatim/photo/ would cause
> another "photo" folder to appear inside /media/Verbatim/photo/, which
> is not what I want

i am using rsync since many years in any environment
for backups, for sync folders, for sync TB's of data all over the world

adding a trailing slash /media/Verbatim/photo/ would cause
NEVER EVER another "photo" folder to appear inside /media/Verbatim/photo/




signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: why does this rsync commands copy again the same files?

2012-11-22 Thread M. Fioretti
On Thu, Nov 22, 2012 22:10:04 PM +0100, Reindl Harald wrote:

> >>> rsync -rvt --delete --no-o --no-g /home/z/photo/ /media/Verbatim/photo
> >>
> >> this command has a error
> >> the last aparm is missing a trailing slash
> > 
> > Why would that be an error?
> 
> because i had enough cases with rsync over different partitions
> where the missing trailing slash resulted in copy the whole data to
> the source partition and fill it up

omitting the trailing slash is the way explained by many tutorials and
by the rsync documentation itself if what one wants to do is, as in my
case, to copy the whole content of /home/z/photo/ inside
/media/Verbatim/photo

IIRC, adding a trailing slash /media/Verbatim/photo/ would cause
another "photo" folder to appear inside /media/Verbatim/photo/, which
is not what I want.

FWIW, I have never seen errors like the ones you mention. Only this
"copy again". The only case in which it does NOT happen is if I run
rsync, and then run it again immediately after. If I unmount the drive
between the two runs, it does the unneeded copies again (and this only
happens for SOME, always the same, files/folders). But in no case I
have seen data loss, partition filled and so on

Marco





-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: failing drives or false positives

2012-11-22 Thread Mark LaPierre

On 11/22/2012 03:04 PM, Brian West wrote:

On 11/22/2012 12:58 PM, JD wrote:



On Thu, Nov 22, 2012 at 8:13 AM, Brian West mailto:bionicfre...@gmail.com>> wrote:

Hi everyone

yesterday i began receiving messages from one  of my drives in my
hard drive dock that it could be failing.  so i tested my
notebooks drive and the docked drive in question both said tests
completed without error both short and extended tests were
performed is my drive really failing or is this a false positive.
 logs for each drive are below what really gets me is both of the
drives give the exact same output for the most part should i be
concerned?  Thanks in advance for your time.

Brian West


You did not append the error messages you say you are getting.
I too am having drive errors in the system log.
Interested in your log or error messages in /var/log/messages.




where do i locate the errors?




Didn't you say in your original post that, "yesterday i began receiving 
messages from one  of my drives in my hard drive dock that it could be 
failing."?  What are those messages?


--
_
   °v°
  /(_)\
   ^ ^  Mark LaPierre
Registerd Linux user No #267004
https://linuxcounter.net/

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: why does this rsync commands copy again the same files?

2012-11-22 Thread Reindl Harald


Am 22.11.2012 22:02, schrieb Andras Simon:
> 2012/11/22, Reindl Harald :
>>
>>
>> Am 22.11.2012 21:41, schrieb M. Fioretti:
>>> Greetings,
>>>
>>> I am running Fedora 16 x86_64. When I connect an external USB drive
>>> and rsync to it my pictures with this command:
>>>
>>> rsync -rvt --delete --no-o --no-g /home/z/photo/ /media/Verbatim/photo
>>
>> this command has a error
>> the last aparm is missing a trailing slash
> 
> Why would that be an error?

because i had enough cases with rsync over different partitions
where the missing trailing slash resulted in copy the whole data
to the source partition and fill it up

i did not research the exatc reason because it is and was
enough for me to realize that this NEVER happens if using
a trailing slash EVERYTIME when folders are used





signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: why does this rsync commands copy again the same files?

2012-11-22 Thread Andras Simon
2012/11/22, Reindl Harald :
>
>
> Am 22.11.2012 21:41, schrieb M. Fioretti:
>> Greetings,
>>
>> I am running Fedora 16 x86_64. When I connect an external USB drive
>> and rsync to it my pictures with this command:
>>
>> rsync -rvt --delete --no-o --no-g /home/z/photo/ /media/Verbatim/photo
>
> this command has a error
> the last aparm is missing a trailing slash

Why would that be an error?

Andras
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: why does this rsync commands copy again the same files?

2012-11-22 Thread Reindl Harald


Am 22.11.2012 21:41, schrieb M. Fioretti:
> Greetings,
> 
> I am running Fedora 16 x86_64. When I connect an external USB drive
> and rsync to it my pictures with this command:
> 
> rsync -rvt --delete --no-o --no-g /home/z/photo/ /media/Verbatim/photo

this command has a error
the last aparm is missing a trailing slash

> FIY, the source folder is ext4, the destination vfat (see their mount
> entries below)

maybe because the target is vfat

have you compared the timestamps on tke target?
maybe try --update

maybe there are also chars which are not represented properly
on vfat in your filenames

if the filenames are 100% identical rsync will not copy the whole
data in any case, but with USB read-peroformance for verify is
ugly - so look at rsync --help and ignore as many things as
possible with crappy destination filesystems





signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


why does this rsync commands copy again the same files?

2012-11-22 Thread M. Fioretti
Greetings,

I am running Fedora 16 x86_64. When I connect an external USB drive
and rsync to it my pictures with this command:

rsync -rvt --delete --no-o --no-g /home/z/photo/ /media/Verbatim/photo

because I don't care about ownership and permissions, I just want to
have the same files,with the same names and modification times, in the
same hierarchy of folders.

However, rsync keeps copying certain folders and pictures, and always
the same ones, every time, even if they are not changed at all. If I
rsync, unmount and unplug the drive, then plug it in again and re-run
the command above, rsync copies again hundreds of pictures to the
drive. What am I missing here?

FIY, the source folder is ext4, the destination vfat (see their mount
entries below)

TIA,
Marco

/dev/sda7 on /home type ext4 (rw,relatime,seclabel,data=ordered)
/dev/sdb1 on /media/Verbatim type vfat 
(rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=cp437,i
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: How do I disable polkitd?

2012-11-22 Thread Reindl Harald


Am 22.11.2012 20:30, schrieb lee:
>> or LIVE with how the distribution is supposed to work - on
>> installations without a GUI it does not get started at all
> 
> And be stuck with gnome and a lot of other stuff I don't need and
> without lots of stuff I do need?  I'd be better off with windoze then.

uhm i do not use anything outside the feodra-repos since Fedora 6
and never used GNOME after "i saw it, i laugehd it, i deleted it"



signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: What are these for?

2012-11-22 Thread Reindl Harald


Am 22.11.2012 20:14, schrieb lee:
> Joe Zeff  writes:
> 
>> On 11/21/2012 06:38 AM, lee wrote:
>>> And how do you know or make sure that some software uses your password
>>> only for that?
>>
>> Use only software from the Fedora repos and trust the devs to do their jobs.
> 
> Not all the software I need is in these repos

sorry, but this is YOUR problem
the only thing outside the repos here is ZendStudio and VMware



signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: What are these for?

2012-11-22 Thread Reindl Harald


Am 22.11.2012 18:07, schrieb lee:
>> man crontab
>> man grep
>> man echo
>>
>> any output from a application / script started via crond
>> goes into a mail to root
> 
> It goes to the user who created the crontab.  

the user to parse sensitive logs is usually root

> What messages would I want to see?

that is up to you

i as exmaple want to see any failed systemd-unit
and any php-notice/warning/error and wrote scripts
to grep them and remeber what is already mailed

i doubt there is a generic and ready "fits you" solution
but that is the strength of a linux-system
you can do whatever you need

>> but you refuse to understand the main difference having
>> things permanently running as root or only request root
>> pwd if it is really needed AND you can refuse to permit
> 
> No, I'm seeing the difference and ask myself how relevant that is.

on sunny days it does not matter

if things are going wrong it may make the difference between
"nothing bad happened" and "you are comprimised", if you are
compromised it is a really hard job to setup a clean system
and not restore manipulated scripts / configs from your backups

> With su, I have bash running as root in one of the windows in tmux and
> everything I do from there runs as root.  I'm not giving away the
> password other than to su and there aren't any hidden things that might
> or might not happen in the background.
> 
> In both cases, "bad" software could do harm.  So what's the relevant
> difference?

policykit requests root pwd only when needed

it is up to you to think if there is a reason
and the request is expected - if you start it
directly as root ANYTHING runs with full permissions

>>> So yes, it decreases security instead of increasing it.
>>
>> NO how do you come to that conclusion?
> 
> It gets users used to just enter their password whenever they are asked
> for it.

these types of users are idiots and nothing can help
them - polkit is for them who are THINKING before
typing the password why it would be needed and if
i do not seee a reason i refsure to give permissions
and try to read manpages to understand why i should
grant it

>> it is about you if you enter root password in a randomly popping up
>> window
> 
> Yes, and once users are used to do that, they just do it.

as said: these types of users are helpless

the intention of a OS trying to make things
as secure as posiible is to help and protect users
with their own brain - the rest is helpless

>>> What difference does it make which password is supplied when with the
>>> password things can be done that are relevant for security?  Why should
>>> I give my password again when I'm already logged in and the system knows
>>> who I am?
>>
>> what about drive-by-attacks?
> 
> I don't know what you mean by that.

any code which runs as root can do anything
any code with whatever security leak can be
attacke dwith input data - if the code has as less
permissions as possible it is much harder to trigger
buffer overflows and such things to modify the system
for later attacks to other components

example?

* system executes code by buffer overflow
* this code may use another security hole which is only local exploitable
* if some of this running with root permissions the attacker opens a backdoor
* over htis backdoor the machine is controlled and wide opened

google: rootkit

>> what about leave the room for a minute and forget lock the screen?
> 
> If I had to lock the screen, I would

a very very naive point of view which may work
99 out of 100% and the ONE perecent installs you
a backdoor you maybe not recognize over weeks

>> what about malware trying things with your current permissions
> 
> It can do that in any case.

hahahaha, sorry but this is naive

malware will nearly everytime try to gain root access and
modify something - if there is a root-pwd request without
knowing what of your actions could have been triggering
this you may get alarmed

many may not but they are helpless and such things are
to help the users which are not ignorant

>> ANY security relevant task has to be confirmed with
>> a password independent if you are logged in or not
> 
> Starting/running a web browser is a security relevant task.  "Web
> browser" is only a place holder.  Fill in other software that might be
> security relevant.

bullshit

the webbrowser is not a security relevant task for itself
but opening a webpage and get a request to enter the root-pwd
may be a VERY good sign that your browser has a security hole

> I'm running the web browser as a different user so it doesn't have
> access to my data. 

this may suit you
but it can not suit me as web-developer

>> users entering their password EVERWHERE have already lost
>> ANY security fight - sorry, but this argumentation is invalid
>> because ORDINARY user tasks do NOT request a password
> 
> Your logic is flawed.  It doesn't matter that some things don't require
> entering a password.  (On a side note: Starting a web browser or
> starting emacs

Re: failing drives or false positives

2012-11-22 Thread JD
On Thu, Nov 22, 2012 at 12:04 PM, Brian West  wrote:

>  On 11/22/2012 12:58 PM, JD wrote:
>
>
>
> On Thu, Nov 22, 2012 at 8:13 AM, Brian West wrote:
>
>> Hi everyone
>>
>> yesterday i began receiving messages from one  of my drives in my hard
>> drive dock that it could be failing.  so i tested my notebooks drive and
>> the docked drive in question both said tests completed without error both
>> short and extended tests were performed is my drive really failing or is
>> this a false positive.  logs for each drive are below what really gets me
>> is both of the drives give the exact same output for the most part should i
>> be concerned?  Thanks in advance for your time.
>>
>> Brian West
>>
>
> You did not append the error messages you say you are getting.
> I too am having drive errors in the system log.
> Interested in your log or error messages in /var/log/messages.
>
>
>
>  where do i locate the errors?
>
>
/var/log/messages
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: failing drives or false positives

2012-11-22 Thread Brian West

On 11/22/2012 12:58 PM, JD wrote:



On Thu, Nov 22, 2012 at 8:13 AM, Brian West > wrote:


Hi everyone

yesterday i began receiving messages from one  of my drives in my
hard drive dock that it could be failing.  so i tested my
notebooks drive and the docked drive in question both said tests
completed without error both short and extended tests were
performed is my drive really failing or is this a false positive.
 logs for each drive are below what really gets me is both of the
drives give the exact same output for the most part should i be
concerned?  Thanks in advance for your time.

Brian West


You did not append the error messages you say you are getting.
I too am having drive errors in the system log.
Interested in your log or error messages in /var/log/messages.




where do i locate the errors?
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: How do I disable polkitd?

2012-11-22 Thread Gabriel VLASIU
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 21 Nov 2012, lee wrote:

> it seems systemctl doesn't know about polkitd though pstree shows it as
> started by systemd.  There don't seem to be files for starting polkitd
> in /etc.  It cannot be removed because almost 600 packages depend on it
> :(
> 
> So how do I disable it?

1. Disable polkit.

# perl -p -i -e 's@(^Exec=.*$)@# \1Exec=/bin/false\n@s' 
/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service

2. Make sure polkit will be disabled if a new version is installed:
# yum -y install yum-plugin-post-transaction-actions
# echo "polkit:install:perl -p -i -e 's@(^Exec=.*$)@# \1Exec=/bin/false\n@s' 
/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service" > 
/etc/yum/post-actions/polkit.action


Gabriel

- -- 

// Gabriel VLASIU
//
// OpenGPG-KeyID  : 44952F15
// OpenGPG-Fingerprint: 4AC5 7C26 2FE9 02DA 4906  24B2 D32B 7ED7 4495 2F15
// OpenGPG-URL: http://www.vlasiu.net/public.key


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJQroQkAAoJENMrftdElS8VhD4QAIZoJWIkGg9PGYV109FlYc6N
M96VrHsc13dBG2YcUn8GEhwQhWwE8GUhXV43HuUXu0JgpxJ8q2/RyqAjPtpKa93F
pdvMGL5a/SODR8zb5Uso4bmtUolRU1jMhlfSgtGQL89fgOgvfoV0NcZIe8aHHAtU
8pkM6ZAszxxK1pQDjf6osD16flhCs47ZD/zWQruWUHoH2WBqrL8ZIgxudt3pxlz4
tGadojen8BQCanyUOyvVYVRKYils3397x30W8q1Yh8NMh+cnvLGvTFfvV9NTmR5R
+1gCqi0fquls7yR3AduiCp0GuMSrWBhyMTUW3KkzEW7MIZfdZSYO6GcgEXCrZvv7
3qkbXVCYe8TsuJnTB1DCO1ZULP/deNkGZJ6oU9B6aN1fhlnv4wfPPYd2HZBX0ySQ
0zg4c2o6NBwLwnfBgYMFLRpTr/MAq4YJJNhtQ0sk+ToZlWBNIHM1vID46Z4T4+Rt
8mTOvV1UBJuQyagMxUGPPuIbdRYKA56LTcScrlJcQrOJIcZMpav77rCzi+L+5wn+
mD0hLG33/1a5N/Qv9HufselCMvRLYRCHcps3X3ypcHqpUNBXvdpcR4fRCsaZve4V
M/VW3LbSVaxnz1o2i07soiLtvuweHQfB480pPTqzGG58Ptk3tqrRkafy2VqJhG5a
4Sx/Gy4vuc+NnMCEcET5
=ns7p
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: How do I disable polkitd?

2012-11-22 Thread Germán A. Racca

On 11/22/2012 05:30 PM, lee wrote:

Reindl Harald  writes:


Am 21.11.2012 15:58, schrieb lee:

Hi,

it seems systemctl doesn't know about polkitd though pstree shows it as
started by systemd.  There don't seem to be files for starting polkitd
in /etc.  It cannot be removed because almost 600 packages depend on it
:(

So how do I disable it?


easy answer: you can't it is fired up by dbus


Hmm, then I'd have to kill the daemon and rename or delete it.


you can try "systemctl mask"


Systemctl doesn't seem to know about it, and there doesn't seem to be a
unit file for it.


or LIVE with how the distribution is supposed to work - on
installations without a GUI it does not get started at all


And be stuck with gnome and a lot of other stuff I don't need and
without lots of stuff I do need?  I'd be better off with windoze then.



So what do you expect? That Gnome/Fedora team develop a 
desktop/distribution only to fit your needs?


--
Germán A. Racca
Fedora Package Maintainer
https://fedoraproject.org/wiki/User:Skytux
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: What are these for?

2012-11-22 Thread lee
Ian Malone  writes:

> On 21 November 2012 14:38, lee  wrote:
> I don't pretend to have the answers to all your questions, but:
>
>> Matthew Miller  writes:
>>
>>> On Wed, Nov 21, 2012 at 12:37:47PM +0100, lee wrote:
>
>>> By only asking for and using privileged access when required. That's a
>>> fundamentally good idea.
>>
>> And how do you know or make sure that some software uses your password
>> only for that?
>>
>
> You don't really, but this is why policy kit is supposed to handle the
> authentication and tell you what access is being requested.

So it's a means of giving users a false impression of being secure.

 > For example, a timezone applet can show you the time as a regular user
 > and only require extra authentication to change it.
 Regular users must not change the system time.  It's on UTC and kept on
 track with chrony.
>>>
>>> Well, exactly. That's why you would need extra authentication to change it.
>>
>> Users are not supposed to change it at all, not even with extra
>> authentication.
>>
>
> How does it ever get changed then?

I set it in the BIOS if needed and chrony keeps it on track.

> You might answer that you use ntpd (in which case you are trusting
> people on the internet),

Time, in this context and for practical purposes, is merely something
ppl have agreed on.  I don't really see where trust is involved with
that.

> but not all systems can (maybe no net access or embedded) or do all
> the time.

Then they might find other ways to deal with setting the time, or just
don't set it, whatever is needed.

> In theory if you really wanted to lock it down you could. Except root
> can change it and root *is* a user.

I don't need to lock it down, it already is by default.  Root is the
only user who can change the time, letting aside circumventing it by
setting it in the BIOS or booting something to change it.  It wasn't my
example, and I don't think it's a good one.

I only wanted to know if I need to run polkitd and what benefits it has
for me to do that and if I can disable it because I don't want to waste
resources with running things I don't need.

 > However, if you don't want or need this functionality, applications
 > are supposed to gracefully fall back to requiring root.
 So for example instead of ls or emacs becoming only 1/4 root, I would
 have to run them as root?  And if I don't run them as root, I'd have to
>>>
>>> Since neither ls nor emacs is written to use polkit, running them as root
>>> when you need to access a particular file is in fact the only option you
>>> have.
>>
>> Then polkit doesn't do me any good.  Even if emacs and ls were using it,
>> it would be very annoying having to enter a password all the time.
>>
>
> But not all the time. You don't use you password to run emacs, emacs
> asks for permission to do something if it needs it, polkit looks at
> the request and whether the user is allowed to give it that permission
> and if so asks the user if it's okay.

Why not all the time?  I could have forgotten to lock my screen, so
emacs would have to ask if it is allowed to display a buffer ...

Is it ok for emacs (i. e. gnus) to mail out (parts of) my diary to
someone or does it need to ask for permission?  Is it ok for gnus to let
me answer your posting or does it need to ask for permission?  Perhaps
it's someone else doing it or perhaps what I'm sending contains security
relevant information --- and that information might even be added only
later by the MTA giving away my IP address.  Perhaps the MTA needs to
ask for permission to handle every single mail that goes through it?

Who decides?  How do I know that every application using polkit does
only what it's supposed to do?

 Neither ls nor emacs ever asked me for extra authentication.  And how
 would it increase security if I entered the password for root into
 arbitrary applications whenever they ask me for it?
>>>
>>> It wouldn't. In a GUI, polkit has a distinctive, separate dialog box it uses
>>> to ask for authentication. It's absolutely true that spoofing this sort of
>>> dialog is a concern.
>>
>> So yes, it decreases security instead of increasing it.
>>
>
> ?
> "distinctive, separate dialog box" and "spoofing this sort of dialog
> is a concern."
> The answer to that is to prevent spoofing. If your GUI is compromised
> then what you type is compromised too.

And when you prevent spoofing and when every application only does what
it's supposed to, then why would you need polkit?

How closely do users look at just another dialog box and how much
attention do they pay to them?

 It certainly does decrease security getting users used to enter the root
 password everywhere.  Polkit should be deprecated.
>>>
>>> In the typical configuration on Fedora, users in the `wheel` group are asked
>>> to provide their *own* password for this sort of access.
>>
>> What difference does it make which password is supplied when with the
>> password things can be d

Re: How do I disable polkitd?

2012-11-22 Thread lee
Reindl Harald  writes:

> Am 21.11.2012 15:58, schrieb lee:
>> Hi,
>> 
>> it seems systemctl doesn't know about polkitd though pstree shows it as
>> started by systemd.  There don't seem to be files for starting polkitd
>> in /etc.  It cannot be removed because almost 600 packages depend on it
>> :(
>> 
>> So how do I disable it?
>
> easy answer: you can't it is fired up by dbus

Hmm, then I'd have to kill the daemon and rename or delete it.

> you can try "systemctl mask"

Systemctl doesn't seem to know about it, and there doesn't seem to be a
unit file for it.

> or LIVE with how the distribution is supposed to work - on
> installations without a GUI it does not get started at all

And be stuck with gnome and a lot of other stuff I don't need and
without lots of stuff I do need?  I'd be better off with windoze then.


-- 
Fedora 17
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: What are these for?

2012-11-22 Thread lee
Reindl Harald  writes:

> Am 21.11.2012 15:38, schrieb lee:
>> Matthew Miller  writes:
>>> Because the syslog interface isn't secure. 
>> 
>> How come?  Only root can read the logfile.
>
> THE INTERFACE
>
> it is not trustable which process generates / fakes a record
> also you do not want all from /var/log/secure mixed in messages

Hm yes, that's true.

>>> That's a classic sysadmin's dilemma. It would be nice to have some good open
>>> source processing, analysis, and correlation tools.
>> 
>> Since we don't have them, how useful is it?
>
> useful enough because /var/log/secure is a more sensible
> thing than "normal" messages from /var/log/messages

What I mean is:  How useful is it when we never do anything with these
messages?

 Will it at least send me an email when something happens I should know
 about?
>>>
>>> You could configure it that way.
>> 
>> Is there some documentation about this?
>
> man crontab
> man grep
> man echo
>
> any output from a application / script started via crond
> goes into a mail to root

It goes to the user who created the crontab.  What messages would I want
to see?

>> And how do you know or make sure that some software uses your password
>> only for that?
>
> if you do not trust the author do not use the software
>
> but you refuse to understand the main difference having
> things permanently running as root or only request root
> pwd if it is really needed AND you can refuse to permit

No, I'm seeing the difference and ask myself how relevant that is.

With polkit, something requests the root password to do something and
something happens in the background or maybe not and in any case I don't
really know what's going on or not and what happens with the password.

With su, I have bash running as root in one of the windows in tmux and
everything I do from there runs as root.  I'm not giving away the
password other than to su and there aren't any hidden things that might
or might not happen in the background.

In both cases, "bad" software could do harm.  So what's the relevant
difference?

>> Users are not supposed to change it at all, not even with extra
>> authentication.
>
> so read manpages and restrict if things are allowed
> the sudo way with users password and for the things
> needing the root password: they CAN'T at all
>
>> Then polkit doesn't do me any good.  Even if emacs and ls were using it,
>> it would be very annoying having to enter a password all the time.
>
>>> It wouldn't. In a GUI, polkit has a distinctive, separate dialog box it uses
>>> to ask for authentication. It's absolutely true that spoofing this sort of
>>> dialog is a concern.
>> 
>> So yes, it decreases security instead of increasing it.
>
> NO how do you come to that conclusion?

It gets users used to just enter their password whenever they are asked
for it.

> it is about you if you enter root password in a randomly popping up
> window

Yes, and once users are used to do that, they just do it.

>> What difference does it make which password is supplied when with the
>> password things can be done that are relevant for security?  Why should
>> I give my password again when I'm already logged in and the system knows
>> who I am?
>
> what about drive-by-attacks?

I don't know what you mean by that.

> what about leave the room for a minute and forget lock the screen?

If I had to lock the screen, I would.  Other than that, with physical
access to a computer the person having it can do whatever they want
anyway.

> what about malware trying things with your current permissions

It can do that in any case.

> ANY security relevant task has to be confirmed with
> a password independent if you are logged in or not

Starting/running a web browser is a security relevant task.  "Web
browser" is only a place holder.  Fill in other software that might be
security relevant.

I'm running the web browser as a different user so it doesn't have
access to my data.  I have another application that I would like to run
as a different user but I can't because that user doesn't have access to
sound for unknown reasons.  It must be some sort of messy setup that
Fedora has, trying to make something more secure and achieving the
opposite; it worked fine with Debian.  Do you have any idea how to solve
this problem?

>> The alternate implemantation is su.  It's much simpler and more secure
>> already by being much simpler than polkit.  It's also much more
>> efficient.  Polkit is insecure by design because it gets users used to
>> enter their password everywhere.
>
> users entering their password EVERWHERE have already lost
> ANY security fight - sorry, but this argumentation is invalid
> because ORDINARY user tasks do NOT request a password

Your logic is flawed.  It doesn't matter that some things don't require
entering a password.  (On a side note: Starting a web browser or
starting emacs would require a password because a web browser is a
security risk and because emacs could display and modify files th

Re: What is minimal Fedora install?

2012-11-22 Thread lee
Robert Moskowitz  writes:

> On 11/21/2012 02:08 PM, Matthew Miller wrote:
>> On Wed, Nov 21, 2012 at 09:51:33AM -0500, Robert Moskowitz wrote:
>>> Servers below 3Gb, but workstations?  KDE is smaller than Gnome (but
>>> then I would be using different desktops).
>> Yeah. Going from my mostly-minimal cloud install to Gnome Desktop took me
>> from 707MB to 3.2GB on disk. (And had to be done in two transactions because
>> there wasn't enough room in my 4GB disk for yum to both download and install
>> the package set.)
>>
>> However, XFCE from the same minimal base goes to only 2.2GB, leaving a
>> little breathing room. Alternately, LXDE is only 1.9G total.
>>
>> You could also eschew a modern desktop environment and go more minimal, just
>> installing a window manager plus applications you need.
>
> In truth, the purpose of the ee701 is to view mp4 lectures.  I use VLC
> to view these.  I tried to use mplayer, but it needed the mp4 codec
> and the install failed.  So I would either have to add VLC to the mix,
> or figure out why the mplayer codec install failed.
>
> So anyway, what window manager to you recommend?

I recommend either fvwm or i3.  You may also want to look into
fvwm-crystal if you want something pre-configured and don't want to
bother with it yourself.  Once you get the hang of it, fvwm is fun to
configure.  There's a mailing list for fvwm.

i3 is a tiling window manager and may take some getting used to if
you're used to floating WMs.  It's very well thought out and very
efficient.  You don't really need to configure it and you can keep the
configuration to a minimum.  They have a video that gives you an
impression and an irc channel for support.


For your application, i3 is probably better suited than fvwm: Fvwm is
extremely flexible and you can configure it to whatever you need and
like and it's really fun and you can play around with all your windows.
You can even configure it to sort-of tile your windows.  It can be
annyoing because you never really find an optimal placement for your
windows and it's getting in the way.

I3 manages your windows so you don't need to do that yourself.


-- 
Fedora 17
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: What are these for?

2012-11-22 Thread lee
Matthew Miller  writes:

> On Wed, Nov 21, 2012 at 03:02:54PM +, Alan Cox wrote:
>> > And what if the user in the wheel group wants to use emacs to edit some
>> > configuration file that can only be modified by root?
>> They can use su if they want to use emacs for it.
>
> Or better, set VISUAL=emacs and run `sudo -e`, which was designed for this
> purpose. (And which, by the way, will work out of the box on Fedora for
> members of the wheel group.)

In which way is that better?

That will probably create an emacs frame rather than running it in the
terminal in tmux where I want it, and it won't allow me to use job
control to put it into the background while I need the terminal to do
other things.  Thanks to tmux, I don't need to re-log when I have to
leave the X-session.  MOTT, roots emacs is suspended.


-- 
Fedora 17
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: What are these for?

2012-11-22 Thread lee
Joe Zeff  writes:

> On 11/21/2012 06:38 AM, lee wrote:
>> And how do you know or make sure that some software uses your password
>> only for that?
>
> Use only software from the Fedora repos and trust the devs to do their jobs.

Not all the software I need is in these repos.


-- 
Fedora 17
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Can't get rpmbuild to work with gpg-agent

2012-11-22 Thread Guido Winkelmann
Hi,

I'm trying to package some software with rpmbuild and signing the packages at 
the same time. I'm following the guide found here:

http://www.ibm.com/developerworks/library/l-rpm3/

It mostly works - I do get properly signed RPMs at the end - however, despite 
running gpg-agent, rpmbuild keeps asking for my (lengthy) GPG-passphrase every 
single time it is finished with a spec-file. This can be particularly annoying 
when building very large packages, because, instead of asking again, rpmbuild 
will abort the entire process if I mistype the passphrase even once. If I run 
rpmbuild again after that, it will build the whole package over again...

I have started gpg-agent (as a normal user) with

gpg-agent --daemon --enable-ssh-support \
--write-env-file "${HOME}/.gpg-agent-info"

I have put the following lines

if [ -f "${HOME}/.gpg-agent-info" ]; then   

  
  . "${HOME}/.gpg-agent-info"   

  
  export GPG_AGENT_INFO 

  
  export SSH_AUTH_SOCK  

  
  export SSH_AGENT_PID  

  
fi  

  


  
GPG_TTY=$(tty)  

  
export GPG_TTY

at the end of my .bashrc, and also manually run them in my current shell. The 
env command tells me it knows of the variables GPG_AGENT_INFO, SSH_AGENT_PID, 
SSH_AUTH_SOCK, and GPG_TTY, with plausible looking values in all cases. When I 
just run gpg-agent in my current shell with no parameters, it tells me "gpg-
agent: gpg-agent running and available". I'm running rpmbuild like this:

rpmbuild -ba --sign rpmbuild/SPECS/

What am I still missing?

Guido
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


mostly OT: mount usb connection

2012-11-22 Thread Ranjan Maitra
Hi,

Sorry to post this here, but having struggled for over 36 hours
including turning to Windoze (complete waste of time, no joy) I thought
that someone may have some suggestions on what to do. 

I am using F17 (LXDE) but this is not really the issue here. 

So, I had this old Arnova 10 tablet which I wanted to unroot, and
install Android 2.2 (from 2.1) so I flashed the apprpriate image using
the USB connection and all appeared well. 

However, during the touchscreen calibration stage, the calibration did
not get done correctly (or much at all from what I can tell). Looking
around, this seems to be happen and the way to get around it is to go
in and remove the necessary files. The trouble however is that I can no
longer mount the USB so I can not enter the device. When I mount the
USB onto my F17, I get the following:

Bus 001 Device 006: ID 0bb4:0c02 High Tech Computer Corp. Dream /
ADP1 / G1 / Magic / Tattoo (Debug)

however, this does not get mounted. Actually, the screen of the tablet
says "USB connected" but unfortunately also "USB debugging connected".
(And the latter is the problem: the issue appears to be that the latter
has to be disabled, which can only be done using the touchscreen, which
is not recognized.) Btw, I can not attach a mouse or a keyboard to the
tablet either because the USB mode has to be activated (done using a
touchscreen again). Also, there is some paperclip press on some reset
hole that should reset the device to factory settings, but absolutely
nothing happens (my fingers become sore from pushing the clip
interminably).

Question: is there a way to "force" linux (F17) to mount the USB as a
storage device? I understand the naivette of this question, but is
something else possible?

Sorry again for the OT nature of this post, but I am at a loss. (I so
much prefer the reliability of a physical keyboard)

Many thanks and best wishes,
Ranjan


-- 
Important Notice: This mailbox is ignored: e-mails are set to be
deleted on receipt. For those needing to send personal or professional
e-mail, please use appropriate addresses.


FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your 
desktop!
Check it out at http://www.inbox.com/marineaquarium


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: failing drives or false positives

2012-11-22 Thread JD
On Thu, Nov 22, 2012 at 8:13 AM, Brian West  wrote:

> Hi everyone
>
> yesterday i began receiving messages from one  of my drives in my hard
> drive dock that it could be failing.  so i tested my notebooks drive and
> the docked drive in question both said tests completed without error both
> short and extended tests were performed is my drive really failing or is
> this a false positive.  logs for each drive are below what really gets me
> is both of the drives give the exact same output for the most part should i
> be concerned?  Thanks in advance for your time.
>
> Brian West
>

You did not append the error messages you say you are getting.
I too am having drive errors in the system log.
Interested in your log or error messages in /var/log/messages.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[389-users] NSMMReplicationPlugin - repl_set_mtn_referrals

2012-11-22 Thread Andreas Kekkou

Hi,

I have recently deleted and recreated the MMR between my two server and 
since then the following message is appearing in the error log:


NSMMReplicationPlugin - repl_set_mtn_referrals: could not set referrals 
for replica dc=xxx,dc=xxx,dc=xxx,dc=xxx: 32


When the MMR has been deleted the referrals has not been cleared 
automatically and I have removed them manually, but I don't remember 
exactly the syntax. I need some help adding them back.


Regards,
Andreas



<>

smime.p7s
Description: S/MIME Cryptographic Signature
--
389 users mailing list
389-us...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Re: [389-users] SO kills ns-ldapd because of memory usage

2012-11-22 Thread Moisés Barba Pérez
Hi,

I have been searching for memory usage in the server. This are the results:

389-ds 1.2.5 in a CentOS 5.5 64bits 4GB ram and 6GB swap

* The ns-slapd proccess reaches 11GB of virtual memory. pmap shows multiple
[anon] using the bigger part of that 11G virtual memory. I think the [anon]
are memory reservation from malloc and mmap but I don't know what call this.

* Looking for cachememsize using this search for one of the database

ldapsearch -H ldaps://localhost -x -LLL -b "cn=monitor,cn=o_,cn=ldbm
database,cn=plugins,cn=config" -D "cn=Directory Manager" -W
"(objectclass=*)" | grep entrycache
Enter LDAP Password:
entrycachehitratio: 99
currententrycachesize: 49973691
maxentrycachesize: 125829120
currententrycachecount: 6521
maxentrycachecount: -1

I have prime that database searching all entries with -> ldapsearch -H
ldaps://localhost -x -LLL -b "o=cabu,dc=sacyl,dc=es" -D "cn=directory
manager" -W "(objectclass=*)" 1.1 | grep dn: | wc -l
The result is 7610 entries in that database, so looking the monitor again:

currententrycachesize: 59315175
maxentrycachesize: 125829120
currententrycachecount: 7611

The id2entry.db4 for that database is 59539456 so I guess I can reduce the
cachememsize from 125829120 to about 6000 Correct me if I am wrong.
And the same for all the another database.

* Now dbcachesize:

ldapsearch -H ldaps://localhost -x -LLL -b "cn=monitor, cn=ldbm database,
cn=plugins,cn=config" -D "cn=Directory Manager" -W "(objectclass=*)"  |
grep dbcache
Enter LDAP Password:
dbcachehits: 1440910461
dbcachetries: 1440919648
dbcachehitratio: 99
dbcachepagein: 9187
dbcachepageout: 128041
dbcacheroevict: 9265
dbcacherwevict: 0

In some place I have read that dbcacheroevict and dbcachepageout should be
0 or increase the dbcachesize but if the ratio is 99 that should be ok,
right?

The thing is, if i search with db_stat for cache statistics says ratio=99

db_stat -h /var/lib/dirsrv/slapd-xxx/db/ -m
0 Total cache size
1 Number of caches
800MB Pool individual cache size
0 Maximum memory-mapped file size
0 Maximum open file descriptors
0 Maximum sequential buffer writes
0 Sleep after writing maximum sequential buffers
0 Requested pages mapped into the process' address space
1448M Requested pages found in the cache (99%)
9588 Requested pages not found in the cache
112 Pages created in the cache
9588 Pages read into the cache
129932 Pages written from the cache to the backing file
9668 Clean pages forced from the cache
1 Dirty pages forced from the cache
0 Dirty pages written by trickle-sync thread
98066 Current total page count
98005 Current clean page count
61 Current dirty page count
131071 Number of hash buckets used for page location
1447M Total number of times hash chains searched for a page (1447895423)
5 The longest hash chain searched for a page
2819M Total number of hash buckets examined for page location (2819107178)
932 The number of hash bucket locks that required waiting (0%)
86 The maximum number of times any hash bucket lock was waited for
1 The number of region locks that required waiting (0%)
9728 The number of page allocations
60012 The number of hash buckets examined during allocations
1381 The maximum number of hash buckets examined for an allocation
9669 The number of pages examined during allocations
1 The max number of pages examined for an allocation

If I look for an index like inetuserstatus (pres and eq) I get "Requested
pages found in the cache" less than 99% so I search for "inetuserstatus=*"
(pres) and "inetuserstatus=active", "inetuserstatus=inactive" (eq) but the
"requested pages" don't reaches the 99  or 100% and there is no more
possibilities for that index.


The thing is, why ns-sldapd is growing to consume all the swap and all the
ram memory the SO lets it.
Any idea or suggestion???



2012/11/15 Ludwig Krispenz 

>  you could use
> ldapsearch ... -b  "cn=ldbm database,cn=plugins,cn=config" "cn=monitor"
> currententrycachesize
>
> to monitor the usage of the entrycache.
> But be aware that the process uses more memory than just the caches and
> the memory manager can also generate some overhead.
>
> Regards,
> Ludwig
>
>
> On 11/15/2012 02:55 PM, Moisés Barba Pérez wrote:
>
> yes, thats correct, but shouldn't use all that memory because don't need
> so much memory
>
>
> 2012/11/15 Ludwig Krispenz 
>
>>  Hi,
>>
>> On 11/15/2012 01:54 PM, Moisés Barba Pérez wrote:
>>
>> Hi,
>>
>>  I have a memory issue with 389-ds 1.2.5 in a CentOS 5.5 64bits 4GB ram.
>>
>>  The server swaps when the server physical memory increase over 75%
>> approx. When the swap is full the server reaches 100% of physical memory
>> and the SO kills the ns-ldapd process.
>>
>>  Out of memory: Killed process 30383, UID 99, (ns-slapd).
>>
>>  The cache sizes are:
>>
>>  nsslapd-dbcachesize: 838860800
>> nsslapd-import-cachesize: 2000
>> nsslapd-cachememsize: 125829120 (for each 26 db)
>>
>>  do you mean you have 26 db backends with 125MB entrycache each ? So you
>> would reach 3.2GB for entry

[389-users] Changelog encryption

2012-11-22 Thread Andreas Kekkou

Hi,

Is the changelog encryption option available on CentOS Directory Server 
8.2? I have followed the instructions from 
http://directory.fedoraproject.org/wiki/Changelog_Encryption without any 
luck.


Regards,
Andreas
<>

smime.p7s
Description: S/MIME Cryptographic Signature
--
389 users mailing list
389-us...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

failing drives or false positives

2012-11-22 Thread Brian West

Hi everyone

yesterday i began receiving messages from one  of my drives in my hard 
drive dock that it could be failing.  so i tested my notebooks drive and 
the docked drive in question both said tests completed without error 
both short and extended tests were performed is my drive really failing 
or is this a false positive.  logs for each drive are below what really 
gets me is both of the drives give the exact same output for the most 
part should i be concerned?  Thanks in advance for your time.


Brian West

notebook drive
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.6.6-1.fc17.x86_64] (local 
build)

Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family: Western Digital Scorpio Blue Serial ATA (Adv. Format)
Device Model: WDC WD3200BPVT-75ZEST0
Serial Number:WD-WXH1AA0P0390
LU WWN Device Id: 5 0014ee 205307af1
Firmware Version: 01.01A01
User Capacity:320,072,933,376 bytes [320 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Device is:In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:Thu Nov 22 02:41:01 2012 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status:  (   0)The previous self-test 
routine completed

without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 7200) seconds.
Offline data collection
capabilities:  (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities:(0x0003)Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability:(0x01)Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time:  (   2) minutes.
Extended self-test routine
recommended polling time:  (  86) minutes.
Conveyance self-test routine
recommended polling time:  (   5) minutes.
SCT capabilities:(0x7035)SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME  FLAG VALUE WORST THRESH TYPE UPDATED  
WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate 0x002f   200   200   051Pre-fail 
Always   -   1
  3 Spin_Up_Time0x0027   150   145   021Pre-fail 
Always   -   1458
  4 Start_Stop_Count0x0032   100   100   000Old_age 
Always   -   680
  5 Reallocated_Sector_Ct   0x0033   183   183   140Pre-fail 
Always   -   130
  7 Seek_Error_Rate 0x002e   200   200   000Old_age 
Always   -   0
  9 Power_On_Hours  0x0032   081   081   000Old_age 
Always   -   14589
 10 Spin_Retry_Count0x0032   100   100   000Old_age 
Always   -   0
 11 Calibration_Retry_Count 0x0032   100   100   000Old_age 
Always   -   0
 12 Power_Cycle_Count   0x0032   100   100   000Old_age 
Always   -   675
191 G-Sense_Error_Rate  0x0032   001   001   000Old_age 
Always   -   192473
192 Power-Off_Retract_Count 0x0032   200   200   000Old_age 
Always   -   198
193 Load_Cycle_Count0x0032   001   001   000Old_age 
Always   -   637003
194 Temperature_Celsius 0x0022   090   080   000Old_age 
Always   -   53
196 Reallocated_Event_Count 0x0032   140   140   000Old_age 
Always   -   60
197 Current_Pending_Sector  0x0032   200   200   000Old_age 
Always   -   0
198 Offline_Uncorrectable   0x0030   100   253   000Old_age 
Offline  -   0
199 UDMA_CRC_Error_Count0x0032   200   200   000Old_age 
Always   -   0
200 Multi_Zone_Error_Rate   0x0008   200   200   000Old_age 
Offline  -   0
240 Head_Flying_Hours   0x0032   081   081   000Old_age 
Always   -   14238
241 Total_LBAs_Written  0x0032   200   200   000Old_age 
Always   -   46363867885
242 Tota

Re: What are these for?

2012-11-22 Thread Marko Vojinovic
On Wed, 21 Nov 2012 15:38:25 +0100 lee  wrote:
> Matthew Miller  writes:
> > On Wed, Nov 21, 2012 at 12:37:47PM +0100, lee wrote:
> >> > For example, a timezone applet can show you the time as a
> >> > regular user and only require extra authentication to change it.
> >> Regular users must not change the system time.  It's on UTC and
> >> kept on track with chrony.
> >
> > Well, exactly. That's why you would need extra authentication to
> > change it.
> 
> Users are not supposed to change it at all, not even with extra
> authentication.

System time is not the hardware clock (which is always on UTC), but
rather UTC plus local timezone offset. Changing the timezone is a
common thing when traveling with a laptop, and it requires extra
authentication.

> What difference does it make which password is supplied when with the
> password things can be done that are relevant for security?  Why
> should I give my password again when I'm already logged in and the
> system knows who I am?

Someone else might sit in front of your machine while you are
momentarily away, and try to perform some security-related operation.
The system needs to make sure it is really you, every time, regardless
of the fact that you are already logged in.

> > If you have an alternate implementation that solves the problems
> > polkit was meant to solve in a demonstrably better way, develop the
> > code and propose it as a Feature for a future Fedora.
> 
> The alternate implemantation is su.  It's much simpler and more secure
> already by being much simpler than polkit.  It's also much more
> efficient.  Polkit is insecure by design because it gets users used to
> enter their password everywhere.

If you do a "su -c someapp", than that app runs with root privileges,
and *everything* it does --- it does as root. When an app interacts
with polkit, after you provide the root password, polkit allows the app
to do *only* *one* *particular* *action* as root, rather than
everything. So the app can elevate its privileges in a more controlled
way, only when necessary and only for what is necessary.

HTH, :-)
Marko


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Getting rid of nepomukserver

2012-11-22 Thread Gabriel VLASIU
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 21 Nov 2012, R. G. Newbury wrote:

> I have turned off 'Desktop Search' in Settings. I have deleted all executables
> in /usr/bin with 'nepomuk' in the name (and virtuoso). I have nuked the
> nepomuk folders hiding down in ~/.kde.
> But after I rebooted I *still* ended up with a 'nepomukserver' running.
> ps -aux says it is started by kde4init. Setting 'autostart' to false in
> /usr/share/./autostart/nepomukserver.desktop
> stops that from happening, but *where* is the executable instance which
> kdeinit is starting? I wish to nuke it too.

System Settings -> Startup and Shutdown -> Service Manager. Uncheck 
Nepomuk Search Module.

Login and Logout if required. No need to "nuke" anything. Well, maybe 
virtuoso.


Gabriel

- -- 

// Gabriel VLASIU
//
// OpenGPG-KeyID  : 44952F15
// OpenGPG-Fingerprint: 4AC5 7C26 2FE9 02DA 4906  24B2 D32B 7ED7 4495 2F15
// OpenGPG-URL: http://www.vlasiu.net/public.key


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJQrevJAAoJENMrftdElS8V0VIP/2NZ9hzuFl0Kwq5SIq2xV6lR
eoihWQJ9WJVjMcif1tmSn1qQBJT/QFuLS0lQcm3hUo3g2ILYMOX9mZnuLPtREKrJ
v/LdWgLAReMa9OmhH3qWhQ/VR5lBqRjV5Y+yfFogrJXlpQqDgnhS8GAGRhtjjJBg
tolDF3tEYABDWOP+HoSyurNn8rSUY3MBobJ0wcReL4cDyTTGAEgXMB6mX4GC3OTp
ix8TKqEOHI6yJScrjF4KN6bSy3XLFVDF1CIXw2FKFQpMI/SPbKBvPlUjZwdHmUu7
zwXZpCtMj33wIu850z1FvHzoxuqpthjjAiJ585W9gX8/fhniDTTXb3JiLbivN6wS
hubY9L5MAxQqPQV6Yq/7aE+XC68MEPwUXX7CnX0AZdRz3bmp2ifKk7AeasXGghW1
iJaTw+v9EF1xVgEmuJuAVEoZ3oaC/a2hFu6HRPBzdrxR7qSj7DsvNF3H7HFHToGr
hDkcAx83LPUuZwYJQTAIwnw7fgXRTuQOwfukADdFR/BUqXTi5s7sf4jDIvmlWr95
rUg+2d3011LOY0xBPdIvCDiL/euAJCKYwrG5lJ7EtwTm45u+AiHZuqJ2G0gDY5Y/
7UB5WnzhIudwzezTI+q9xi/Mi+bnPWG7Hgx+WddTWW6UDgWAsM/auKA9wVhEmhLa
DCL/MYHu1uddb2SdnVf9
=2V1K
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org