FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 05-10-2010, 08:51 PM
Brian Oney
 
Default New and stoopid

Hello Ubuntu,

I have been running xubuntu 9.04 for a few weeks now on a PPC Powerbook G4. The other day my flash drive dissappeared from my file system list and will not reappear. I have tried every single thing that I have found on the internet.

let me show you what:

# When I plug it in and then
rooster@roosters-laptop:~$ lsusb
Bus 001 Device 002: ID 05dc:a781 Lexar Media, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 05ac:8203 Apple, Inc. Bluetooth HCI
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

# then:
rooster@roosters-laptop:~$ sudo fdisk
-l
/dev/hda
┬*┬*┬*┬*┬*┬*┬* #┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬* type name┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬* length┬*┬* base┬*┬*┬*┬*┬* ( size )┬* system
/dev/hda1┬*┬*┬*┬* Apple_partition_map Apple┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬* 63 @ 1┬*┬*┬*┬*┬*┬*┬*┬* ( 31.5k)┬* Partition map
/dev/hda2┬*┬*┬*┬*┬*┬*┬*┬* Apple_Bootstrap untitled┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬* 1954 @ 64┬*┬*┬*┬*┬*┬*┬* (977.0k)┬* NewWorld bootblock
/dev/hda3┬*┬*┬*┬*┬*┬*┬*┬*
Apple_UNIX_SVR2 untitled┬*┬*┬*┬*┬*┬*┬*┬*┬*┬* 114201172 @ 2018┬*┬*┬*┬*┬* ( 54.5G)┬* Linux native
/dev/hda4┬*┬*┬*┬*┬*┬*┬*┬* Apple_UNIX_SVR2 swap┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬*┬* 3007050 @ 114203190 (┬* 1.4G)┬* Linux swap

Block size=512, Number of Blocks=117210240
DeviceType=0x0, DeviceId=0x0

# why not....
rooster@roosters-laptop:~$ mount
/dev/hda3 on / type ext3 (rw,relatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs
(rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)

# so then






[ 3883.727568] usb 1-1: new high speed USB device using ehci_hcd and address 2
[ 3883.869758] usb 1-1: configuration #1 chosen from 1 choice
[ 3884.508476] Initializing USB Mass Storage driver...
[ 3884.511205] scsi0 : SCSI emulation for USB Mass Storage devices
[ 3884.516220] usbcore: registered new interface driver usb-storage
[ 3884.516230] USB Mass Storage support registered.
[ 3884.516481] usb-storage: device found at 2
[ 3884.516485] usb-storage: waiting for device to settle before scanning
[ 3889.516758] usb-storage: device scan complete
[ 3891.186643] scsi 0:0:0:0: Direct-Access┬*┬*┬*┬* Lexar┬*┬*┬* JD FireFly┬*┬*┬*┬*┬*┬* 1100 PQ: 0 ANSI: 0 CCS
[ 3891.273925] Driver 'sd' needs updating - please use bus_type methods
[ 3891.278262] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 3891.289878] sd 0:0:0:0: Attached
scsi generic sg0 type 0

# further back up the last during initialization:
[┬*┬*┬* 5.760701] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[┬*┬*┬* 5.760736] ehci_hcd 0001:10:1b.2: enabling device (0004 -> 0006)
[┬*┬*┬* 5.760748] ehci_hcd 0001:10:1b.2: EHCI Host Controller
[┬*┬*┬* 5.760845] ehci_hcd 0001:10:1b.2: new USB bus registered, assigned bus number 1
[┬*┬*┬* 5.784168] ehci_hcd 0001:10:1b.2: irq 63, io mem 0x80080000
[┬*┬*┬* 5.796150] ehci_hcd 0001:10:1b.2: USB 2.0 started, EHCI 1.00

# then this.....

rooster@roosters-laptop:~$ sudo rmmod ehci_hcd
[sudo] password for rooster:
ERROR: Module ehci_hcd does not exist in /proc/modules

# then

rooster@roosters-laptop:~$ udevadm info --attribute-walk --name /dev/sda1
device node not found

The problem is most likely self-induced. I am new and
just went along blindly removing my flashdrive without mounting or unmounting it. This same USB drive used to show up on the desktop and in the file list. My Ipod shuffle will show up now but not this very important usb drive. I would really appreciate some help and please don´┐Żt tell me that I have to format it without recovering my data (life).

Thank you!
Brian




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 05-11-2010, 12:33 AM
ms
 
Default New and stoopid

On 10/05/10 21:51, Brian Oney wrote:

> rooster@roosters-laptop:~$ udevadm info --attribute-walk --name /dev/sda1
> device node not found
>
> The problem is most likely self-induced. I am new and just went along blindly removing my flashdrive without mounting or unmounting it. This same USB drive used to show up on the desktop and in the file list. My Ipod shuffle will show up now but not this very important usb drive. I would really appreciate some help and please don┤t tell me that I have to format it without recovering my data (life).

You broke it, you keep the pieces.

Check if /dev/sda (without the "1") exists. If yes, you can in the
meantime dump your device contents bit-by-bit in a file, for further
recovery, regardless of the filesystem having gone awry:

dd if=/dev/sda of=backup.dat bs=512

Then, you can try to recover your filesystem using your backup.

However, it is not stuff for the faint of heart. You can read a
description here of what black magic it can involve:
http://www.linuxjournal.com/article/8366?page=0,3

This utility could perhaps help (never tried it myself):
http://www.cgsecurity.org/wiki/TestDisk

Best of luck!
m.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 05-12-2010, 03:13 PM
Fred Roller
 
Default New and stoopid

On 05/10/2010 04:51 PM, Brian Oney wrote:



Hello Ubuntu,




[snip]





# then:

rooster@roosters-laptop:~$ sudo fdisk -l

/dev/hda

******* #******************* type name***************** length**
base***** ( size )* system

/dev/hda1**** Apple_partition_map Apple******************** 63 @
1******** ( 31.5k)* Partition map

/dev/hda2******** Apple_Bootstrap untitled*************** 1954 @
64******* (977.0k)* NewWorld bootblock

/dev/hda3******** Apple_UNIX_SVR2 untitled********** 114201172 @
2018***** ( 54.5G)* Linux native

/dev/hda4******** Apple_UNIX_SVR2 swap**************** 3007050 @
114203190 (* 1.4G)* Linux swap






hd* is usually indicative of an IDE drive or the like.* USB (flash,
thumb, external drives) usually come up sd* plus this looks like a
standard hard drive layout for bootable internal drive (hda = IDE
primary-master) with default partitioning.



try the following with your flash drive:



*** assumptions:

*** *** - you are comfortable with cli and know how to open terminal

*** *** - your flash drive is not > 16Gb (typical thumb/flash/jump
drive)



start with flash drive out



open terminal



type command:

***

*** watch -n 1 "dmesg | tail -n 20"



which should yeild (something like):



*** [158613.300039] usb 1-3: new high speed USB device using ehci_hcd
and address 6

*** [158613.452983] usb 1-3: configuration #1 chosen from 1 choice

*** [158613.453594] scsi8 : SCSI emulation for USB Mass Storage devices

*** [158613.453734] usb-storage: device found at 6

*** [158613.453735] usb-storage: waiting for device to settle before
scanning

*** [158618.450382] usb-storage: device scan complete

*** [158618.450857] scsi 8:0:0:0: Direct-Access**** Kingston
DataTraveler 2.0 1.00 PQ: 0 ANSI: 2

*** [158618.451374] sd 8:0:0:0: Attached scsi generic sg4 type 0

*** [158618.452466] sd 8:0:0:0: [sdd] 31506432 512-byte logical blocks:
(16.1 GB/15.0 GiB)

*** [158618.454331] sd 8:0:0:0: [sdd] Write Protect is off

*** [158618.454337] sd 8:0:0:0: [sdd] Mode Sense: 23 00 00 00

*** [158618.454339] sd 8:0:0:0: [sdd] Assuming drive cache: write
through

*** [158618.457843] sd 8:0:0:0: [sdd] Assuming drive cache: write
through

*** [158618.458333]* sdd: sdd1

********************************************* ^

*** [158618.689296] sd 8:0:0:0: [sdd] Assuming drive cache: write
through

*** [158618.689304] sd 8:0:0:0: [sdd] Attached SCSI removable disk



please note at the marker " ^ " the assigned device.



/if/ you get this in your dmesg listing then, provided you know your
filesytem on the drive then you could try:



*** sudo mount -t [your filesystem] /dev/[the assigned device] /mnt



example based on mine:



*** sudo mount -t ext3 /dev/sdd1 /mnt



if you can get this far then two things:



*** 1. back up your data, copy it from /mnt to some safe location.



*** 2. you may have broken your usb auto mount (beyond me without
research) but still have manual mounting capability.





[snip]





The problem is most likely self-induced. I am new and just went
along blindly removing my flashdrive without mounting or unmounting it.





lesson learned?* Flash drive needs to do it's thing before being
removed.* Normally no big deal if it's read only.





This same USB drive used to show up on the desktop and in the
file list. My Ipod shuffle will show up now but not this very important
usb drive.




Last time I ran in to this I removed the data as above then
repartitioned and reformatted.







I would really appreciate some help and please don┤t tell me
that I have to format it without recovering my data (life).



Thank you!

Brian










Hope this helps a bit.



Fred



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 10:12 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ę2007 - 2008, www.linux-archive.org