I tried posted this earlier, but though some mistake it never happened. So here's my second attempt.
I am new to Linux Mint and have limited Linux experience overall. I have some bad sectors so I wanted to have them written as unusable but I'm not sure if I can do so on the Disk Utility, so through some Googling I found a way to do it command line for Ubuntu. Since Mint is based on Ubuntu and Debian I thought I'd give it a try but I guess it isn't exactly the same.
First I wrote the bad sectors to a bad-blocks file sucessfully.
- Code: Select all
sudo badblocks /dev/sdb > /home/joel/bad-blocks
But I'm having problems marking the sectors as bad.
- Code: Select all
sudo mkfs -c bad-blocks /dev/sdb
[sudo] password for joel:
mke2fs 1.41.14 (22-Dec-2010)
mkfs.ext2: invalid blocks count '/dev/sdb' on device 'bad-blocks'
And
- Code: Select all
sudo fsck -l bad-blocks /dev/sdb
Just brings up the help file on how to use fsck.
So, what am I doing wrong and how can I mark the bad sectors? Thank you.