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

Re: 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





Reply to: