How to find out which disk is âsd 0:4:0:0â


up vote
2
down vote
favorite
I run Ubuntu on a 32GB USB jump drive. Started recently, I kept getting "sd 0:4:0:0: rejecting I/O to offline device". How do I find out if this is the internal hard drive or the external USB drive?
devices
add a comment |Â
up vote
2
down vote
favorite
I run Ubuntu on a 32GB USB jump drive. Started recently, I kept getting "sd 0:4:0:0: rejecting I/O to offline device". How do I find out if this is the internal hard drive or the external USB drive?
devices
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I run Ubuntu on a 32GB USB jump drive. Started recently, I kept getting "sd 0:4:0:0: rejecting I/O to offline device". How do I find out if this is the internal hard drive or the external USB drive?
devices
I run Ubuntu on a 32GB USB jump drive. Started recently, I kept getting "sd 0:4:0:0: rejecting I/O to offline device". How do I find out if this is the internal hard drive or the external USB drive?
devices
devices
asked Feb 21 at 21:58
Codism
1135
1135
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
I did a bit of googling because I was also curious what the 4 digits with colons meant in terms of drive identification. I believe the 4 digits are the SCSI numbers.
Update
If you just install and run lsscsi
it will give you something like this:
[0:0:0:0] disk ATA LITEON LCH-256V2 902 /dev/sda
[3:0:0:0] disk Kingston DataTraveler G3 PMAP /dev/sdb
Original Post
If you run ls -ld /sys/block/sd*/device
it should look like this:
lrwxrwxrwx 1 root root 0 Feb 21 18:11 /sys/block/sda/device -> ../../../0:0:0:0
lrwxrwxrwx 1 root root 0 Feb 21 18:12 /sys/block/sdb/device -> ../../../3:0:0:0
which means 0:0:0:0 is sda and 3:0:0:0 is sdb.
You can sort out what sda and sdb are by using sudo lshw -class disk -short
or something similar.
In my case:
H/W path Device Class Description
============================================================
/0/100/14/0/1/0.0.0 /dev/sdb disk 16GB SCSI Disk
/0/0/0.0.0 /dev/sda disk 256GB LITEON LCH-256V2
sda is my internal drive and sdb is my flash drive.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
I did a bit of googling because I was also curious what the 4 digits with colons meant in terms of drive identification. I believe the 4 digits are the SCSI numbers.
Update
If you just install and run lsscsi
it will give you something like this:
[0:0:0:0] disk ATA LITEON LCH-256V2 902 /dev/sda
[3:0:0:0] disk Kingston DataTraveler G3 PMAP /dev/sdb
Original Post
If you run ls -ld /sys/block/sd*/device
it should look like this:
lrwxrwxrwx 1 root root 0 Feb 21 18:11 /sys/block/sda/device -> ../../../0:0:0:0
lrwxrwxrwx 1 root root 0 Feb 21 18:12 /sys/block/sdb/device -> ../../../3:0:0:0
which means 0:0:0:0 is sda and 3:0:0:0 is sdb.
You can sort out what sda and sdb are by using sudo lshw -class disk -short
or something similar.
In my case:
H/W path Device Class Description
============================================================
/0/100/14/0/1/0.0.0 /dev/sdb disk 16GB SCSI Disk
/0/0/0.0.0 /dev/sda disk 256GB LITEON LCH-256V2
sda is my internal drive and sdb is my flash drive.
add a comment |Â
up vote
3
down vote
accepted
I did a bit of googling because I was also curious what the 4 digits with colons meant in terms of drive identification. I believe the 4 digits are the SCSI numbers.
Update
If you just install and run lsscsi
it will give you something like this:
[0:0:0:0] disk ATA LITEON LCH-256V2 902 /dev/sda
[3:0:0:0] disk Kingston DataTraveler G3 PMAP /dev/sdb
Original Post
If you run ls -ld /sys/block/sd*/device
it should look like this:
lrwxrwxrwx 1 root root 0 Feb 21 18:11 /sys/block/sda/device -> ../../../0:0:0:0
lrwxrwxrwx 1 root root 0 Feb 21 18:12 /sys/block/sdb/device -> ../../../3:0:0:0
which means 0:0:0:0 is sda and 3:0:0:0 is sdb.
You can sort out what sda and sdb are by using sudo lshw -class disk -short
or something similar.
In my case:
H/W path Device Class Description
============================================================
/0/100/14/0/1/0.0.0 /dev/sdb disk 16GB SCSI Disk
/0/0/0.0.0 /dev/sda disk 256GB LITEON LCH-256V2
sda is my internal drive and sdb is my flash drive.
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
I did a bit of googling because I was also curious what the 4 digits with colons meant in terms of drive identification. I believe the 4 digits are the SCSI numbers.
Update
If you just install and run lsscsi
it will give you something like this:
[0:0:0:0] disk ATA LITEON LCH-256V2 902 /dev/sda
[3:0:0:0] disk Kingston DataTraveler G3 PMAP /dev/sdb
Original Post
If you run ls -ld /sys/block/sd*/device
it should look like this:
lrwxrwxrwx 1 root root 0 Feb 21 18:11 /sys/block/sda/device -> ../../../0:0:0:0
lrwxrwxrwx 1 root root 0 Feb 21 18:12 /sys/block/sdb/device -> ../../../3:0:0:0
which means 0:0:0:0 is sda and 3:0:0:0 is sdb.
You can sort out what sda and sdb are by using sudo lshw -class disk -short
or something similar.
In my case:
H/W path Device Class Description
============================================================
/0/100/14/0/1/0.0.0 /dev/sdb disk 16GB SCSI Disk
/0/0/0.0.0 /dev/sda disk 256GB LITEON LCH-256V2
sda is my internal drive and sdb is my flash drive.
I did a bit of googling because I was also curious what the 4 digits with colons meant in terms of drive identification. I believe the 4 digits are the SCSI numbers.
Update
If you just install and run lsscsi
it will give you something like this:
[0:0:0:0] disk ATA LITEON LCH-256V2 902 /dev/sda
[3:0:0:0] disk Kingston DataTraveler G3 PMAP /dev/sdb
Original Post
If you run ls -ld /sys/block/sd*/device
it should look like this:
lrwxrwxrwx 1 root root 0 Feb 21 18:11 /sys/block/sda/device -> ../../../0:0:0:0
lrwxrwxrwx 1 root root 0 Feb 21 18:12 /sys/block/sdb/device -> ../../../3:0:0:0
which means 0:0:0:0 is sda and 3:0:0:0 is sdb.
You can sort out what sda and sdb are by using sudo lshw -class disk -short
or something similar.
In my case:
H/W path Device Class Description
============================================================
/0/100/14/0/1/0.0.0 /dev/sdb disk 16GB SCSI Disk
/0/0/0.0.0 /dev/sda disk 256GB LITEON LCH-256V2
sda is my internal drive and sdb is my flash drive.
edited Feb 21 at 23:38
answered Feb 21 at 22:33


Ian Colwell
1384
1384
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1008524%2fhow-to-find-out-which-disk-is-sd-0400%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password