WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Inserted USB stick - not appearing in /dev/ but shows up when doing fdisk -l  (Read 5295 times)

Offline spence91

  • Jr. Member
  • **
  • Posts: 80
Running fdisk -l returns this:

Code: [Select]
Disk /dev/sdb: 15.9 GB, 15931539456 bytes
255 heads, 63 sectors/track, 1936 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1               1        1937    15556608   b Win95 FAT32

Running ls /dev/sdb* returns this:
Code: [Select]
/dev/sdb
/dev/sdb3
/dev/sdb4
/dev/sdb5
/dev/sdb6
/dev/sdb7
/dev/sdb8
/dev/sdb9

dmesg return this:

Code: [Select]
[2556613.195882] sd 3:0:0:0: [sdb] No Caching mode page present
[2556613.195916] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[2556613.195937] sd 3:0:0:0: [sdb] Attached SCSI removable disk


/dev/sdb1 isn't available, even though fdisk can see it. So I don't know how to mount it. Would anyone know why this is?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Please post output of

Code: [Select]
blkid
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Also post thw whole fdisk -l output, not only a part of it.

Is sdb1 formatted?

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline spence91

  • Jr. Member
  • **
  • Posts: 80
Code: [Select]
tc@box:~$ blkid
/dev/mmcblk0p2: TYPE="swap" UUID="595eb888-ff3d-4872-a96a-536ac59606f8"
/dev/mmcblk0p3: UUID="7e60c4c2-bb24-4022-820b-68a9728a4233" TYPE="ext2"
/dev/sda1: SEC_TYPE="msdos" UUID="A0D5-E528" TYPE="vfat"
/dev/sda2: TYPE="swap" LABEL="swap" UUID="baeb6baf-cc67-4b65-946a-1056d0856b1f"
/dev/sda3: UUID="7f8990f2-eb39-4629-b829-66d073cbfeac" TYPE="ext4"
/dev/mmcblk0p1: SEC_TYPE="msdos" UUID="A0D5-E528" TYPE="vfat"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
...

(sda is another usb stick which is already mounted)

Code: [Select]
Disk /dev/mmcblk0: 1967 MB, 1967128576 bytes
4 heads, 16 sectors/track, 60032 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1               1        1197       38254   c Win95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary
/dev/mmcblk0p2            1217       14016      409600  82 Linux swap
Partition 2 does not end on cylinder boundary
/dev/mmcblk0p3           14017       60032     1472512  83 Linux
Partition 3 does not end on cylinder boundary

Disk /dev/sda: 1977 MB, 1977614336 bytes
61 heads, 62 sectors/track, 1021 cylinders
Units = cylinders of 3782 * 512 = 1936384 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1          21       38254   c Win95 FAT32 (LBA)
Partition 1 has different physical/logical endings:
     phys=(4, 246, 62) logical=(20, 14, 62)
Partition 1 does not end on cylinder boundary
/dev/sda2              21         131      207872  82 Linux swap
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(5, 20, 15) logical=(20, 35, 15)
Partition 2 has different physical/logical endings:
     phys=(32, 56, 48) logical=(130, 30, 48)
Partition 2 does not end on cylinder boundary
/dev/sda3             131        1022     1684480  83 Linux
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(32, 56, 49) logical=(130, 30, 49)
Partition 3 has different physical/logical endings:
     phys=(252, 54, 52) logical=(1021, 17, 52)
Partition 3 does not end on cylinder boundary

Disk /dev/sdb: 15.9 GB, 15931539456 bytes
255 heads, 63 sectors/track, 1936 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1               1        1937    15556608   b Win95 FAT32

The USB stick is formatted - done using gparted on a laptop.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
On your own responsability, you could try
Code: [Select]
sudo mknod /dev/sdb1 b 8 17
« Last Edit: January 30, 2014, 03:16:20 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
You are showing /dev/sda while in previous message talked about /dev/sdb with a different partion scheme.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline spence91

  • Jr. Member
  • **
  • Posts: 80
You are showing /dev/sda while in previous message talked about /dev/sdb with a different partion scheme.

Yes, sda isn't the issue. It's sdb that is not showing up when I was looking in /dev/ and it also doesn't show up in blkid. fsdisk -l shows both sda and sdb partitions and that's reflected in the output I posted.

On your own responsabilty, you could try
Code: [Select]
sudo mknod /dev/sdb1 b 8 17

I ran that, then tried to mount - This is the output:
Code: [Select]
mount: mounting /dev/sdb1 on /mnt/sdb1 failed: No such device or address.


I'm doing this over ssh. I will try to re-insert the device/restart the machine later on.


Offline spence91

  • Jr. Member
  • **
  • Posts: 80
Sorry for the double post -

Anyway, I removed the usb stick. And then re-inserted it. It was found fine and I was able to mount it.

Strange....