[help] BAD SECTOR

Aplikasi-aplikasi diubuntu: • Aplikasi Grafis •
Aplikasi Internet •
Aplikasi Office •
Aplikasi Sound & Video •
Aplikasi Programming
User avatar
mus_theleader
Posts: 64
Joined: 12 Dec 2011, 18:25
Location: Purwokerto, Indonesia
Contact:

[help] BAD SECTOR

Postby mus_theleader » 18 Jan 2012, 14:53

gan, Hardisk ane kena bad sector, gimana ngatasinya di linux??

thanks gan...
User avatar
bampow
Posts: 2
Joined: 22 Nov 2011, 14:58
Location: indonesia

Re: [help] BAD SECTOR

Postby bampow » 18 Jan 2012, 16:18

coba gabung di grup ini gan. https://www.facebook.com/groups/175886282457075/
baru agan nanya dah disana... hehehe
User avatar
ilham2930
Posts: 1123
Joined: 02 Jan 2010, 19:30
Location: /indonesia/tangerang/bonank_city
Contact:

Re: [help] BAD SECTOR

Postby ilham2930 » 21 Jan 2012, 10:24

@bompow: ups..back to rule masbro..!!

@mus: pake badblock mas
$ sudo su
# lshw -C Disk (list berdasarkan class disk)
# badblocks -svn /logiacal mount disk yg bad
// misal
# badblocks -svn /dev/sda

Tunggu sampe kelar mas..!!
semoga membantu
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: [help] BAD SECTOR

Postby thrvers » 21 Jan 2012, 19:54

'
kak ilham2930, lanjutannya bagaimana lagi? :penasaran:

man badblocks - search a device for bad blocks
(disana tertulis buat mencari blok yang bad)

CMIIW - THX
User avatar
ilham2930
Posts: 1123
Joined: 02 Jan 2010, 19:30
Location: /indonesia/tangerang/bonank_city
Contact:

Re: [help] BAD SECTOR

Postby ilham2930 » 24 Jan 2012, 09:35

Om thrvers, iy sih ada kelanjutannya, badblock cuma scan aja..
mungkin bgini case studynya..!!

pertama2 scan hd bad, dan generate hasil hasilnya dgn nama bad-blocks;

Code: Select all

$ sudo badblocks -v /dev/hda1 > bad-blocks

kemudian bisa gunakan fsck di combine dengan hasil badblocks

Code: Select all

$ sudo fsck -t ext4 -l bad-blocks /dev/hda1

semoga membantu..
CMIINT
User avatar
CDX
Posts: 1616
Joined: 03 Jan 2010, 13:00
Location: Prapatan belok kiri

Re: [help] BAD SECTOR

Postby CDX » 24 Jan 2012, 11:38

ini wat deteksi bad sector atw mbenerin bad sector broo...???:smile:
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: [help] BAD SECTOR

Postby thrvers » 24 Jan 2012, 19:00

'
ilham2930
Om thrvers, iy sih ada kelanjutannya, badblock cuma scan aja..
mungkin bgini case studynya..!!

pertama2 scan hd bad, dan generate hasil hasilnya dgn nama bad-blocks;

Code: Select all

$ sudo badblocks -v /dev/hda1 > bad-blocks

kemudian bisa gunakan fsck di combine dengan hasil badblocks

Code: Select all

$ sudo fsck -t ext4 -l bad-blocks /dev/hda1

semoga membantu..
CMIINT

terimakasih kak ilham2930 sepertinya sudah komplit :D

fsck - check and repair a Linux file system

-t : Specifies the type(s) of file system to be checked.
-l : Lock whole-disk device by exclusive flock(2).

THX
User avatar
mepro
Posts: 32
Joined: 11 Mar 2012, 12:17
Location: Bogor

Re: [help] BAD SECTOR

Postby mepro » 24 Mar 2012, 21:54

broo.. ane juga kena bad sector nih...

ane udah scan pake perintah gini :
sudo badblocks -v /dev/sda > bad-blocks
nah udah kedetect tuh 5 badblocks..
trus pas ane jalanin sudo fsck -t ext4 -l bad-blocks /dev/sda
muncul kaya gini :
root@herwin-Aspire-4530:/home/herwin# sudo fsck -t ext4 -l bad-blocks /dev/sda
fsck from util-linux 2.19.1
Usage: fsck.ext4 [-panyrcdfvtDFV] [-b superblock] [-B blocksize]
[-I inode_buffer_blocks] [-P process_inode_size]
[-l|-L bad_blocks_file] [-C fd] [-j external_journal]
[-E extended-options] device

Emergency help:
-p Automatic repair (no questions)
-n Make no changes to the filesystem
-y Assume "yes" to all questions
-c Check for bad blocks and add them to the badblock list
-f Force checking even if filesystem is marked clean
-v Be verbose
-b superblock Use alternative superblock
-B blocksize Force blocksize when looking for superblock
-j external_journal Set location of the external journal
-l bad_blocks_file Add to badblocks list
-L bad_blocks_file Set badblocks list


trus ane ikutin petunjuk usage tuh, jadi ane rubah perintahnya jadi gini : sudo fsck.ext4 -l bad-blocks /dev/sda

trus jadi begini :
root@herwin-Aspire-4530:/home/herwin# sudo fsck.ext4 -l bad-blocks /dev/sda
e2fsck 1.41.14 (22-Dec-2010)
fsck.ext4: Device or resource busy while trying to open /dev/sda
Filesystem mounted or opened exclusively by another program?
root@herwin-Aspire-4530:/home/herwin#


gimana nih broo ??
ane udah jalanin lewat CLI, sama juga kaya gitu.. mohon bantuan :)
User avatar
Nexus
Posts: 2957
Joined: 26 Feb 2011, 12:39
Location: Ujung dunia

Re: [help] BAD SECTOR

Postby Nexus » 24 Mar 2012, 23:24

sudo fdisk -l

sudo badblocks -s /dev/sda


>>>smoga bisa membantu
User avatar
mepro
Posts: 32
Joined: 11 Mar 2012, 12:17
Location: Bogor

Re: [help] BAD SECTOR

Postby mepro » 25 Mar 2012, 13:32

[quote=Nexus]sudo fdisk -l

sudo badblocks -s /dev/sda


>>>smoga bisa membantu


ini buat scan lagi yaa mas ???
kalo iya, kan tadi ane udah scan, trus udah di taro di bad-locks...