FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 05-28-2010, 02:42 PM
john
 
Default USB flash drive: permissions, etc.

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.


The only other clues I have are the options, "safely remove usb" and
"eject" have disappeared from nautilus (right click).


I recall this happening to me some 2 years ago, but I have mislaid the
solution. Searches through google and this list have not yielded the
solution.


John





--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4BFFD64E.7070502@kos.net">http://lists.debian.org/4BFFD64E.7070502@kos.net
 
Old 05-28-2010, 06:26 PM
 
Default USB flash drive: permissions, etc.

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.
>
> The only other clues I have are the options, "safely remove usb" and
> "eject" have disappeared from nautilus (right click).
>
> I recall this happening to me some 2 years ago, but I have mislaid the
> solution. Searches through google and this list have not yielded the
> solution.

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.

--
Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB
 
Old 05-28-2010, 10:37 PM
john
 
Default 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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4C0045C7.5030000@kos.net">http://lists.debian.org/4C0045C7.5030000@kos.net
 
Old 05-28-2010, 11:04 PM
 
Default USB flash drive: permissions, etc.

On Fri, May 28, 2010 at 06:37:59PM -0400, john wrote:
> 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
> >
> > 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.
>
> 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

This is normal. Only root can issue this commands.

> john@debian:~/Desktop$ su
> Password:
> root@debian:/home/john/Desktop# umount /media/usb0
> root@debian:/home/john/Desktop# fdisk -l
>
>
> 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

This is weird. Is the USB stick partitioned? Looks like it is:
/dev/sda{1..4}. Could you try sfdisk -l /dev/sda as root?

> 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

This log entries tell you that your USB stick is identified and
assigned a mount point: /dev/sda is mounted in /media/usb0.
Everything here is pretty normal stuff.

Is there anything under /media/usb0?

If you can recover your data from there, I suggest you to back it all up and
format the stick.

Something like mkfs.vfat -v -F 32 -n FIREFLY /dev/sda should work.

man mkfs.vfat for more info.

Regards.

--
Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB
 
Old 05-29-2010, 02:06 AM
john
 
Default USB flash drive: permissions, etc.

On 28/05/10 19:04, d.sastre.medina@gmail.com wrote:

sfdisk -l /dev/sda


Disk /dev/sda: 1023 cylinders, 64 heads, 62 sectors/track
Units = cylinders of 2031616 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sda1 ? 196102+ 483781- 287679- 570754815+ 72 Unknown
start: (c,h,s) expected (1023,63,62) found (357,116,40)
end: (c,h,s) expected (1023,63,62) found (357,32,45)
/dev/sda2 ? 42512+ 530422- 487911- 968014120 65 Novell Netware 386
start: (c,h,s) expected (1023,63,62) found (288,115,43)
end: (c,h,s) expected (1023,63,62) found (367,114,50)
/dev/sda3 ? 471240+ 959150- 487911- 968014096 79 Unknown
start: (c,h,s) expected (1023,63,62) found (366,32,33)
end: (c,h,s) expected (1023,63,62) found (357,32,43)
/dev/sda4 ? 727238+ 727252- 14- 27749+ d Unknown
start: (c,h,s) expected (1023,63,62) found (372,97,50)
end: (c,h,s) expected (1023,63,62) found (0,10,0)
root@debian:/home/john

The flash is not partitioned and I can mount it and rw as a user on
another box. Also I have the same problems using another flash drive.


I think I'm just have to be a little more careful in what I delete in
the future.


Thabkyou for the pointers.


John




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4C00769D.5050001@kos.net">http://lists.debian.org/4C00769D.5050001@kos.net
 
Old 05-29-2010, 07:51 AM
 
Default USB flash drive: permissions, etc.

On Fri, May 28, 2010 at 10:06:21PM -0400, john wrote:
> On 28/05/10 19:04, d.sastre.medina@gmail.com wrote:
> > sfdisk -l /dev/sda
>
> Disk /dev/sda: 1023 cylinders, 64 heads, 62 sectors/track
> Units = cylinders of 2031616 bytes, blocks of 1024 bytes, counting from 0
>
> Device Boot Start End #cyls #blocks Id System
> /dev/sda1 ? 196102+ 483781- 287679- 570754815+ 72 Unknown
> start: (c,h,s) expected (1023,63,62) found (357,116,40)
> end: (c,h,s) expected (1023,63,62) found (357,32,45)
> /dev/sda2 ? 42512+ 530422- 487911- 968014120 65 Novell Netware 386
> start: (c,h,s) expected (1023,63,62) found (288,115,43)
> end: (c,h,s) expected (1023,63,62) found (367,114,50)
> /dev/sda3 ? 471240+ 959150- 487911- 968014096 79 Unknown
> start: (c,h,s) expected (1023,63,62) found (366,32,33)
> end: (c,h,s) expected (1023,63,62) found (357,32,43)
> /dev/sda4 ? 727238+ 727252- 14- 27749+ d Unknown
> start: (c,h,s) expected (1023,63,62) found (372,97,50)
> end: (c,h,s) expected (1023,63,62) found (0,10,0)
> root@debian:/home/john
>
> The flash is not partitioned and I can mount it and rw as a user on
> another box. Also I have the same problems using another flash drive.

