Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Disk Problem, Resetting info on hdc?
post Nov 17 2003, 09:21 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 17-November 03
Member No.: 1,813

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?

Go to the top of the page
+Quote Post
post Nov 17 2003, 05:47 PM
Post #2

Its GNU/

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151

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

Johnny Hughes
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 18th July 2018 - 11:11 PM