Help - Search - Members - Calendar
Full Version: Disk Problem
Linuxhelp > Support > Technical Support
When i Installed SUSE 8.1 one of my 4 disks had big problems.. i trashed the disk and replaced with another.

No matter what disk i put in instead i says it has problems precicely the same places that the bad disk had ?!?

is there any way i for example could reset all information on "hdc"?

Some wieard stuff here:

if i look at dmesg i has:

Amidala:/ # dmesg | grep hdc
ide_setup: hdc=ide-scsi
ide_setup: hdclun=0
ide1: BM-DMA at 0xd808-0xd80f, BIOS settings: hdc:DMA, hdd:DMA
hdc: Maxtor 52049H4, ATA DISK drive
hdc:end_request: I/O error, dev 16:00 (hdc), sector 0
end_request: I/O error, dev 16:00 (hdc), sector 1
end_request: I/O error, dev 16:00 (hdc), sector 2

and the directory if /dev/ :

Amidala:/dev # ls hdc*
hdc hdc1

normally theres alot more than 2 (ex. hda has from hda1 to hda27)

anyone know any way i can reset the hdc data?

You don't want to make hdc=ide-scsi ... that is for using a CDROM as a DVD Player or CD-RW ... hdc must have at one time been your CDROM/CD-RW device.

All instructions need to be completed as the root user.

First thing to do is edit either /etc/lilo.conf (if you use lilo as a bootloader) or /boot/grub/menu.lst (if you use grub as the bootloader) and remove the hdc=ide-scsi (or if you have a CD-RW drive at another location then set that drive to IDE-SCSI Emulation). If you use lilo, run the command lilo after you have edit /etc/lilo ... nothing else needs to be done for grub.

Also go to the /dev directory and do:

ls -al | grep cdrom

remove any links that say cdrom -> hdc or cdrom0->hdc, etc.

(if cdrom needs to be removed, the command is rm cdrom ... if you need to then make hdd your cdrom, the command would be {from within the /dev directory} ln -s hdd cdrom
If you can unmount that partiton (umount /dev/hdc1) then use the program:

e2fsck -f -c /dev/hdc1

Use e2fsck only if the hdc1 partition is ext2/ext3 ... if you have a reiserfs filesystem on hdc then use reiserfsck as below:

1. Run reiserfsck --check --logfile check.log /dev/hdc1 from within the /tmp directory. do a less check.log when done.

2. If reiserfsck --check exits with status 0 it means no errors were discovered.

3. If reiserfsck --check exits with status 1 (and reports about fixable corruptions) it means that you should run:

reiserfsck --fix-fixable --logfile fixable.log /dev/hdc1

4. If reiserfsck --check exits with status 2 (and reports about fatal corruptions) it means that you need to run:

reiserfsck --rebuild-tree
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.