Upgrade to Dapper Drake--won't mount/read thumb drive

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Upgrade to Dapper Drake--won't mount/read thumb drive

Post by Dave »

Ok, I recently upgraded to Dapper Drake, and now, despite having used various linux forums advice (to other people) , I can't get my thumb drive to mount reliably. (maybe one in ten times)

I'm using Kubuntu Dapper Drake and I'm trying to mount an imation 128 MB flash drive.

When I attempted to mount it earlier, I got something along the lines of "could not determine filetype."

So I edited the fstab from "auto" to "vfat" (its FAT32)

Now I get "mount: special device /dev/sda1 does not exist"

The applicable fstab line currently reads:

Code: Select all

 /dev/sda1 /mnt/usb vfat users,atime,noauto,rw,dev,exec,suid 0 0
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Post by Dave »

It works on other computers/ OS's, yes.

For lsmod (which I have never heard of before), I see (among other things):

Code: Select all

Module           Used By
vfat                 0
fat                   1 vfat
usb_storage     1
usblp               0
uhci_hcd           0
usbcore           5 usb_storage, usblp, ehci_hcd, uhci_hcd

Question: If I "don't see something", how am I supposed to know what to modprobe? What is modprobe anyway? Is that like (roughly) pinging the module?

I'm kinda new to Linux, but I'm learning. (that is, every time I kill the spare partition on my ancient laptop)

Thanks for your help!
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Post by Dave »

Sorry for the delay.

When I attempted to mount :

sudo mount /dev/sda1 /mnt/usb

I got error:

mount: you must specify the filesystem type

dmesg|tail results in

Code: Select all

[17330102.592000] sdb: assuming drive cache: write through
[17330102.596000] SCSI device sdb: 249344 512-byte hdwr sectors (128 MB)
[17330102.596000] sdb: Write Protect is off
[17330102.596000] sdb: Mode Sense: 03 00 00 00
[17330102.596000] sdb: assuming drive cache: write through
[17330102.596000]  sdb: sdb1
[17330102.596000] sd 10:0:0:0: Attached scsi removable disk sdb
[17330102.596000] sd 10:0:0:0: Attached scsi generic sg0 type 0
[17330102.600000] usb-storage: device scan complete
[17330111.608000] DROPPED IN=ppp0 OUT= MAC= SRC=65.38.99.151 DST=68.92.121.213 LEN=1091 TOS=0x00 PREC=0x00 TTL=116 ID=58123 PROTO=UDP SPT=26668 DPT=1026 LEN=1071
and fstab

Code: Select all

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
/dev/hda5 none swap sw 0 0
/dev/hdd /media/cdrom0 auto user,atime,auto,rw,dev,exec,suid 0 0
/dev/hdb1 /mnt/windows ntfs umask=0222,uid=0,gid=0,auto,ro,nouser 0 0
reveals no addition of sda1

----------------------------------------------------------------------

After unplugging the drive:

dmesg|tail results in:

Code: Select all

[17330571.192000] REJECTED IN=ppp0 OUT= MAC= SRC=83.225.172.222 DST=68.92.121.21
3 LEN=48 TOS=0x00 PREC=0x00 TTL=98 ID=34260 DF PROTO=TCP SPT=4201 DPT=6346 SEQ=1
937617804 ACK=0 WINDOW=16384 RES=0x00 SYN URGP=0 OPT (020405B401010402)
[17330573.664000] REJECTED IN=ppp0 OUT= MAC= SRC=83.225.172.222 DST=68.92.121.21
3 LEN=48 TOS=0x00 PREC=0x00 TTL=98 ID=34385 DF PROTO=TCP SPT=4201 DPT=6346 SEQ=1                                                              937617804 ACK=0 WINDOW=16384 RES=0x00 SYN URGP=0 OPT (020405B401010402)
[17330579.896000] DROPPED IN=ppp0 OUT= MAC= SRC=24.162.24.166 DST=68.92.121.213                                                               LEN=1058 TOS=0x00 PREC=0x00 TTL=116 ID=46487 PROTO=UDP SPT=31201 DPT=1026 LEN=10                                                              38
[17330637.024000] REJECTED IN=ppp0 OUT= MAC= SRC=83.225.172.222 DST=68.92.121.21                                                              3 LEN=48 TOS=0x00 PREC=0x00 TTL=98 ID=39108 DF PROTO=TCP SPT=4610 DPT=6346 SEQ=2                                                              697018439 ACK=0 WINDOW=16384 RES=0x00 SYN URGP=0 OPT (020405B401010402)
[17330639.396000] REJECTED IN=ppp0 OUT= MAC= SRC=83.225.172.222 DST=68.92.121.21                                                              3 LEN=48 TOS=0x00 PREC=0x00 TTL=98 ID=39172 DF PROTO=TCP SPT=4610 DPT=6346 SEQ=2                                                              697018439 ACK=0 WINDOW=16384 RES=0x00 SYN URGP=0 OPT (020405B401010402)
[17330642.636000] DROPPED IN=ppp0 OUT= MAC= SRC=146.56.10.73 DST=68.92.121.213 L                                                              EN=404 TOS=0x00 PREC=0x00 TTL=52 ID=33409 PROTO=UDP SPT=30372 DPT=1026 LEN=384
[17330645.380000] REJECTED IN=ppp0 OUT= MAC= SRC=83.225.172.222 DST=68.92.121.21                                                              3 LEN=48 TOS=0x00 PREC=0x00 TTL=98 ID=39385 DF PROTO=TCP SPT=4610 DPT=6346 SEQ=2                                                              697018439 ACK=0 WINDOW=16384 RES=0x00 SYN URGP=0 OPT (020405B401010402)
[17330647.604000] usb 4-6: USB disconnect, address 13
[17330663.180000] REJECTED IN=ppp0 OUT= MAC= SRC=83.225.172.222 DST=68.92.121.21                                                              3 LEN=48 TOS=0x00 PREC=0x00 TTL=98 ID=41204 DF PROTO=TCP SPT=4761 DPT=6346 SEQ=4                                                              18905116 ACK=0 WINDOW=16384 RES=0x00 SYN URGP=0 OPT (020405B401010402)
[17330670.584000] REJECTED IN=ppp0 OUT= MAC= SRC=83.225.172.222 DST=68.92.121.21                                                              3 LEN=48 TOS=0x00 PREC=0x00 TTL=98 ID=41767 DF PROTO=TCP SPT=4761 DPT=6346 SEQ=4                                                              18905116 ACK=0 WINDOW=16384 RES=0x00 SYN URGP=0 OPT (020405B401010402)
WTF? It looks like a bunch of dropped TCP/IP requests...

Anyway, fstab returns:

Code: Select all

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
/dev/hda5 none swap sw 0 0
/dev/hdd /media/cdrom0 auto user,atime,auto,rw,dev,exec,suid 0 0
/dev/hdb1 /mnt/windows ntfs umask=0222,uid=0,gid=0,auto,ro,nouser 0 0
No apparent change.

Thanks for the help.

**Side note: I said I was new to Linux because I still felt new, but I've been using it for about a year. If you say I'm... marginally competent, then that forces me to revise my self-esteem/self-confidence in Linux in an upward direction. :)
User avatar
General Zod
Never Shuts Up
Posts: 29211
Joined: 2003-11-18 03:08pm
Location: The Clearance Rack
Contact:

Post by General Zod »

What type of filing system is your usb key formatted to? NTFS or FAT32? Linux is rather picky about reading unsupported systems.
"It's you Americans. There's something about nipples you hate. If this were Germany, we'd be romping around naked on the stage here."
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post by Pu-239 »

You shouldn't have to edit fstab- usually HAL calls pmount to automatically mount the drives as a user when the user mounts the drive, assuming you're using GNOME (pmount doens't modify fstab). KDE might support this, not sure.

Thumbdrives shouldn't be hardcoded into fstab since you may have more than one plugged in at a time, sometimes the assignements get inconsistent, gets screwy if you have SATA which also uses sd* (fun if you happen to format /dev/sda1 and it happens to be your SATA drive), etc. The thumbdrive could also appear on sdb, sdc, etc.


Seems like the FS is corrupt or something- does it read under Windows? Try running scandisk, if that fails try copying files to HDD, and repartitioning/formatting it on Linux.

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Post by Dave »

The thumb drive is formatted as FAT32.

Before I upgraded from Breezy to Dapper, sda1 was the USB drive. It would mount automatically when I plugged it in.

It reads and writes OK under Windows.

To my knowledge I am not using SATA, but I haven't looked under the hood yet. (My parents bought it from a local computer shop, and the shop recommended they try Linux. I agreed, knowing (because I'm the family teenage computer guy) that I would end up having to teach them and myself at the same time. But what the hell...)
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Post by Dave »

GE: The drive is actually formated as FAT.
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post by Pu-239 »

Try running 'sudo tail -f /var/log/syslog' before plugging in your flash drive , plug it in, and post the results- I belive the automounter should write to that log. I don't have a USB drive on hand to test though, and I'm not precisely sure how the KDE equivalent of gnome-volume-manager works. Have you tried manual mounting?

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Post by Dave »

syslog before

Code: Select all

