Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I had no problems with a flash memory pen. I just plugged it into the USB port and, with Mandrake 9.1, it mounted it as /mnt/removable and there is was, ready for me.
Your usb device will appear as a scsi device, you chould be able to see what the system is calling it in /proc/scsi. With fdisk -l you should be able to see which kind of filesystem exists on the usb-device. It should be named like sd1,2,3 or something.
In trying to contact my RedHat Linux 9 machine to my usb storage pen I was adviced to log on as su - and type cd /mnt/usb-pen and then type ls. This did only get me root@localhost usb-pen, but no visible content on the connected pen. I then tried mount /dev/sdb1 /mnt/usb-pen, but the machine tells me mount: /dev/sdb1 is not a valid block device. I then try modprobe /usb-storage with no other result than root@localhost root. I then try mount /dev/sdb1 /mnt/usb-pen getting me the old /dev/sdb1 is not a valid block device. After this I exit out of su -. I would be very grateful if someone could tell me if there is hope for my USB-pen on Linux.
I tried to mount usbdrive via shell script but always system gives me an error.
I put usbdrive in /etc/fstab but system do not mount it again.
Only after I login and issue a command mount -a , usbdrive
is mounted.
Anyone knows how to have a usbdrive mounted using a script?
My usb drive filesystem was created with:
mke2fs -j -m0 /dev/sda1
My script is this as root:
#!/bin/sh
make -p /datadir
for device in /dev/sda1 /dev/sda2 /dev/sda3 \
; do
mount -t ext3 -o ro $device /datadir
if test $? -eq 0
then
e2fsck $device -y
mount -t ext3 -o rw $device /datadir
fi
done
Mount complains /dev/sda1 is wrong file system, bad block
or too mounted filesystem when booting but when I
issue the same mount after login, usbdrive mount !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.