[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: USB flash drive: permissions, etc.



On 28/05/10 14:26, d.sastre.medina@gmail.com wrote:
On Fri, May 28, 2010 at 10:42:22AM -0400, john wrote:
I can no longer read or write or even unmounted  a USB flash drive.

Something happened during the last two weeks. I am using squeeze and
regularly upgrade on a daily basis. The only change to the system I can
recall was debfoster run during that period where I deleted some 4 or
five libraries.

-------------snip

Hello,

Please provide more info, i.e. what does mount says when the USB stick
is plugged in? fdisk -l output would be helpful too. The ouput of tail
-f /var/log/messages when plugging in the USB stick can be informative
too.

Regards.


here is the aditional information.:

john@debian:~/Desktop$ umount /media/usb0
umount: /media/usb0 is not in the fstab (and you are not root)
john@debian:~/Desktop$ fdisk -l
bash: fdisk: command not found
john@debian:~/Desktop$ su
Password:
root@debian:/home/john/Desktop# umount /media/usb0
root@debian:/home/john/Desktop# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000253f3

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2432    19535008+  83  Linux
/dev/hda2            2433        3648     9767520   83  Linux
/dev/hda3            3716        9729    48307455   83  Linux
/dev/hda4            3649        3715      538177+  82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/hdb: 15.3 GB, 15301836800 bytes
255 heads, 63 sectors/track, 1860 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00042a3a

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1        1860    14940418+  83  Linux
root@debian:/home/john/Desktop# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000253f3

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2432    19535008+  83  Linux
/dev/hda2            2433        3648     9767520   83  Linux
/dev/hda3            3716        9729    48307455   83  Linux
/dev/hda4            3649        3715      538177+  82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/hdb: 15.3 GB, 15301836800 bytes
255 heads, 63 sectors/track, 1860 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00042a3a

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1        1860    14940418+  83  Linux

Disk /dev/sda: 2079 MB, 2079850496 bytes
64 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 3968 * 512 = 2031616 bytes
Disk identifier: 0x6f20736b

This doesn't look like a partition table
Probably you selected the wrong device.

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   ?      196103      483782   570754815+  72  Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(357, 116, 40) logical=(196102, 51, 11)
Partition 1 has different physical/logical endings:
     phys=(357, 32, 45) logical=(483781, 40, 51)
Partition 1 does not end on cylinder boundary.
/dev/sda2   ?       42513      530423   968014120   65  Novell Netware 386
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(288, 115, 43) logical=(42512, 30, 47)
Partition 2 has different physical/logical endings:
     phys=(367, 114, 50) logical=(530422, 52, 42)
Partition 2 does not end on cylinder boundary.
/dev/sda3   ?      471241      959151   968014096   79  Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(366, 32, 33) logical=(471240, 18, 30)
Partition 3 has different physical/logical endings:
     phys=(357, 32, 43) logical=(959150, 39, 39)
Partition 3 does not end on cylinder boundary.
/dev/sda4   ?      727239      727253       27749+   d  Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(372, 97, 50) logical=(727238, 12, 25)
Partition 4 has different physical/logical endings:
     phys=(0, 10, 0) logical=(727252, 11, 33)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order
root@debian:/home/john/Desktop#

root@debian:/var/log# tail -f messages
May 28 18:26:29 debian kernel: [21978.475036] usb 1-6: SerialNumber: 35A3FB06093932140607 May 28 18:26:30 debian kernel: [21978.477058] usb 1-6: configuration #1 chosen from 1 choice May 28 18:26:30 debian kernel: [21978.481514] scsi3 : SCSI emulation for USB Mass Storage devices May 28 18:26:35 debian kernel: [21983.481527] scsi 3:0:0:0: Direct-Access LEXAR JD FIREFLY 1100 PQ: 0 ANSI: 0 CCS May 28 18:26:35 debian kernel: [21983.486491] sd 3:0:0:0: [sda] 4062208 512-byte logical blocks: (2.07 GB/1.93 GiB) May 28 18:26:35 debian kernel: [21983.487225] sd 3:0:0:0: [sda] Write Protect is off
May 28 18:26:35 debian kernel: [21983.496254]  sda:
May 28 18:26:35 debian kernel: [21983.562404] sd 3:0:0:0: [sda] Attached SCSI removable disk May 28 18:26:35 debian usbmount[10512]: executing command: mount -tvfat -osync,noexec,nodev,noatime,nodiratime /dev/sda /media/usb0 May 28 18:26:35 debian usbmount[10512]: executing command: run-parts /etc/usbmount/mount.d


Thanks.

John


Reply to: