LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-29-2012, 09:11 AM   #1
shital_064
LQ Newbie
 
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
/dev/sdb hard drive issues.


Hello Everyone,

Even i'm facing the same problem, but in my case i've a drive tht is being mounted on /mnt/ which readily gets mounted without any trouble using the command below.

Code:
mount /dev/sdb /mnt
i've also written a script to copy data and then remove it followed by umnounting and remounting the same dev_entry on /mnt/, After some iterations, while remounting the error msg comes up and further iterations are stopped

Code:
Error: mount: /dev/sdb not a valid block device
I'm using 2.6.31 kernel
 
Old 05-29-2012, 12:09 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
You are replying to a 7 year old thread. Start a new thread for new problems.

Quote:
to copy data and then remove it followed by umnounting and remounting the same dev_entry on /mnt/,
Why are you doing that? Mount a drive and leave it mounted until you no longer need it.
I suspect that it's busy and not getting umount one of those times. You can try the -f switch to umount but might get data loss.
 
Old 05-29-2012, 12:33 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator response

Please do not resurrect old posts. Moved your posts to this new thread.
 
Old 06-07-2012, 11:49 PM   #4
shital_064
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
Why are you doing that?
I suspect that it's busy and not getting umount one of those times.
I'm testing for a USB device driver. For which i need to follow this procedure and on the device being busy, I'm using `sync` command in the script after every copy and delete of the data.
However i'll try using -f switch as you suggested.

Quote:
Originally Posted by teckk View Post
You are replying to a 7 year old thread.
Sorry for this, i didn't knew that the thread was running for so long.
 
Old 06-08-2012, 04:04 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Why are you mounting the device itself rather than the partition, eg: /dev/sdb1 ?
 
Old 06-08-2012, 04:12 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by suicidaleggroll View Post
Why are you mounting the device itself rather than the partition, eg: /dev/sdb1 ?
Bingo!! Remember that "mount" means "connect the filesystem on <device> to <mountpoint> There could be a filesystem on /dev/sdb, but probably not

AND.....don't mount it to /mnt---you'll just hide whatever mount points are in there. Go into /mnt and make a new mountpoint for whatever you are doing.
 
Old 06-19-2012, 04:21 AM   #7
shital_064
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
Why are you mounting the device itself rather than the partition, eg: /dev/sdb1 ?
Well i wasn't knowing about every device having by default 2 partitions earlier. Will try this out very soon. Thanks for letting me know about this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Hard Drive showing up as /dev/sde while sda, sdb, sdc, and sdd show nothing swilsy Linux - Hardware 12 06-03-2012 03:02 AM
USB Flash Drive: No Media Detected; Format gets: exit code 1: cannot open /dev/sdb: sisterdelirious Linux - Newbie 15 01-30-2012 09:25 PM
Can i dd if=/dev/sdb of=/dev/sdc if hdsize(sdb)>hdsize(sdc) & size(sdb)<hdsize(sdc) ? ununun Linux - Software 6 06-28-2011 11:48 AM
internal hard drive not shown as correct device, is; sdb, shows; sdf james2b Fedora - Installation 2 08-25-2009 09:05 PM
How to install Linux on second Hard Drive (hd1) (sdb) Please help! P@trick99 Linux - Newbie 5 07-19-2008 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration