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.
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 first tried modifying the file /etc/fstab. I added the following line
/dev/sda /mnt/usbkey vfat noauto,owner,rw 0 0
Then I created the directory
mkdir /mnt/usbkey
But when I attempted mount /mnt/usbkey the error message I saw was
mount: wrong fs type, bad option, bad superblock on /dev/sda, or
too many mounted file systems.
That should list all attached (even non-mounted) devices and it will print the name of the device.
** I'm using the 2.6.9 kernel, which changed the USB device names from SDA to UBA, which you will see at the end -> /dev/uba1, that's my device name **
Here's mine ::
root@MBH:~# fdisk -l
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3611 29001136+ 83 Linux
/dev/hda2 3611 3735 1000219+ 82 Linux swap
/dev/hda3 3736 4865 9076725 c W95 FAT32 (LBA)
Disk /dev/hdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 19929 160079661 c W95 FAT32 (LBA)
Disk /dev/uba: 1024 MB, 1024966656 bytes
32 heads, 63 sectors/track, 993 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Device Boot Start End Blocks Id System
/dev/uba1 1 992 999813+ 6 FAT16
root@MBH:~#
Originally posted by lel800 For the purpose of learning I'd love to know, how did you know I should include a "1" after the name
/dev/sda1 vs /dev/sda
Since it's been two days and no one's answered you...
For device names what you have as sda is scsi device a (first one used)
and that is just the device. Partition numbers start at 1, and since it's a
16 MB drive, it's not likely to have more than one partition. Unless you
partitioned it, most of the time they come with only one partition.
Originally posted by Chinaman For device names what you have as sda is scsi device a (first one used)
and that is just the device. Partition numbers start at 1, and since it's a
16 MB drive, it's not likely to have more than one partition. Unless you
partitioned it, most of the time they come with only one partition.
Thanks for taking the time to explain that to me. Yes that's good to know.
Yes I see the information about the two hard drives. And I understand that fdisk is a utility that will assist with partitioning the drives.
But I don't see any information there about my scsi, my usb.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.