Re: How do I get /dev/sdb1 back without rebooting?



Jean-David Beyer staggered into the Black Sun and said:
ToddAndMargo wrote:
You're running udev, right? When this thing disappears, what's in
dmesg that's related to the device? Are you sure it isn't appearing
as /dev/sdc1 or /dev/sda1?
I am running udevd. /dev/sda1,2,3 are my Raid controller and my "/",
swap, and "/export" partitions. They always mount as sdax.

As it transpires, the bad drive was not formated (I must have been
really tired). It showed up in dev as /dev/sdb, with no numbers.
Now it is formatted and mkfs.ext3'ed.

Which brings up a question: if the operator left the removable drive
out of the carriage, then rebooted, the removable drive will not show
up until the next reboot. Is the a way to rescan my SATA drives and
get me back my /dev/ sdb1 without rebooting?
I have a CD-ROM burner that is connected to a SCSI controller. If I
boot my machine with the CD-ROM burner turned on, it appears as
/dev/scd0.

If I boot my machine with the CD-ROM burner turned off, it does not
appear at all. And turning it on at that point does nothing.

SCSI is easy.

echo "scsi-add-single-device X Y Z W" > /proc/scsi/scsi, replacing X, Y,
Z, and W with the host, bus, ID, and LUN of the drive.

Perhaps your SATA drives act like my SCSI CD-ROM burner.

A SCSI CD-RW? That thing must be ancient.

SATA is different. It's not really SCSI, so the same technique may not
work properly. Some SATA devices may not even be hot-swappable. So, if
you plug the SATA device in and udev doesn't create a device node, check
dmesg for anything at all about the SCSI/SATA subsystems. Then
reproduce that info for us. Also, compare the dmesg output in that case
with the dmesg output from a successful case.

--
Something unpleasant is coming when men are anxious to tell the
truth. --Benjamin Disraeli
My blog and resume: http://crow202.dyndns.org:8080/wordpress/
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
.



Relevant Pages

  • Re: Which motherboard?
    ... I can't imagine needing 7 SATA devices. ... But even the lowliest of SATA skunks all but the fastest fibre channel scsi enterprise drives. ...
    (alt.comp.periphs.mainboard.asus)
  • Re: redhat; how to show which disks are actually seen
    ... In hoping that you are using the word *disks* interchangably with hard ... CD and Zip drives. ... for each so called "SCSI" drive. ...
    (alt.os.linux.redhat)
  • Re: dmesg does not see ide/cdrom
    ... > log the boot dmesg file during the boot, but I can't recall what it ... The 'dmesg' command just dumps whatever is in the kernel's ring buffer ... If you have more than one SCSI adapter, ... Getting those cdrom drives ...
    (comp.os.linux.hardware)
  • Re: dd(1) performance when copiing a disk to another
    ... if DMA transfers are enabled for those discs? ... > see end of mail for full dmesg output, ... not fit to SATA drives, ...
    (freebsd-performance)
  • Re: RELENG_7 problem with playing DVDs
    ... I actually tried with 2 different drives. ... The drive lockup and dmesg spamming till the system has shut down as I ... cd0: 33.000MB/s transfers ... FAILURE - non aligned DMA transfer attempted ...
    (freebsd-stable)