Hardware :: How To Find The /dev/sd Device Currently Assigned To A Physical Flash Drive Port
Jul 17, 2011
I have (at least 4) native USB ports that contain flash drives. I know that the /dev/sd[abcd] devices are created in the order they were inserted, but say you have all four plugged in at boot time, or further, they can be plugged and unplugged in real time. At times, /dev/sdf, /dev/sdg, etc. are created as well. I'm ignoring external hubs for now.
I need to know which drive is plugged into the "top port on the front panel", etc, by physical location. From dmesg I can check right after booting and get the physical assignment of a PCI device, say, PCI 0000:00:10.3, as being assigned to the EHCI usb bus. From /proc/bus/usb/devices, and the "T:" field, I have learned that the physical connectors I'm interested are known as USB Bus 1, Port=00, Port=01, Port=04, and Port=05.
From lsusb I can see all sorts of information from the USB point of view, but with no /dev/sd references.
From /proc/scsi/scsi, I can see what scsi devices have been created, with a count consistent with the number of flash drives plugged in, but no USB data.
So, I can get lots of information from the USB storage point of view, and lots of information from the SCSI point of view, but nowhere can I find how to correlate them. In other words, if I want to mount the drive plugged into a given physical slot, how can I find the /dev/sd device I need to mount? udev isn't really interesting here, because I'm just looking for the information that udev would use to answer the same question.
I've done some heaving exploring in the /sys and /proc filesystems and have not yet found where the USB and SCSI worlds intersect.
The closest I have found is (where "Port" is the physical port number from above):
This seems to have some mapping to the physical port and references a "/dev/sd[a-z]" value, but I don't know how reliable it might be, nor do I know if my having to increment that physical port by 1 is meaningful. Anyone have a simpler approach?
So, my goal becomes
mount /dev/<sd that was created for the top slot> /mnt/top
mount /dev/<sd that was created for the bottom slot> /mnt/bottom etc.
View 2 Replies
ADVERTISEMENT
Jun 10, 2011
How to find the Address which is already in 2632 port?
View 1 Replies
View Related
Dec 1, 2009
I am building a custom RedHat+<our-software> installer iso for our own appliance. I am using Red Hat 5.4. The appliances has two on-board eth interfaces. On the back panel of the appliance, these ports are marked 1 and 2. When I install RH, I find the device names assigned such as eth0/eth1 are arbitrary. I understand this is to be expected with kernels 2.6+. Most of our customers connect their eth cables to the port marked 1 on the back and assume they should configure eth0 to make the device reachable. However, sometimes port 1 gets assigned "eth1". This is not a blocking issue, but its going to confuse our customers and we wanted to make it easier on them.
From reading online discussion boards, I know HOW to switch the assignment of the eth names. However, what I am do not know is whether I need to switch them at all. So I have two questions
1) Is there anyway for me to tell which eth mac corresponds to which port on the back? Since they are soldered on the motherboard and not movable, I would think there would be some way to figure out that x mac address corresponds to the upper port (marked '1' etc).
2) Is there a way to tell this by running a linux command? We need to do this automatically so I need to be able to figure it out at install time from the kickstart post-install or similar.
View 1 Replies
View Related
Aug 14, 2009
I installed ZTE MF 626 modem in my F10 with kernel 2.6.27.12-170, i run usb_modeswitch and so far things happened normally. Watching through /var/log/messages it says that F10 detects two port device for this modem: ttyUSB1 and ttyUSB2, and in the sequence it disable port ttyUSB1 BUT Network Manager still set this port.I mean, when i connect via wvdial appointing to ttyUSB2 i get connection, but Network Manager fails to do it appointing to ttyUSB1. How to change device port in Network Manager?
View 1 Replies
View Related
Aug 29, 2010
On Fedora 13 is there anywhere else on the system that I have to change to get Apache to Listen to an assigned port, something other than 80. Suppose for instance I wanted Apache to Listen on port 94. I told by the site that their router is forwarding apache to port 94. That doesn't mean I change the Listen in httpd.conf. correct. Apache is still expecting connection on port 80 but in this case 80 then gets forwarded in the router to 94. This is my understanding.
View 5 Replies
View Related
Mar 30, 2010
The software: Ubuntu Server Edition 9.10.The wetware: A programmer doing his best (read: ignorant, shitty) as an ad-h.When I plug the USB thumb drive in, the install OS gives it a drive letter -- /dev/sdb -- and it pushes the original /dev/sdb down to /dev/sdc. The installation works without a hitch, and GRUB2 installs, dutifully pointing the root at /dev/sdc1 instead of /dev/sdb1.I let GRUB2 start normally ("drive not found"), holding the <shift> key to get to the "rescue>" prompt.From there, I issue "ls" to discover that GRUB can NOT see /dev/sdb, and I can tell that because what is showing up as (hd1) does NOT have three partitions as it should.GRUB2 sees a total of 16 drives, not 26, and one of the drives it sees is "fd0" (there is no floppy drive).Issuing commands like "set prefix=(hdx,y)" and "root=(hdx,y)" have no effect as, I think it's just pointing to the (reiserfs)content drives and this GRUB2 tells me "unknown filesystem".I did try them all in vain, hoping that maybe I'd find a kernel somewhere.I used the "rescue" mode of the Ubuntu installer (the USB thumb drive) to get to a root prompt.From there, I mounted /dev/sdc2 (the "shifted" /dev/sdb2) onto /mnt, I mounted /dev/sdc1 (the "shifted" /dev/sdb1) onto /mnt/boot,and then I chroot'ed to /mnt.I edited /boot/grub/grub.cfg, editing every instance of "root=(hd2,1)" to the appropriate UUID for the "real" /dev/sdb1. Then I issued update-grub2.It refused to work giving me an banal "no such partition" error or something like that.
We originally had this server functioning by putting / and /boot on the SS SanDisk, which caused no problems during installation because /dev/sda doesn't get shifted.We then figured it was a good idea to put our OS files on something with failover capability. And that started us down this crappy "shifting drive letter" path.Can I control which drive letter the USB thumb drive gets assigned during the install process?If I could make it be /dev/sdc then I wouldn't be facing this problem.An alternate solution would be to know the cryptic GRUB2 commands that I can issue from the command prompt post-install, pre-reboot.But I'm wondering if that will ultimately work at all considering that GRUB2 couldn't see /dev/sdb at all.
View 2 Replies
View Related
Apr 21, 2010
I formatted the USB flash drive using Karmic's Format Disk utility (right-click on a volume, select "Format..."), and selected "Encrypted, compatible with Linux (FAT)" from the "Type" drop-down menu.It mounts correctly when I plug it in, and I can access the files just fine.When I unplug the Flash drive without using the 'Safely Remove Drive' option, the icon on my desktop changes its name to '2.0 GB Encrypted', instead of disappearing and unmounting like my unencrypted Flash drives do.
I would like to have encrypted Flash drive treated in the same way as my unencrypted Flash drives, which disappear and unmount when unplugged, even if the 'Remove Safely' menu option isn't used. What can I do to accomplish this?NOTES:When I plug the encrypted Flash drive in, the following line shows up in the output of 'mount'. 'secure' is the name I gave the disk during the format process:
Code:
/dev/mapper/devkit-disks-luks-uuid-302db16c-c6e2-4dd9-a259-436437c76475-uid1005 on /media/secure type vfat
[code]....
View 1 Replies
View Related
Jun 10, 2010
/dev/fd0 does not exist. I have floppy disks I wish to use.m using debian unstable.Nautilus doesn't recognize it, nor does dolphin. I have no clue if the floppies are formatted or not.fdisk -l only sees sda, my hard drive.Floppies are so neat! I want to use them in linux.
View 12 Replies
View Related
Mar 12, 2010
Code:
linux-a7xq:/home/daweed66 # hwinfo --block --short
disk:
/dev/sda IC25N020ATMR04-0
/dev/sdb Kingston DataTraveler 2.0
Samsung Digital Camera
partition:
/dev/sda1 Partition
/dev/sda2 Partition
/dev/sda3 Partition
/dev/sdb1 Partition
I'm using Samsung ES55 digital camera. As you can see in the above , Kingston flash memory is assigned with /dev/sdb disk (system disk is offcourse sda). My openSUSE 11.2 see's the camera , but the device can't be assigned to it. With opensuse 11.0 I did not have this problem, and camera was mounted normally as any other external device via USB.
View 9 Replies
View Related
Jun 23, 2010
How do you find the device (e.g. /dev/*) for a mounted USB drive in Linux (Ubuntu 10.04)? I'm trying to format a Cruzer USB flash drive, and when I plug it in, the icon for the mounted filesystem appears on my desktop. However, when I open GParted, it doesn't list the filesystem as an option to partition.
The recommendations I've found through Google include monitoring tail -f /var/log/messages, which they claim should list the device name when the drive is mounted, but this never happens for me. I've also read that the USB drive would usually be linked to /dev/sdb, but this appears as a broken link on my filesystem. How else would I find the device?
View 3 Replies
View Related
Dec 21, 2009
I have attached usb memory to my Linux server and I want to add it to my /etc/fstab .Can you please let me know how can I recognize it from my"/dev/?" list ?
View 14 Replies
View Related
Jul 7, 2010
This device doesn't automount, doesn't show in KDE 4's device notifier, and I can't mount this camera manually because it doesn't appear to get assigned to a device node. Any known solutions? It worked in Slackware 12.2, but not in 13.0 or 13.1.
View 2 Replies
View Related
Dec 24, 2010
On windows I installed the iscsi initiator which tells me my pc id. Then I take that id and put it in my storage which automatically gives me my extra disk. How can I find out the id assigned to my ubuntu pc?
View 1 Replies
View Related
Sep 26, 2010
Ubuntu 10.04.1 to prepare a USB flash drive for use as installation media for a new computer that's on the way. When the Linux kernel tries booting up on the flash drive, I get an error saying VFS: Cannot open root device "<NULL>" or unknown-block(8,1).Here's how I got to this point...Created bootable partition on the thumb drive.Put the following files onto the flash drive: initrd.gz, vmlinuz, and ubuntu-10.04.1-server-amd64.iso fromhttp://archive.ubuntu.com/ubuntu/dis...ages/hd-media/Install Grub2 to the drive via grub-install.Put the following into boot/grub/grub.cfg:
Code:
set timeout=120
set default=0
[code]....
View 9 Replies
View Related
Sep 23, 2010
managed to get things working so well on my laptop i thought i'd install ubuntu onto an external drive so i can boot to either xp or Ubuntu whenever i want, when i started up after the install it doesn't recognise the drive i loaded it to and appears to have lost the link to xp. the exact words are:
error: no such device: 4368f21f-d1b6-4c60-8c6b-4d2d38d16920.
grub rescue>
what i can do to get my xp back, my wife uses the xp and will kill me if i don't sort it, fortunately the comps unrealiable anyway!
View 1 Replies
View Related
May 22, 2010
I dont know when k3b stopped working but have just gone to burn a disk and when opening it tells me
Quote: No optical drive found. K3b did not find any optical device in your system. Solution: Make sure HAL daemon is running, it is used by K3b for finding devices.
I can boot from cd and can mount cds from within Slackware but for some reason k3b insists that i don't have a drive.
View 8 Replies
View Related
May 18, 2011
How do I find the OID code for a physical volume.I managed to get it to work with our snmp monitoring software to alert me when disk space was < 10% but the computer which was running the SNMP monitoring died.For the life of me I can't remeber how I got it to work.I have 4 partitions 1 has 88% free /etc/mapper/volgroup002 has 21% free /boot3 nfsd 0 bytes4 sunrpc 0 bytesHere is a copy of the OID I'm using 1.3.6.1.2.1.25.2.3.1.5.1 I change the last number to resemble the drive but i'm testing using 8% and they each return an error drive space low which is what the VB script tells it to do. I know the script works as I use it on Windows Servers no problems.I do an SNMPWALK on the server and it validates the above OID with HOST-RESOURCES-MIB::hrStorageSize so I know thats valid.But thats where I'm stuck. What value should I see if I were to use this OID 1.3.6.1.2.1.25.2.3.1.6.1 which is for free disk space.
View 1 Replies
View Related
Jun 27, 2011
I installed a 30 gig hard drive for extra storage space. It is currently using the ext2 file system. When looking at it in gparted, there is a key icon next to the drive. I would like to use this drive for storage with programs running in WINE, but can't even see the drive from there. From the normal OS, I can see and mount the drive, but can't use it for anything.
I am going to go out on a limb and guess that the key icon means it is locked somehow. How do I unlock/use this drive? Is there a command to use in the terminal, or within the Disk Utility that will do it?
View 3 Replies
View Related
Jun 21, 2010
I am in need of finding out the physical interface corresponds to eth0,eth1,eth2., As similar like the lscfg command which is available in the AIX operating system. The output given below got it from AIX OS.
$ lscfg -l ent*
ent2 U787B.001.DNWFFC6-P1-T9 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent3 U787B.001.DNWFFC6-P1-T10 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent0 U787B.001.DNWFFC6-P1-C4-T1 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent1 U787B.001.DNWFFC6-P1-C4-T2 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
Is there any utility/commands available to find out the physical interface ?
View 1 Replies
View Related
Oct 22, 2009
I allocated a chunk of memory using kmalloc in a Device Driver. Kmalloc provides a pointer to the allocated memory. This is one of my first few drivers.
I assume that the address returned is a Virtual address. I need to find the physical address of the memory location. I am working on an Intel 64 bit Fedora machine. I used the virt_to_phys() routine present in <asm/io_64.h>. I found that this routine returns an unsigned long value (32 bit) instead of an unsigned long long value (64 bit). Moreover, it seems that it simply returns the address - OFFSET instead of extracting the value in the page tables.
So is there any function / system call in Linux which will allow me to see the actual physical address on the Intel 64 arch.
View 3 Replies
View Related
Jun 27, 2010
My Ubuntu system drive is starting to throw up S.M.A.R.T. errors. I have two partitions on the drive (/home and /) and grub in the mbr. Is there a way to exactly clone this drive to another one so I don't need to reinstall or re-setup anything?
View 1 Replies
View Related
Aug 3, 2011
I am using MSI X620. I just intalled ubuntu 10.04 in it. Everything is fine except my DVD drive. The dvd drive doesn't work at all! When i press eject button ..nothing happens and there is no light blinking in the drive....when i load windows it works fine though! do i need to install drivers or something?
View 9 Replies
View Related
Oct 4, 2010
Is it possible if I am only using ext3 and no LVM or anything else to re-size the partition into another physical device? I am pretty sure the answer to this is no but I was still curious as I am facing a full 1tb disk and need to add a new drive and unsure how to do this due to shared folders existing on the old drive and no way to actually expand them without linking in new files or something.
View 8 Replies
View Related
Sep 2, 2011
There is a computer with two "Xeon(R) CPU X5550 @ 2.67GHz" CPU. The Hyper-threading is enabled, so it looks like 16-core system, but really there is only 8 physical cores.
I know that when hyperthreading is enabled, each physical core is splitted into two virtual cores. I want to know, which pair of virtual cores shares a physical core and which are not. Or, how (in what order) will Linux enumerate HT-cores comparing to real cores. (enumerating is done for sched_setaffinity and taskset masks).
I have a dump of /proc/cpuinfo file from the system.
I think there are possible:
CPU0-CPU7 are not sharing phys. core. CPU8-CPU15 too. But sharing is in pairs CPU0+CPU8, CPU(i)+CPU(i+8) and so on. or CPU0+CPU1 are from single physical, CPU2+CPU3, CPU(2*i)+CPU(2*i+1). or exotic CPU0+CPU15 sharing, CPU1+CPU14 ... or random?
The hard moment in this case is that there are 2 physical dies of CPU (two sockets), and usual recommendation of using "physical id:" field can't help
The cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Xeon(R) CPU X5550 @ 2.67GHz
[Code].....
View 1 Replies
View Related
May 15, 2011
Recently, I created a device sc0 through device mapper. The divice could be found in /dev/mapper/sc0. My problem is that the device doesn't exist in /dev/partitions which will block my following test.BTW, I found dm-0 in /dev/partitions. Is it the same as /dev/mapper/sc0? But the device /dev/dm-0 doesn't exist!
View 2 Replies
View Related
Jun 3, 2011
I downloaded the Fedora-15-i386-DVD.iso and want to install Fedora 15 from it. I don't want to use the LiveCD version since it doesn't have all the packages. So I follow the tutorial given here under the section titled "How to Make a bootable USB Drive to Install Fedora instead of using a physical DVD ". Everything finishes off well. However. when I boot my computer using the USB, it says "USB doesn't have operating system. Safely remove and reboot".
Now, what to do? I also didn't get the line the tutorial saying, "You should now have a bootable USB stick which will run an 15 install. When you boot the stick, you may also add askmethod to the boot line and select a hard drive install and select the drive as /dev/sdb1 (or your USB device drive) and the path should be / " What am I supposed to do?
View 1 Replies
View Related
Aug 15, 2011
I want to be able to add a physical drive to an existing filesystem, and PRESTO! That filesystem has more storage and/or redundancy. When one of the physical drives eventually fail, no problem, Ive lost some redundancy, I just have to install a new drive before another one fails.Lets assume I have 4 physical drives.*What Is This Configuration? *[URL]...But I am unclear how to get a logical volume that is mirrored and linear.
The last time I tried software RAID 1 (dm-x) under lvm, it was very fragile. Systemd could not start it,and then an update to mdadm put a stake through its heart. So I know that does not work.
View 5 Replies
View Related
Jul 8, 2010
I have two old windows 95 computers. The problem is I have files and programs that have specific settings that I need. The computers are old and I want to just make a copy of the hard drive and insert it into virtual box. How can I do this?
View 4 Replies
View Related
Jul 5, 2011
I have a 7.9 TB logical volume I've created from 8 1 TB RAID 0 devices. The volume is formatted with XFS so I can resize when ready. However, I think I want to do something that is not possible. I have 2.5 TB free on my logical volume. I'd like to shrink the volume down to be 6 TB by getting rid of 2 of the 1 TB devices in the physical volume. However pvmove seems to require free extents in order to work. Do I need to add 6 TB of storage, pvmove everything onto it, and then decommission the original 8 1 TB physical devices from the volume?
View 5 Replies
View Related
Aug 23, 2011
I've bought an X10 Home Automation USB interface: the CM15.
This is the information lsusb gives:
skerit@KIP-DU-SKER:~$ lsusb Bus 008 Device 002: ID 0bc7:0001 X10 Wireless Technology, Inc. ActiveHome (ACPI-compliant)
But this tells me nothing about where the device file is! How can I find that, or create one myself?
View 1 Replies
View Related