LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2009, 09:55 AM   #1
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
USB mount


I am trying to mount a usb on a RHEL box
When i do fdisk -l to see the available partition i got the following error

Disk /dev/sdb: 8388 MB, 8388608000 bytes
64 heads, 32 sectors/track, 8000 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

This doesn't look like a partition table
Probably you selected the wrong device.

Device Boot Start End Blocks Id System
/dev/sdb1 ? 379950 937327 570754815+ 72 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sdb2 ? 82368 1027695 968014120 65 Novell Netware 386
Partition 2 does not end on cylinder boundary.
/dev/sdb3 ? 913029 1858355 968014096 79 Unknown
Partition 3 does not end on cylinder boundary.
/dev/sdb4 ? 1409025 1409052 27749+ d Unknown
Partition 4 does not end on cylinder boundary.

And when i try to mount /dev/sdb1

it says /dev/sdb1 does not exists.


Can anybody help in solving this problem
 
Old 06-24-2009, 10:02 AM   #2
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
Well, what is do you expect to be on that USB whatever-it-is? 8 GB sounds like a stick, but why four partitions? There appear to be four partitions, the second of which is detected as Novell Netware. The others appear to be broken or unrecognizable. It may be possible that the kernel on the system you are trying to mount that drive on doesn't include the correct file system drivers for that device, or the system may simply be broken.

Robin
 
Old 06-24-2009, 10:06 AM   #3
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Original Poster
Rep: Reputation: 58
Thank for your comment robin,

I have copied some data from a windows machine and then try to copy it to linux. I included the standard usb-storage module in the kernel using modprobe.

Windows is still able to recognise the drive and the contents in it.
 
Old 06-24-2009, 10:10 AM   #4
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
But does Windows see four partitions, too? The usb-storage module isn't the problem, I suppose the stick should be in Fat32 format, so what we're looking for is vfat support.

The file system could be damaged if you unplugged the stick without properly unmounting it, and Windows might still show its content. Linux is far more strict in that regard. Try running scandisk on the stick in Windows.

Robin
 
Old 06-24-2009, 10:15 AM   #5
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Original Poster
Rep: Reputation: 58
No windows see only one partition.
I simply formatted the disk before putting data on to it, it did the same with an another 1 gb stick and its working fine.

Unable to figure out the exact reason for it.
 
Old 06-24-2009, 10:17 AM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Theoretically (or maybe 'ideally'), the USB drive would indeed have FAT filesystem(s) of some sort on it.

The OP's output from `fdisk -l` looks remarkable similar to that of a USB 160Gib hard drive I got a little while ago.

When the drive was new, it came with some Windows software on (some part of) the drive.

When I connected it to my Linux machine, it looked just just the OP's does-- 4 partitions, with the second one being some weird/non-linux filesystem and the remaining 3 partitions 'type unknown'. But I don't know if it actually *had* partitions on it.

I tried numerous times under Linux to repartition the drive and/or format the 'existing partitions' to no avail; the drive just kept being all screwed up on reboot; in the end I just made one big partition (formatted the whole thing as Ext2) and it has worked like a charm ever since.

Sasha
 
Old 07-02-2009, 03:46 AM   #7
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Original Poster
Rep: Reputation: 58
As i am copying data to disk only, i dont want to format or repartition the disk. How can i do it without making the partition again.

A new 32 gb drive again shows of this error.

How can I force it to be the device /dev/sdb1

Last edited by PMP; 07-02-2009 at 03:48 AM.
 
Old 07-02-2009, 04:29 AM   #8
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,617

Rep: Reputation: 442Reputation: 442Reputation: 442Reputation: 442Reputation: 442
PMP,

D-Bus (udevd and hald) is feature implementation by RHEL programmers, i am not running RHEL but I can safely presume that it does well at handling removable devices AUTOMATICALLY no matter in what countenance they appear to the system.

my point here means that what you need is just to configure your username to handle devices:

go to users; add your username to groups: "hal" "udev" "daemon" "messagebus"
restart dbus from terminal or just reboot if you want,
your usb device should be automatically mounted and a shortcut is offered on the Desktop.

goodluck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Make removable USB hdd mount at fixed mount point ctkroeker Linux - General 13 08-11-2009 09:49 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 08:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 05:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 03:15 AM
mount usb module then mount usb hard drive guanyu Linux - Hardware 1 10-08-2003 12:50 PM


All times are GMT -5. The time now is 09:02 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration