Why won't my Linux machine play nice?
June 4, 2008 3:51 PM   Subscribe

Red Hat Linux won't correctly mount USB flash drive. Also cannot send email. (Although I can log into Gmail, just not send email, chat is also blocked.) FTP from Linux machine to other computers is ok, but we cannot FTP into the Linux machine from Mac or Windows. Are these problems related? Help?

We are running the latest kernel of Red Hat 7, and we have also tried to boot into older kernels. I can usually figure out what is wrong with this machine, but we are stumped on this one. Several restarts have not fixed anything.

Network issues:
-Can log into Gmail, chat is blocked, can't send emails.
-Can FTP to two other machines running Irix (old school, I know)
-Cannot FTP to my Mac
-Cannot FTP from my Mac or PC's on the network, or it will connect and the transfer will time out.

USB issue:
-Do not have automount set up, but typing mount /mnt/flash in terminal window will sort of "fake mount" the flash drive and clicking on it shows files that are not actually on the drive or on a filesystem that is not accessible to Windows or Mac.

A quandry!

We have tried modifying fstab many times. Email has worked as recently as this weekend, although I have noticed the USB flash drive issue for a while now. We've also tried a few different flash drives, and they all do the same thing, we've even formatted one to see if there was some weird partition of the drive that Linux was accessing -- same thing, it puts the files in a weird place and then the PC can't see them.

(Disclaimer: I would say that I am above the average American's computer skills, and I'm reasonably adept at the command line, but I never do very complicated stuff with Linux/Unix other than simple tasks I do routinely for work. I am definitely not a programmer. Mainly the Linux machine runs a few weird programs and talks to the other computers that run Irix. )

There are no errors that the computer is giving during these processes, just timing out on emails/ftps and not showing files on the flash drive. Hopefully I've been descriptive enough here, let me know if you need more details. Thanks!
posted by sararah to Computers & Internet (8 answers total)
 
I assume that a reboot is out of the question / has already been tried to no avail.

I'd rule out firewall rules first to deal with the connection issues. /sbin/iptables -L -n will list all currently loaded firewall rules. iptables -F will remove (flush) all currently loaded rules - don't do this if have rules and don't have the knowhow/script/ability to recreate them. However, I'm skeptical this is the cause. I'd also look at the speed and duplex settings on the network interface - make sure you don't have a duplex issue causing errors or dropped packets. ethtool ethX (replace X with the ethernet interface number) to check speed and duplex, and ifconfig ethX to check for errors. Possibly a bad nic / switch port / cable (all relatively easy to check).

As for the issues with the flash drive, make sure the usb-storage module is loaded (/sbin/modprobe usb-storage). Check the output of dmesg - it will show you what scsi device the flash drive is presenting as. try and mount the flash drive by hand. So if the drive is sda, for instance, try: mount -t vfat /dev/sda1 /mnt/flash as root.

good luck.
posted by namewithoutwords at 4:31 PM on June 4, 2008


The connection problems you're describing indicate that your ethernet connection may be failing intermittently. Can you confirm this with the ping command?

Do you have a broadcom ethernet card? (To find out, type lspci|grep Ethernet in your terminal.) According to this, in RHEL 2.1 (which, according to wikipedia, is based on Red Hat 7) the broadcom driver has some issues which could cause the kind of problems you're describing (except for the USB stuff, which I don't know enough about RedHat to venture a guess on).

Booting a livecd of an up-to-date distro is an easy way to rule out the possibility of a hardware or driver problem. I recommend Ubuntu.
posted by finite at 6:46 PM on June 4, 2008


Can you try an https session of gmail? Just go to https://mail.google.com which will make the whole session SSL encrypted instead of just the login. Not sure if it would help, but trying won't hurt.

About the flash drive, could you post the full output of dmesg after you've inserted the USB drive?

Not sure what's wrong with the FTP erroring out on a few machines, I'll think about that one.
posted by cyanide at 11:46 PM on June 4, 2008


Response by poster: -Internet and printing mysteriously work again today, email sends ok if a bit laggy (about a 30-60 seconds to send gmail) We've restarted it again about 3 times today.

-ethtool and ifconfig bring up "command not found" in the terminal in both bash and csh shells. man ethtool brings up the syntax, but the actual command doesn't work.

-USB problem was that somehow the flash mountpoint was listed as sdb instead of sda in fstab. Why would that spontaneously change? Colleague is sure that it was sda when he input it. Anyways, changing it back to sda fixed the USB issue.

Thanks for the tips, we fixed the USB problem before I could copy the bad dmesg output. I will check it again now that it works and I can post that as well. At least we know where to look next time the USB goes wonky.
posted by sararah at 7:28 AM on June 5, 2008


Response by poster: We've got one flash stick working, but the other one gives an error "/dev/sdb1 is not a vaild block device" upon typing mount /mnt/flash This flash drive used to work, and apparently sdb1 is now the mount point for flash and that's what works with the other flash drive. Here's the fstab and dmesg after attempting to mount:

fstab:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/sda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/sdb1 /mnt/flash vfat users,noauto,rw,exec 0 0
/dev/sdd1 /mnt/flash1 auto noauto,owner,kudzu 0 0

dmesg:
I/O error: dev 08:11, sector 527
Directory sread (sector 0x20f) failed
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdb : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdb: 2097151 512-byte hdwr sectors (1074 MB)
sdb: test WP failed, assume Write Enabled
sdb: I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
unable to read partition table
hub.c: new USB device 00:1d.7-7, assigned address 6
scsi7 : SCSI emulation for USB Mass Storage devices
Vendor: SanDisk Model: Cruzer Mini Rev: 0.3
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sdd at scsi7, channel 0, id 0, lun 0
SCSI device sdd: 1000944 512-byte hdwr sectors (512 MB)
sdd: Write Protect is off
sdd: sdd1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 6
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdb : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdb: 2097151 512-byte hdwr sectors (1074 MB)
sdb: test WP failed, assume Write Enabled
sdb: I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
unable to read partition table
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdc : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdc: 2097151 512-byte hdwr sectors (1074 MB)
sdc: test WP failed, assume Write Enabled
sdc: I/O error: dev 08:20, sector 0
I/O error: dev 08:20, sector 0
unable to read partition table
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdb : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdb: 2097151 512-byte hdwr sectors (1074 MB)
sdb: test WP failed, assume Write Enabled
sdb: I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
unable to read partition table
I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdc : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdc: 2097151 512-byte hdwr sectors (1074 MB)
sdc: test WP failed, assume Write Enabled
sdc: I/O error: dev 08:20, sector 0
I/O error: dev 08:20, sector 0
unable to read partition table
I/O error: dev 08:20, sector 0
I/O error: dev 08:20, sector 0
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdb : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdb: 2097151 512-byte hdwr sectors (1074 MB)
sdb: test WP failed, assume Write Enabled
sdb: I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
unable to read partition table
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdc : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdc: 2097151 512-byte hdwr sectors (1074 MB)
sdc: test WP failed, assume Write Enabled
sdc: I/O error: dev 08:20, sector 0
I/O error: dev 08:20, sector 0
unable to read partition table
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdb : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdb: 2097151 512-byte hdwr sectors (1074 MB)
sdb: test WP failed, assume Write Enabled
sdb: I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
unable to read partition table
usb.c: USB disconnect on device 00:1d.7-7 address 6
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdb : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdb: 2097151 512-byte hdwr sectors (1074 MB)
sdb: test WP failed, assume Write Enabled
sdb: I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
unable to read partition table
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdc : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdc: 2097151 512-byte hdwr sectors (1074 MB)
sdc: test WP failed, assume Write Enabled
sdc: I/O error: dev 08:20, sector 0
I/O error: dev 08:20, sector 0
unable to read partition table
sdd : READ CAPACITY failed.
sdd : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdd : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdd: 2097151 512-byte hdwr sectors (1074 MB)
sdd: test WP failed, assume Write Enabled
sdd: I/O error: dev 08:30, sector 0
I/O error: dev 08:30, sector 0
unable to read partition table
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdb : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdb: 2097151 512-byte hdwr sectors (1074 MB)
sdb: test WP failed, assume Write Enabled
sdb: I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
unable to read partition table
I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdc : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdc: 2097151 512-byte hdwr sectors (1074 MB)
sdc: test WP failed, assume Write Enabled
sdc: I/O error: dev 08:20, sector 0
I/O error: dev 08:20, sector 0
unable to read partition table
I/O error: dev 08:20, sector 0
I/O error: dev 08:20, sector 0
sdd : READ CAPACITY failed.
sdd : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdd : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdd: 2097151 512-byte hdwr sectors (1074 MB)
sdd: test WP failed, assume Write Enabled
sdd: I/O error: dev 08:30, sector 0
I/O error: dev 08:30, sector 0
unable to read partition table
I/O error: dev 08:30, sector 0
I/O error: dev 08:30, sector 0
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdb : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdb: 2097151 512-byte hdwr sectors (1074 MB)
sdb: test WP failed, assume Write Enabled
sdb: I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
unable to read partition table
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdc : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdc: 2097151 512-byte hdwr sectors (1074 MB)
sdc: test WP failed, assume Write Enabled
sdc: I/O error: dev 08:20, sector 0
I/O error: dev 08:20, sector 0
unable to read partition table
sdd : READ CAPACITY failed.
sdd : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdd : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdd: 2097151 512-byte hdwr sectors (1074 MB)
sdd: test WP failed, assume Write Enabled
sdd: I/O error: dev 08:30, sector 0
I/O error: dev 08:30, sector 0
unable to read partition table
hub.c: new USB device 00:1d.7-7, assigned address 7
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 7
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdb : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdb: 2097151 512-byte hdwr sectors (1074 MB)
sdb: test WP failed, assume Write Enabled
sdb: I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
unable to read partition table
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdc : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdc: 2097151 512-byte hdwr sectors (1074 MB)
sdc: test WP failed, assume Write Enabled
sdc: I/O error: dev 08:20, sector 0
I/O error: dev 08:20, sector 0
unable to read partition table
SCSI device sdd: 1000944 512-byte hdwr sectors (512 MB)
sdd: Write Protect is off
sdd: sdd1
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdb : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdb: 2097151 512-byte hdwr sectors (1074 MB)
sdb: test WP failed, assume Write Enabled
sdb: I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
unable to read partition table
I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdc : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdc: 2097151 512-byte hdwr sectors (1074 MB)
sdc: test WP failed, assume Write Enabled
sdc: I/O error: dev 08:20, sector 0
I/O error: dev 08:20, sector 0
unable to read partition table
I/O error: dev 08:20, sector 0
I/O error: dev 08:20, sector 0
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdb : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdb: 2097151 512-byte hdwr sectors (1074 MB)
sdb: test WP failed, assume Write Enabled
sdb: I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
unable to read partition table
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
sdc : block size assumed to be 512 bytes, disk size 1GB.
SCSI device sdc: 2097151 512-byte hdwr sectors (1074 MB)
sdc: test WP failed, assume Write Enabled
sdc: I/O error: dev 08:20, sector 0
I/O error: dev 08:20, sector 0
unable to read partition table
posted by sararah at 8:18 AM on June 5, 2008


Are you really using Red Hat 7 (the last RH release with a 2.2.x kernel, reached end-of-life back in 2004) as a workstation?
posted by PueExMachina at 6:12 PM on June 5, 2008 [1 favorite]


If you are using RH 7, then you really need to upgrade. Mounting and unmounting USB devices was always a little flaky in that release. I'm not sure about your network issues.

Even if you are using Fedora 7, you should upgrade.

Trust me, you'll be WAY happier with more recent distros.
posted by achmorrison at 8:19 PM on June 5, 2008


Response by poster: I can't really upgrade the system because the software requires Red Hat 7, and we aren't going to upgrade the software because it is like a $10k piece of molecular modeling software. So working with what we've got is the best option right now, thanks.
posted by sararah at 2:14 PM on June 6, 2008


« Older Thiamine for anxiety?   |   Latin translation Newer »
This thread is closed to new comments.