Re: [SLE] Removing a SCSI device
The device names are associated to hard disks or magneto-optical according to their SCSI IDs. Other SCSI devices, like CD-ROMs, tape drives, etc. are assigned other device names, so they don't matter. In your case, if you unplug your zip drive, your sdc device (hard disk 1) will become sdb. I'd suggest you change the scsi ID of your hard disk 1 from 2 to 1. Get in the habit of assigning low values to fixed hard disks and high values to other removable devices, that'll reduce the chance of this kind of problem occurring again. I've had this problem in the past and I think I can help you. I don't use LVM, so I don't know if that part of your setup will be affected, read the documentation on LVM to see if this kind of change affect it. Here is what I would do: 0. Unplug the zip drive and change the scsi ID of drive from 2 to 1. 1. Boot the system into single user mode linux S root=/dev/sdb5 2. Re-mount your root file system and /boot as read-write mount -n -o remount,rw / mount -n -o remount,rw /boot 3. Edit your /etc/lilo.conf and change the "sdc" instances with "sdb" 4. Run mk_initrd (if you use initrd file) followed by lilo Example: mk_initrd && /sbin/lilo 5. Reboot. Rafael
On Sunday 07 October 2001 2:27 pm, Rafael E. Herrera wrote:
The device names are associated to hard disks or magneto-optical according to their SCSI IDs.
Other SCSI devices, like CD-ROMs, tape drives, etc. are assigned other device names, so they don't matter.
In your case, if you unplug your zip drive, your sdc device (hard disk 1) will become sdb. I'd suggest you change the scsi ID of your hard disk 1 from 2 to 1. Get in the habit of assigning low values to fixed hard disks and high values to other removable devices, that'll reduce the chance of this kind of problem occurring again.
I've had this problem in the past and I think I can help you. I don't use LVM, so I don't know if that part of your setup will be affected, read the documentation on LVM to see if this kind of change affect it.
Here is what I would do:
0. Unplug the zip drive and change the scsi ID of drive from 2 to 1.
1. Boot the system into single user mode
linux S root=/dev/sdb5
2. Re-mount your root file system and /boot as read-write
mount -n -o remount,rw / mount -n -o remount,rw /boot
3. Edit your /etc/lilo.conf and change the "sdc" instances with "sdb"
4. Run mk_initrd (if you use initrd file) followed by lilo
Example: mk_initrd && /sbin/lilo
5. Reboot.
Thanks Rafael. I'll give this a try tonight after doing a backup and
post again when I'm sorted. Now where's my screwdriver...
M
--
Martin Webster
On Sunday 07 October 2001 6:14 pm, Martin Webster wrote:
On Sunday 07 October 2001 2:27 pm, Rafael E. Herrera wrote:
The device names are associated to hard disks or magneto-optical according to their SCSI IDs.
Other SCSI devices, like CD-ROMs, tape drives, etc. are assigned other device names, so they don't matter.
In your case, if you unplug your zip drive, your sdc device (hard disk 1) will become sdb. I'd suggest you change the scsi ID of your hard disk 1 from 2 to 1. Get in the habit of assigning low values to fixed hard disks and high values to other removable devices, that'll reduce the chance of this kind of problem occurring again.
I've had this problem in the past and I think I can help you. I don't use LVM, so I don't know if that part of your setup will be affected, read the documentation on LVM to see if this kind of change affect it.
Here is what I would do:
0. Unplug the zip drive and change the scsi ID of drive from 2 to 1.
1. Boot the system into single user mode
linux S root=/dev/sdb5
2. Re-mount your root file system and /boot as read-write
mount -n -o remount,rw / mount -n -o remount,rw /boot
3. Edit your /etc/lilo.conf and change the "sdc" instances with "sdb"
4. Run mk_initrd (if you use initrd file) followed by lilo
Example: mk_initrd && /sbin/lilo
5. Reboot.
Thanks Rafael. I'll give this a try tonight after doing a backup and post again when I'm sorted. Now where's my screwdriver...
Thanks to Rafael and Heinz (the LVM Guy) I have removed a Zip 100
drive without running into all sorts of potential problems. Here's what I did:
1. Backed up all my data!
2. Powered down and removed Zip drive (I also changed the SCSI IDs).
3. Booted into single user mode:
linux S root=/dev/sdb5
4. Remounted / (root) filesystem and mounted /boot filesystem:
mount -n -o remount, rw /
mount -t ext2 /dev/sda5 /boot
5. Edited /etc/lilo.conf and replaced instances of "sdc" with "sdb".
6. Re-create initial ramdisk (initrd) using the following script and re-run
LILO:
mk_initrd && /sbin/lilo
7. Issue the following commands to find and activate the volume group (VG):
vgscan
vgchange -ay
8. Restart computer:
shutdown -r now
9. That's it!
Thanks again.
M
--
Martin Webster
participants (2)
-
Martin Webster
-
Rafael E. Herrera