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.
well i was able ot get the module loaded for usb storage using modprobe usb-storage but i get a error when i try to mount it. Seeing how it isn't in the fstab you would think it is a good idea to add it but i am not sure if i used the right sequence for it but when i tried inputing
Code:
/dev/sda1 /mnt/usbhd ext2 defaults 1 2
I save it and at start up i get a error why is that? and what can i do to get this drive up and running.
Shouldn't be any problems with the USB side. I don't know about firewire.
There are additional SCSI modules in addition to the mass storage module that are required. Can't remember off hand and I am not running linux at the moment.
Look at the output of dmesg. If everything is working you should see something about the drive being recognized. Or look at RH hardware detection GUI and see if the drive is present.
I was able to recognize it under my mnt directory and access it but i am wondering though if there should be a entry for it in fstab or in mtab. i tried to put in the entry but i kept getting a error after rebooting and as for my dmesg out put this is what i got.
Code:
VFS: Mounted root (ext2 filesystem).
Journalled Block Device driver loaded
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 132k freed
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Found IRQ 12 for device 00:0b.0
usb-ohci.c: USB OHCI at membase 0xe084a000, IRQ 12
usb-ohci.c: usb-00:0b.0, OPTi Inc. 82C861
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
hub.c: new USB device 00:0b.0-2, assigned address 2
hub.c: USB hub found
hub.c: 4 ports detected
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,2), internal journal
Adding Swap: 1044216k swap-space (priority -1)
hub.c: new USB device 00:0b.0-2.2, assigned address 3
usb.c: USB device 3 (vend/prod 0xd49/0x5020) is not claimed by any active driver.
hub.c: new USB device 00:0b.0-2.3, assigned address 4
input0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb1:4.0
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Maxtor Model: 5000DV v01.00.00 Rev: 0100
Type: Direct-Access ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
USB Mass Storage support registered.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
hdb: attached ide-cdrom driver.
hdb: ATAPI 40X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
hdc: attached ide-scsi driver.
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: Memorex Model: 40MAXX 1248AJ Rev: ZWS1
Type: CD-ROM ANSI SCSI revision: 02
parport0: PC-style at 0x378 [PCSPP,TRISTATE]
How can i correct that warning i am getting about my data itegrity not assured?
I am not sure what is going on with this drive because i would like to format it and partition it all over that is if i can do that i tried using the fdisk command mentioned above but everytimei try i get this following error that the cylinders are set to 14946 where as nothing is wrong with it but it is higher than 1024 and may cause problems for software that runs at boot time and also for partitioning software from other OS's
Is there something i am missing because as for actually partition the only thing i can find that can clarify each one is the /dev/sda1.
If this is my location for my usb mass storage what is needed to format and do i really need to seeing how i normally can mount it using the mount -a command as root.
Well i think i will need to format it because for some reason or the other i can't mount it anymore it tells me i need to specify a filesystem type when using the mount -a /dev/sda1 /mnt/usbhd command.
Now when i run the fdisk -l command this is what i get....................
Disk /dev/sda: 122.9 GB, 122941341696 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 14593 117218241 c Win95 FAT32 (LBA)
Disk /dev/hda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 2304 18402457+ 83 Linux
/dev/hda3 2305 2434 1044225 82 Linux swap
Now seeing how alot of people these days have data on their external drives and prefer not to format them this isn't the case here because what is on this drive i have a backup of so. The only thing is getting fdisk to work. Is there a way i can correct this issue quickly and easily?
And in case you were wondering about using munt -t vfat /dev/sda1 /mnt/usbhd i already tried it doesn't work.
Here is the error message i get........All of this happened when i tried the mke2fs command you gave me it froze my pc and when i tried restarting this is when all of this started not being to mount the drive
Code:
mount -a /dev/sda1 /mnt/usbhd/
mount: you must specify the filesystem type
If you didn't use fdisk to change the filesystem type from fat32 to linux then that is probably why the computer locked up.
And now your partition isn't formatted correctly anymore.
You will need to use fdisk to change the filesystem type and then use mke2fs. Or use mkfs to format back to fat32.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.