/dev/sdc1 is not a block device solved

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
BakUp
Level 3
Level 3
Posts: 197
Joined: Sun Sep 23, 2007 9:20 am
Location: Minnesota USA

/dev/sdc1 is not a block device solved

Post by BakUp »

I am trying to get a usb pen-drive to boot using PlopLinux, but when I try to mount the device I get this error and it will not allow me to mount it.

Here is my info for the device:

Code: Select all

root@BakUp:~# fdisk -l
   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1         491     3943926    c  W95 FAT32 (LBA)
looks good to me.....but now the rest...

Code: Select all

root@BakUp:~# mkdir /dev/sdc1
mkdir: cannot create directory `/dev/sdc1': File exists
root@BakUp:~# mkdir /media/usb
mkdir: cannot create directory `/media/usb': File exists
root@BakUp:~# mount /dev/sdc1 /media/usb -t vfat
mount: /dev/sdc1 is not a block device
And that is as far as I can get, I've done the google search thingie but was not able to sort it out.
Need more info ? Let me know. Got any ideas on how to make this a block device ? Let me know.....

thanks,
BakUp
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse

Re: /dev/sdc1 is not a block device

Post by Husse »

root@BakUp:~# mkdir /dev/sdc1
mkdir: cannot create directory `/dev/sdc1': File exists
Why are you root?
It may be ok if you have a lot of work to do, but generally it's a bad idea to log in to X as root
Then
cannot create directory `/dev/sdc1'
/dev is a very special folder and you are not supposed to create anything in it
Take a look in it and you will see that sda and sdb are not folders but some strange kind of files
But it is quite possible to create that folder - just tested :)
So these two folders must have existed - perhaps you've tried to do this before
But if you created a folder sdc1 this may prevent the correct creation of sdc1 by the system. I don't know what will happen but it's reasonable to think so (I don't want to try - that might break things)
Your mount command looks correct vfat is FAT32
Delete the folder you made (and please be a normal user in an X environment - there is a very instructive post by scorp123 about this somewhere in the forum)

Code: Select all

 sudo rm -r  /dev/sdc1
Check that /media/usb really exists in case it's a really nasty error
Try to mount sdc not sdc1 (this is because your usb-port can't be recognised as sdc1 cause sdc1 should be a partition)

Code: Select all

mount /dev/sdc /media/usb -t vfat
User avatar
BakUp
Level 3
Level 3
Posts: 197
Joined: Sun Sep 23, 2007 9:20 am
Location: Minnesota USA

Re: /dev/sdc1 is not a block device

Post by BakUp »

Husse wrote: cannot create directory `/dev/sdc1'
ok, me bad ! I'll remember that.....thanks
Did not need to remove it though because it removed itself after a reboot.
Check that /media/usb really exists in case it's a really nasty error
No errors, everything is good, it just mounts the usb flash drive as /media/disk, I really do not care what it calls it as long a I can view and access the files......lol
I have to come to a conclusion from this error: not a block device is from naming it /dev/sdc1, and to top that off doing it more than once because it did not work the first time.

I think I have it sorted out......
Locked

Return to “Hardware Support”