Merhaba millet, elimde bir usb bellek var ve nedense içerisini sıfırlayamıyorum. Gparted'ta ve terminalde fdisk ile denedim ancak sonuç alamadım. Sanırım partition kısmındaki anahtar işaretinden ötürü oluyor. Bu konuda bilgisi olan var mı?
(https://i.hizliresim.com/pb986o.png) (https://hizliresim.com/pb986o)
mint@mint:~$ sudo fdisk -l
Disk /dev/loop0: 1.7 GiB, 1860165632 bytes, 3633136 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000eddb5
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1126399 1124352 549M 7 HPFS/NTFS/exFAT
/dev/sda2 1126400 1953521663 1952395264 931G 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 14.7 GiB, 15791554560 bytes, 30842880 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xbbda7765
Device Boot Start End Sectors Size Id Type
/dev/sdb1 32 30842879 30842848 14.7G b W95 FAT32
mint@mint:~$ sudo fdisk /dev/sdb1
Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): m
Help:
DOS (MBR)
a toggle a bootable flag
b edit nested BSD disklabel
c toggle the dos compatibility flag
Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition
Misc
m print this menu
u change display/entry units
x extra functionality (experts only)
Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file
Save & Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty DOS partition table
s create a new empty Sun partition table
Command (m for help): p
Disk /dev/sdb1: 14.7 GiB, 15791538176 bytes, 30842848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0009e87d
Device Boot Start End Sectors Size Id Type
/dev/sdb1p1 3223366752 3470046675 246679924 117.6G f4 SpeedStor
/dev/sdb1p2 378192737 710426324 332233588 158.4G 10 OPUS
/dev/sdb1p3 225603442 225603451 10 5K 74 unknown
Partition table entries are not in disk order.
Command (m for help): m
Help:
DOS (MBR)
a toggle a bootable flag
b edit nested BSD disklabel
c toggle the dos compatibility flag
Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition
Misc
m print this menu
u change display/entry units
x extra functionality (experts only)
Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file
Save & Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty DOS partition table
s create a new empty Sun partition table
Command (m for help): d
Partition number (1-3, default 3): 1
Partition 1 has been deleted.
Command (m for help): d
Partition number (2,3, default 3): 2
Partition 2 has been deleted.
Command (m for help): d
Selected partition 3
Partition 3 has been deleted.
Command (m for help): 3
3: unknown command
Command (m for help): p
Disk /dev/sdb1: 14.7 GiB, 15791538176 bytes, 30842848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0009e87d
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-30842847, default 2048): 30800000
Last sector, +sectors or +size{K,M,G,T,P} (30800000-30842847, default 30842847): ^C
Command (m for help): p
Disk /dev/sdb1: 14.7 GiB, 15791538176 bytes, 30842848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0009e87d
Command (m for help):
Command (m for help):
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-30842847, default 2048): 2048
Last sector, +sectors or +size{K,M,G,T,P} (2048-30842847, default 30842847): 30800000
Created a new partition 1 of type 'Linux' and of size 14.7 GiB.
Command (m for help): m
Help:
DOS (MBR)
a toggle a bootable flag
b edit nested BSD disklabel
c toggle the dos compatibility flag
Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition
Misc
m print this menu
u change display/entry units
x extra functionality (experts only)
Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file
Save & Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty DOS partition table
s create a new empty Sun partition table
Command (m for help): p
Disk /dev/sdb1: 14.7 GiB, 15791538176 bytes, 30842848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0009e87d
Device Boot Start End Sectors Size Id Type
/dev/sdb1p1 2048 30800000 30797953 14.7G 83 Linux
Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): 1
Changed type of partition 'Linux' to 'FAT12'.
Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): L
0 Empty 24 NEC DOS 81 Minix / old Lin bf Solaris
1 FAT12 27 Hidden NTFS Win 82 Linux swap / So c1 DRDOS/sec (FAT-
2 XENIX root 39 Plan 9 83 Linux c4 DRDOS/sec (FAT-
3 XENIX usr 3c PartitionMagic 84 OS/2 hidden or c6 DRDOS/sec (FAT-
4 FAT16 <32M 40 Venix 80286 85 Linux extended c7 Syrinx
5 Extended 41 PPC PReP Boot 86 NTFS volume set da Non-FS data
6 FAT16 42 SFS 87 NTFS volume set db CP/M / CTOS / .
7 HPFS/NTFS/exFAT 4d QNX4.x 88 Linux plaintext de Dell Utility
8 AIX 4e QNX4.x 2nd part 8e Linux LVM df BootIt
9 AIX bootable 4f QNX4.x 3rd part 93 Amoeba e1 DOS access
a OS/2 Boot Manag 50 OnTrack DM 94 Amoeba BBT e3 DOS R/O
b W95 FAT32 51 OnTrack DM6 Aux 9f BSD/OS e4 SpeedStor
c W95 FAT32 (LBA) 52 CP/M a0 IBM Thinkpad hi ea Rufus alignment
e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a5 FreeBSD eb BeOS fs
f W95 Ext'd (LBA) 54 OnTrackDM6 a6 OpenBSD ee GPT
10 OPUS 55 EZ-Drive a7 NeXTSTEP ef EFI (FAT-12/16/
11 Hidden FAT12 56 Golden Bow a8 Darwin UFS f0 Linux/PA-RISC b
12 Compaq diagnost 5c Priam Edisk a9 NetBSD f1 SpeedStor
14 Hidden FAT16 <3 61 SpeedStor ab Darwin boot f4 SpeedStor
16 Hidden FAT16 63 GNU HURD or Sys af HFS / HFS+ f2 DOS secondary
17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fb VMware VMFS
18 AST SmartSleep 65 Novell Netware b8 BSDI swap fc VMware VMKCORE
1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid fd Linux raid auto
1c Hidden W95 FAT3 75 PC/IX bc Acronis FAT32 L fe LANstep
1e Hidden W95 FAT1 80 Old Minix be Solaris boot ff BBT
Hex code (type L to list all codes): b
Changed type of partition 'FAT12' to 'W95 FAT32'.
Command (m for help): w
The partition table has been altered.
Failed to remove partition 1 from system: Invalid argument
Failed to remove partition 2 from system: Invalid argument
Failed to remove partition 3 from system: Invalid argument
Failed to add partition 1 to system: Invalid argument
The kernel still uses the old partitions. The new table will be used at the next reboot.
Syncing disks.
mint@mint:~$ sudo fdisk /dev/sdb1
Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): m
Help:
DOS (MBR)
a toggle a bootable flag
b edit nested BSD disklabel
c toggle the dos compatibility flag
Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition
Misc
m print this menu
u change display/entry units
x extra functionality (experts only)
Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file
Save & Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty DOS partition table
s create a new empty Sun partition table
Command (m for help): p
Disk /dev/sdb1: 14.7 GiB, 15791538176 bytes, 30842848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0009e87d
Device Boot Start End Sectors Size Id Type
/dev/sdb1p1 2048 30800000 30797953 14.7G b W95 FAT32
Command (m for help): m
Help:
DOS (MBR)
a toggle a bootable flag
b edit nested BSD disklabel
c toggle the dos compatibility flag
Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition
Misc
m print this menu
u change display/entry units
x extra functionality (experts only)
Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file
Save & Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty DOS partition table
s create a new empty Sun partition table
Command (m for help): a
Selected partition 1
The bootable flag on partition 1 is enabled now.
Command (m for help): e
e: unknown command
Command (m for help): c
DOS Compatibility flag is set (DEPRECATED!)
Command (m for help): F
Unpartitioned space /dev/sdb1: 21.9 MiB, 22985728 bytes, 44894 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Start End Sectors Size
1 2047 2047 1023.5K
30800001 30842847 42847 20.9M
Command (m for help): w
The partition table has been altered.
Syncing disks.
mint@mint:~$ fdisk -l
fdisk: cannot open /dev/loop0: Permission denied
fdisk: cannot open /dev/sda: Permission denied
fdisk: cannot open /dev/sdb: Permission denied
mint@mint:~$ sudo fdisk -l
Disk /dev/loop0: 1.7 GiB, 1860165632 bytes, 3633136 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000eddb5
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1126399 1124352 549M 7 HPFS/NTFS/exFAT
/dev/sda2 1126400 1953521663 1952395264 931G 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 14.7 GiB, 15791554560 bytes, 30842880 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xbbda7765
Device Boot Start End Sectors Size Id Type
/dev/sdb1 32 30842879 30842848 14.7G b W95 FAT32
[mention=643422]@srgnaras[/mention]
Alıntı YapThe kernel still uses the old partitions. The new table will be used at the next reboot.
Bilgisayarı, silmeye çalıştığınız bölümünün bulunduğu USB yani sdb ile mi başlatmıştınız?
Anahtar ikonu, o bölümünün kullanımda (mounted) olduğunu ve üzerinde bölümleme işlemi yapılamayacağını gösterir.
Siz diyince farkına vardım. Doğru bilgisayarda üç adet depolama cihazı bağlı halde bulunuyor. Biri bilgisayarın hard disk'i, biri linux mint'i live disk olarak başlatmak için kullandığım diğeri de içerisindeki verileri sıfırlamak istediğim.
Live disk olarak başlattığımı unutmuşum, o iş için kullandığım usb tırnak kadar.. Peki diğer usb neden görünmüyor olabilir? Windows'da taktığımda "Giriş/Çıkış hatası" diyor ve usb'yi açmıyor. Daha önce böyle bir durumla karşılaşmış ve linux üzerinden gparted ile halletmiştim. Geçen gün gömülü sistemlerde linux yönetimi ile ilgili bir kitapta da fdisk'in anlatıldığı kısımdaki komutlara uyarak diskin içerisini sıfırlamaya çalıştım ancak sonuç alamadım.
Terminal üzerinde yaptığım işlemlerle hangi usb'ye dokundum acaba :D Zira linux live disk için kullandığım usb içerisindeki ne partition ne de verilere bir şey olmamış. Ancak terminal üzerinde sildim diye biliyorum.
Benimde başıma defalarca gelmişti. Aslında bir kaç komutla çözülüyor.
#değişken değerleri bulunmadan çalıştırılmamalı veya betik kullanmalı
sudo dd if=/dev/zero of=$silinecek_bellek bs=$boyut count=$adet &>/dev/null
sudo parted -s $silinecek_bellek mklabel msdos &>/dev/null
https://forum.ubuntu-tr.net/index.php?topic=59669.0 (https://forum.ubuntu-tr.net/index.php?topic=59669.0) adresinde ki betiği çalıştırıp usb belleği seçtikten sonra "Belleğinizi kalıp yazdırmak için biçimlendireceksiniz:" sorusuna 1 yanıtını vermeniz çözecektir.