After attaching the disk run
echo "- - -" > /sys/class/scsi_host/host#/scan fdisk -l tail -f /var/log/message
Replace host# with actual value such as host0. You can find scsi_host value using the following command:
ls /sys/class/scsi_host
How Do I Delete a Single Device Called /dev/sdc?
In addition to re-scanning the entire bus, a specific device can be added or existing device deleted using the following command:
# echo 1 > /sys/block/devName/device/delete # echo 1 > /sys/block/sdc/device/delete
How Do I Add a Single Device Called /dev/sdc?
To add a single device explicitly, use the following syntax:
# echo "scsi add-single-device <strong> " > /proc/scsi/scsi
Where,
- <H> : Host
- <B> : Bus (Channel)
- <T> : Target (Id)
- <L> : LUN numbers
For e.g. add /dev/sdc with host # 0, bus # 0, target # 2, and LUN # 0, enter:
# echo "scsi add-single-device 0 0 2 0">/proc/scsi/scsi # fdisk -l # cat /proc/scsi/scsi
11 October 2012 at 13:05
[…] First of all attach a disk to the Linux Box by following Attach Disk to Live Linux […]
1 May 2013 at 15:05
I’m not sure where you are getting your information, but good topic. I needs to spend some time learning much more or understanding more. Thanks for great info I was looking for this information for my mission.
2 May 2013 at 16:50
Heya outstanding website! Does running a blog such as
this require a large amount of work? I’ve virtually no knowledge of programming however I was hoping to start my own blog soon. Anyhow, should you have any recommendations or tips for new blog owners please share. I know this is off topic nevertheless I simply needed to ask. Thank you!
2 May 2013 at 19:40
Well, for me blogging doesn’t take much time as I only blog whenever I have some topic to write about
28 June 2013 at 08:10
Hello to every body, it’s my first go to see of this weblog; this webpage consists of remarkable and genuinely good material in support of visitors.