The other box is GNU/Linux too?
The other flash shows the same output if you sfdisk -l it?

> I think I'm just have to be a little more careful in what I delete in
> the future.

I'm not sure it has to do with anything being deleted...
It looks like it has partitions. Only they are unrecognized.
I still suggest to format (previous back up) it.

--
Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB
 
Old 05-29-2010, 01:09 PM
john
 
Default USB flash drive: permissions, etc.

On 29/05/10 03:51, d.sastre.medina@gmail.com wrote:

On Fri, May 28, 2010 at 10:06:21PM -0400, john wrote:

On 28/05/10 19:04, d.sastre.medina@gmail.com wrote:

sfdisk -l /dev/sda


Disk /dev/sda: 1023 cylinders, 64 heads, 62 sectors/track
Units = cylinders of 2031616 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sda1 ? 196102+ 483781- 287679- 570754815+ 72 Unknown
start: (c,h,s) expected (1023,63,62) found (357,116,40)
end: (c,h,s) expected (1023,63,62) found (357,32,45)
/dev/sda2 ? 42512+ 530422- 487911- 968014120 65 Novell Netware 386
start: (c,h,s) expected (1023,63,62) found (288,115,43)
end: (c,h,s) expected (1023,63,62) found (367,114,50)
/dev/sda3 ? 471240+ 959150- 487911- 968014096 79 Unknown
start: (c,h,s) expected (1023,63,62) found (366,32,33)
end: (c,h,s) expected (1023,63,62) found (357,32,43)
/dev/sda4 ? 727238+ 727252- 14- 27749+ d Unknown
start: (c,h,s) expected (1023,63,62) found (372,97,50)
end: (c,h,s) expected (1023,63,62) found (0,10,0)
root@debian:/home/john

The flash is not partitioned and I can mount it and rw as a user on
another box. Also I have the same problems using another flash drive.


The second box is runnig lenny and the result of fdisk -l /dev/sda is:

Disk /dev/sda: 1023 cylinders, 64 heads, 62 sectors/track
Units = cylinders of 2031616 bytes, blocks of 1024 bytes, counting from
0

Device Boot Start End #cyls #blocks Id System
/dev/sda1 ? 196102+ 483781- 287679- 570754815+ 72 Unknown
start: (c,h,s) expected (1023,63,62) found (357,116,40)
end: (c,h,s) expected (1023,63,62) found (357,32,45)
/dev/sda2 ? 42512+ 530422- 487911- 968014120 65 Novell Netware 386
start: (c,h,s) expected (1023,63,62) found (288,115,43)
end: (c,h,s) expected (1023,63,62) found (367,114,50)
/dev/sda3 ? 471240+ 959150- 487911- 968014096 79 Unknown
start: (c,h,s) expected (1023,63,62) found (366,32,33)
end: (c,h,s) expected (1023,63,62) found (357,32,43)
/dev/sda4 ? 727238+ 727252- 14- 27749+ d Unknown
start: (c,h,s) expected (1023,63,62) found (372,97,50)
end: (c,h,s) expected (1023,63,62) found (0,10,0)

Using a different usb flash (8g vs 4g) drive on the lenny box gives the
following:


Disk /dev/sda: 1022 cylinders, 247 heads, 62 sectors/track
Warning: The partition table looks like it was made
for C/H/S=*/20/16 (instead of 1022/247/62).
For this listing I'll assume that geometry.
Units = cylinders of 163840 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 48947- 48947- 7831512 c W95 FAT32 (LBA)
start: (c,h,s) expected (0,5,1) found (0,1,1)
end: (c,h,s) expected (1023,19,16) found (505,19,16)
/dev/sda2 0 - 0 0 0 Empty
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty

Both drives are made by lexar and have never been formatted so they come
with vfat.



John





--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4C011217.6040905@kos.net">http://lists.debian.org/4C011217.6040905@kos.net
 
Old 05-29-2010, 08:38 PM
john
 
Default USB flash drive: permissions, etc.

On 29/05/10 03:51, d.sastre.medina@gmail.com wrote:

On Fri, May 28, 2010 at 10:06:21PM -0400, john wrote:

On 28/05/10 19:04, d.sastre.medina@gmail.com wrote:

sfdisk -l /dev/sda


Disk /dev/sda: 1023 cylinders, 64 heads, 62 sectors/track
Units = cylinders of 2031616 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sda1 ? 196102+ 483781- 287679- 570754815+ 72 Unknown




I'm not sure it has to do with anything being deleted...
It looks like it has partitions. Only they are unrecognized.
I still suggest to format (previous back up) it.



I installed the earlier kernel image 2.6..30-2-686 in place of
2.6.30-3.686.

I can now rw as user but require root priviliges to unmount
the clue was when I ran #ls -l I saw all media even the floppy
required root. I think I need to look at the change log and go from there.

Thanks for your help, I was just about ready to reinstall.


Johjn.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4C017B52.7040904@kos.net">http://lists.debian.org/4C017B52.7040904@kos.net
 

Thread Tools




All times are GMT. The time now is 03:32 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org