On 15.05.12 16:48, Kent A. Reed wrote:
> On 5/15/2012 4:12 PM, dave wrote:
> > dave@dsk:~$ cd /media
> > dave@dsk:/media$ chmod 0777 -v -R -f Lexar
> > mode of `Lexar' changed to 0777 (rwxrwxrwx)
> > dave@dsk:/media$ fdisk /media/Lexar
> > last_lba(): I don't know how to handle files with mode 40700
> > You will not be able to write the partition table.
> >
> > cfdisk simply reports "no write perms".
> 
> Haven't run into this but then I've never had to chmod a USB stick. If 
> push comes to shove I suppose you could use a Windows system to reformat 
> the drive and then start again in Ubuntu, but that seems excessive.

Oooh, it shouldn't ever be necessary for push to shove that far. :-)
(But then I've never had an M$ box, either.)

Kent, what is the fs_type on your USB stick? Stuffing the nearest Lexar
stick into a USB socket, I tried the "problem" command:

$ cp -p /tmp/fetchmail_log /media/backup_4/
$ ll !$fetchmail_log
-rw-r--r-- 1 erik erik 7797 2012-05-16 18:40 /media/backup_4/fetchmail_log

$ chmod 0777 /media/backup_4/fetchmail_log      # <-- HERE --<

$ ll /media/backup_4/fetchmail_log
-rwxrwxrwx 1 erik erik 7797 2012-05-16 18:40 /media/backup_4/fetchmail_log*

Smoooooth as silk. Maybe your Lexar is stubborn. What happens if you
give it another go?

The first thing I do with any flash stick which comes my way is format
it as ext3, on linux¹:

# mkfs.ext3 /dev/sdd1

then label it:

# e2label /dev/sdd1 backup_1      # 16 characters max.

then mount it, and:

# chown -R erik.erik /media/backup_1

That has done a bunch of various brands, including two 8GB Lexars, which
are my front line devices now. They've never missed a beat.

If we gang up on yours, it'll probably give in.

Erik

¹ Either "fdisk -l" or "mount" identifies the device. If the latter,
  then unmount the drive before formatting. (I figure you know
  that, so just for the record. :-)
  
-- 
Sometimes you have to outsmart this stuff, it works for Murphy you know.      
- Gene Heskett, on emc-users ML, on PE swelling when tapping a thread.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to