randhir phagura wrote:
Hi,
Matt Darcy wrote on Tue, 07 Mar 2006 14:06:16:
What build host are you using ?
sounds like the device is under the impressions its been forcefully
dissconnected and reconnected >so assumes the >next drive letter along.
I am using lfs-SVN-20051127 as the host system. I have formatted the
drive to ext2 filesystem.
Yes, it seems to be getting disconnected when being accessed by the
system during installation and connected again.
But the question is why should it be disconnected when it has been
mounted.
Any clues?
Thanks.
RSP
The solution that I use for this problem is as follows:
Unplug the drive.
Do a "tail -f /var/log/kern.log".
Plug the drive back in and watch the kernel log.
When I plug in my usb drive, I get the following from the kernel:
Mar 8 14:20:32 arno kernel: Vendor: HTS54808 Model:
0M9AT00 Rev: MG4O
Mar 8 14:20:32 arno kernel: Type:
Direct-Access ANSI SCSI revision: 00
Mar 8 14:20:32 arno kernel: SCSI device sda: 156301488 512-byte
hdwr sectors (80026 MB)
Mar 8 14:20:32 arno kernel: sda: assuming drive cache: write through
Mar 8 14:20:32 arno kernel: SCSI device sda: 156301488 512-byte
hdwr sectors (80026 MB)
Mar 8 14:20:32 arno kernel: sda: assuming drive cache: write through
Mar 8 14:20:32 arno kernel: sda: sda1 sda2 sda3
Mar 8 14:20:32 arno kernel: Attached scsi disk sda at scsi1,
channel 0, id 0, lun 0
Mar 8 14:20:32 arno kernel: usb-storage: device scan complete
What you need is the "Model: 0M9AT00" part.
Now make a udev rule (I have "30-local.rules" in /etc/udev/rules.d)
which looks like this:
BUS="scsi", SYSFS{model}="0M9AT00", NAME{all_partitions}="nexstar"
This will create a node "/dev/nexstar" whenever something shows up on
the scsi bus as model "0M9AT00". The "{all_partitions}" part tells it
to create "nexstar1", "nexstar2" and "nexstar3" for my three
partitions. If you only have one partition, you can leave that out.
Now I can always access /dev/nexstar{1,2,3} no matter which sdxy the
drive is assigned to. Let me know if this works for you.
Joel
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page