Jul 22 14:48:18 localhost kernel: [17447132.980000]  sdb: sdb1
Jul 22 14:48:18 localhost kernel: [17447132.984000] sd 12:0:0:0: Attached scsi removable disk sdb
Jul 22 14:48:18 localhost kernel: [17447132.984000] sd 12:0:0:0: Attached scsi generic sg0 type 0
Jul 22 14:48:18 localhost kernel: [17447132.992000] usb-storage: device scan complete
Jul 22 14:48:57 localhost kernel: [17447171.772000] REJECTED IN=ppp0 OUT= MAC= SRC=83.225.154.231 DST=68.92.121.213 LEN=48 TOS=0x00 PREC=0x00 TTL=98 ID=1628 DF PROTO=TCP SPT=1256 DPT=6346 SEQ=849278997 ACK=0 WINDOW=16384 RES=0x00 SYN URGP=0 OPT (020405B401010402)
Jul 22 14:48:59 localhost kernel: [17447173.816000] REJECTED IN=ppp0 OUT= MAC= SRC=83.225.154.231 DST=68.92.121.213 LEN=48 TOS=0x00 PREC=0x00 TTL=98 ID=1701 DF PROTO=TCP SPT=1256 DPT=6346 SEQ=849278997 ACK=0 WINDOW=16384 RES=0x00 SYN URGP=0 OPT (020405B401010402)
Jul 22 14:48:59 localhost kernel: [17447174.056000] REJECTED IN=ppp0 OUT= MAC= SRC=83.225.154.231 DST=68.92.121.213 LEN=48 TOS=0x00 PREC=0x00 TTL=98 ID=1706 DF PROTO=TCP SPT=1256 DPT=6346 SEQ=849278997 ACK=0 WINDOW=16384 RES=0x00 SYN URGP=0 OPT (020405B401010402)
Jul 22 14:49:45 localhost kernel: [17447219.276000] usb 4-6: USB disconnect, address 15
Jul 22 14:50:24 localhost kernel: [17447258.348000] REJECTED IN=ppp0 OUT= MAC= SRC=83.225.154.231 DST=68.92.121.213 LEN=48 TOS=0x00 PREC=0x00 TTL=98 ID=6142 DF PROTO=TCP SPT=1680 DPT=6346 SEQ=1076213371 ACK=0 WINDOW=16384 RES=0x00 SYN URGP=0 OPT (020405B401010402)
Jul 22 14:50:25 localhost kernel: [17447259.512000] ABORTED IN=ppp0 OUT= MAC= SRC=62.212.84.201 DST=68.92.121.213 LEN=40 TOS=0x00 PREC=0x00 TTL=52 ID=0 DF PROTO=TCP SPT=80 DPT=1584 SEQ=2175852059 ACK=0 WINDOW=0 RES=0x00 RST URGP=0

syslog after

Code: Select all

Jul 22 14:52:18 localhost kernel: [17447373.060000] sdb: Mode Sense: 03 00 00 00
Jul 22 14:52:18 localhost kernel: [17447373.060000] sdb: assuming drive cache: write through
Jul 22 14:52:18 localhost kernel: [17447373.064000] SCSI device sdb: 249344 512-byte hdwr sectors (128 MB)
Jul 22 14:52:18 localhost kernel: [17447373.064000] sdb: Write Protect is off
Jul 22 14:52:18 localhost kernel: [17447373.064000] sdb: Mode Sense: 03 00 00 00
Jul 22 14:52:18 localhost kernel: [17447373.064000] sdb: assuming drive cache: write through
Jul 22 14:52:18 localhost kernel: [17447373.064000]  sdb: sdb1
Jul 22 14:52:18 localhost kernel: [17447373.064000] sd 13:0:0:0: Attached scsi removable disk sdb
Jul 22 14:52:18 localhost kernel: [17447373.064000] sd 13:0:0:0: Attached scsi generic sg0 type 0
Jul 22 14:52:18 localhost kernel: [17447373.068000] usb-storage: device scan complete
Also, what do you mean by manual mounting. Is that just mounting from command prom--- I mean shell?

If so, I have tried that and got the same message as that in the GUI:

Command: sudo mount -t vfat /dev/sda1 /mnt/usb
Result : mount: special device /dev/sda1 does not exist
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Post by Dave »

sdb1 *sigh* :banghead:

"mount" compleated successfully.

Thanks for your help in tracking down the problem.

So to make this permanent, I would put

/dev/sdb1 /mnt/usb vfat users,atime,noauto,rw,dev,exec,suid 0 0

into fstab?
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Post by Dave »

Aw, crap.

I mounted the drive and opened /mnt/usb to look through the contents. There was nothing there.

Then I realized that there had not been anything there, as I had moved it all off the drive to format it in Windows. So I moved it back.

There was still nothing in the /mnt/usb folder. I tried to mount it again.

Command: sudo mount -t vfat /dev/sdb1 /mnt/usb
Error Response: mount: special device /dev/sdb1 does not exist

Command: sudo mount -t vfat /dev/sda1 /mnt/usb
Error Response: mount: special device /dev/sda1 does not exist

Command: sudo mount -t vfat /dev/sdc1 /mnt/usb

This final command went through successfully, and I was able to read from the contents of /mnt/usb/

Is it slowly filling up drive slots? Can I make some kind of script that auto-mounts the drive when I click it?

Or can I permanently mount it in fstab?
User avatar
EnsGabe
Youngling
Posts: 54
Joined: 2006-07-10 09:49pm

Post by EnsGabe »

Are you unmounting the drive before you're removing it from your machine?
The Monarch: "Anyone wanna explain to me why my coccoon is charred?"
24: "Because you told us to blow it up"
The Monarch: "And why it is sideways?"
21: "We were following orders! You can't yell at us for following orders."
24: "Or kill us for following orders."
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Post by Dave »

Well, no. How do I do that? Isn't that umount?
Post Reply