Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.