/dev/sdc1 is not a block device solved

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

/dev/sdc1 is not a block device solved

Postby BakUp on Thu Nov 13, 2008 2:36 pm

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
User avatar
BakUp
Level 4
Level 4
 
Posts: 200
Joined: Sun Sep 23, 2007 9:20 am
Location: Minnesota USA

Linux Mint is funded by ads and donations.
 

Re: /dev/sdc1 is not a block device

Postby Husse on Sat Nov 15, 2008 5:12 pm

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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19710
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: /dev/sdc1 is not a block device

Postby BakUp on Sat Nov 15, 2008 7:19 pm

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......
User avatar
BakUp
Level 4
Level 4
 
Posts: 200
Joined: Sun Sep 23, 2007 9:20 am
Location: Minnesota USA


Return to Hardware Support

Who is online

Users browsing this forum: Google Adsense [Bot], pdc_2 and 13 guests