fdisk / sfdisk não está salvando partições na unidade USB

3

Estou tendo alguns problemas com uma unidade USB que não está funcionando corretamente, estou tentando recriar partições com fdisk ou sfdisk, mas uma vez que faço isso eu faço "-l" e não há partições.

Foi assim que executei o fdisk:

root:~$ sudo fdisk /dev/sdc

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): p

Disk /dev/sdc: 1020 MB, 1020887040 bytes
32 heads, 61 sectors/track, 1021 cylinders
Units = cylinders of 1952 * 512 = 999424 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1021, default 1): 
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1021, default 1021): 
Using default value 1021

Command (m for help): p

Disk /dev/sdc: 1020 MB, 1020887040 bytes
32 heads, 61 sectors/track, 1021 cylinders
Units = cylinders of 1952 * 512 = 999424 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1        1021      996465+  83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

E é assim que eu corri o sfdisk:

root:~$ sudo sfdisk /dev/sdc
Checking that no-one is using this disk right now ...
OK

Disk /dev/sdc: 1021 cylinders, 32 heads, 61 sectors/track
Old situation:
Units = cylinders of 999424 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdc1          0       -       0          0    0  Empty
/dev/sdc2          0       -       0          0    0  Empty
/dev/sdc3          0       -       0          0    0  Empty
/dev/sdc4          0       -       0          0    0  Empty
Input in the following format; absent fields get a default value.
<start> <size> <type [E,S,L,X,hex]> <bootable [-,*]> <c,h,s> <c,h,s>
Usually you only need to specify <start> and <size> (and perhaps <type>).

/dev/sdc1 :
/dev/sdc1          0+   1020    1021-    996495+  83  Linux
/dev/sdc2 :
/dev/sdc2          0       -       0          0    0  Empty
/dev/sdc3 :
/dev/sdc3          0       -       0          0    0  Empty
/dev/sdc4 :
/dev/sdc4          0       -       0          0    0  Empty
New situation:
Units = cylinders of 999424 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdc1          0+   1020    1021-    996495+  83  Linux
/dev/sdc2          0       -       0          0    0  Empty
/dev/sdc3          0       -       0          0    0  Empty
/dev/sdc4          0       -       0          0    0  Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Do you want to write this to disk? [ynq] y
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)

Mas quando eu executo o fdisk -l / dev / sdc eu vejo:

root:~$ fdisk -l /dev/sdc

Disk /dev/sdc: 1020 MB, 1020887040 bytes
32 heads, 61 sectors/track, 1021 cylinders
Units = cylinders of 1952 * 512 = 999424 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System

e sfdisk -l / dev / sdc:

root:~$ sudo sfdisk -l /dev/sdc

Disk /dev/sdc: 1021 cylinders, 32 heads, 61 sectors/track
Units = cylinders of 999424 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdc1          0       -       0          0    0  Empty
/dev/sdc2          0       -       0          0    0  Empty
/dev/sdc3          0       -       0          0    0  Empty
/dev/sdc4          0       -       0          0    0  Empty

As partições não são salvas. Também é a mesma saída que recebo ao executar -l antes de tentar criar as partições.

Eu também experimentei aplicativos parted, gparted e outros que são executados no Windows. Nada criou nenhuma partição.

Estou usando o Ubuntu 10.04 e tenho a mídia automática desativada.

Alguém tem alguma ideia de por que isso está acontecendo?

    
por fopsle 19.09.2011 / 04:38

1 resposta

0

Você precisa primeiro criar um "disco fixo", ou seja, fazê-lo funcionar como um disco rígido normal. Instruções para o winxp: link

Existem instruções semelhantes para o linux:

link

    
por 09.10.2012 / 17:46