SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My harddrive has deveolped a few bad sectors.. causeing some major probs with my Slackware install. Now with windows I could do a full format and have it remove bad blocks or eracse them or something and I could again use the drive...
I cannot figure out how to do this w/ slackware or linux. I have tried formatting and repartioning.. but everytime I try to install it hangs about 10% into the install... (this happens with slackware, mandrake & redhat)
Does anyone know what I should do?? I would use a win98 bootup disk.. but I dont have one anylonger and would perfer to let linux perfrom this task
1. You shouln't use a hd having bad sectors. There are probably coming more and your data is not in safe. By a new one.
2. If you want to, you can use -c parameter for mkfs when making the filesystem (aka formatting) to run a badblock check and mark them bad for the drive.
Originally posted by odious1 Get a new drive; this is trouble waiting to happen
lol.. I have used drives with bad sectors before. I do not keep anything life or death on my system anyways, so I will wait to get a new drive if i cant get this one to work again
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
get the low level formatter for that brand of drive. that's way better than what you're planning to do. hard drives come with extra sectors on them, and the low level formatter can remap the bad sectors to the unused space.
When you install Slackware, you will come to a part where you choose a file system for each of your partitions. You can have it check for bad blocks then. It's one of the options that you are given.
Originally posted by whansard get the low level formatter for that brand of drive. that's way better than what you're planning to do. hard drives come with extra sectors on them, and the low level formatter can remap the bad sectors to the unused space.
Nowadays HD:s do that automaticly, bad sectors start to emerge to the user/OS only after the spare space is totally used.
ok.. I tried all of the above suggestions.. nothing will install to this drive.... I will be purchasing a new drive... & looks like I will be using DSL for a few days (this thing is super fast when loaded into ram)
Before you use cfdisk or fdisk and after you have log in as root run this command
"dd if=/dev/zero of=/dev/hda bs=512 count=1"
This basically "zeros out" your partition table. I found I had to do this inorder to install Slackware over a Redhat or Mandrake distribution. Note that command may need to be changed if you are using scsi drives or have several drives.
Originally posted by shepper Before you use cfdisk or fdisk and after you have log in as root run this command
"dd if=/dev/zero of=/dev/hda bs=512 count=1"
This basically "zeros out" your partition table. I found I had to do this inorder to install Slackware over a Redhat or Mandrake distribution. Note that command may need to be changed if you are using scsi drives or have several drives.
I'll give this a whirl tomorrow! thanks for the suggestion!
Originally posted by shepper "dd if=/dev/zero of=/dev/hda bs=512 count=1"
Is that sorta like the Star Trek 2nd Generation episode where Beverly Crusher is stuck in a warp bubble and her whole universe starts disappearing around her?
You're logged in as root and then start zeroing out all the bits around you on the hard drive until your root existence disappears?
Hmmm.... how does it continue once the dd command location on the hard drive has gone to zeroes?
The bitsize and count options limit the zeros to the first sector which is where Redhat and Mandrake put their boot loader. The command just zeros out the MBR. Then when you run cfdisk you start with a clean partition table.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.