Mount Internal Drive in Linux - Vibrant General

I'm feeling a bit silly here, but how is everybody mounting their Internal Card in Linux in command line? Slackware 13.1
dmesg spits out a HUGE amount of data. I found this for the external sd.
usb 1-5: new high speed USB device using ehci_hcd and address 2
usb 1-5: configuration #2 chosen from 1 choice
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 7:0:0:0: Direct-Access SAMSUNG SGH-T959 Card 0000 PQ: 0 ANSI: 2
usb-storage: device scan complete
sd 7:0:0:0: [sdg] Attached SCSI removable disk
I mount that and well that's my External SD

I don't use slackware, I use Ubuntu, but try the following:
dmesg | grep sd?
You should see things like sg1 and sf1. The 's' stands for SCSI, which is the susbsystem that handles the SD cards, the second letter is the letter of the drive, and the number is the number of the partition.
You can use fdisk to check /dev/sd? as well, where the? is various letters.
Hope that helps.
Sent from my SGH-T959 using XDA App

Thanks yeah its showing
sda - sdg
Of coursse sda-sdf are all my drives and sdg seems to be the 2gig drive, but no sign of the 16gig internal.
Same results in Debug mode.

Unmount the 2 gig and try to mount the 16 manually.

kizer said:
Thanks yeah its showing
sda - sdg
Of coursse sda-sdf are all my drives and sdg seems to be the 2gig drive, but no sign of the 16gig internal.
Same results in Debug mode.
Click to expand...
Click to collapse
Is your phone in USB Debugging mode? If so, turn that off and try again.
Settings->Applications->Development->USB Development

NoDataFound said:
Unmount the 2 gig and try to mount the 16 manually.
Click to expand...
Click to collapse
I'll try that later when I get home. I was hoping I could avoid that, but I just can't get dmesg to even see the 16gig.

IDtheTarget said:
Is your phone in USB Debugging mode? If so, turn that off and try again.
Settings->Applications->Development->USB Development
Click to expand...
Click to collapse
I've tried it off and on. I know some mac users reported not being able to see it unless it was in debugging mode.
I normally only use windows for things, but I have this unRAID server and figured why not run some scripts so I could just plug in my phone and back it up and/or sync files one way or both. Just kinda stumping me why it doesn't like to see the 16gig LOL.

have you tried:
Code:
df -h
that should list all file systems and relevant sizes so it should be easy to identify (i think).
hope this helps.

Here is how ā€œIā€ solved the mounting problem with my Android based Asus TFP Tablet. You might try it.

Related

Can't mount G1 in Ubuntu?

For some reason I cannot mount my G1 in Ubuntu/Intrepid....the SD Card reads just fine through a USB reader, but when I plug in the G1 and touch "Mount," nothing happens on the desktop. I get a lot of garbage when I run dmesg which concludes with:
Code:
[ 4246.867266] end_request: I/O error, dev sdc, sector 0
[ 4246.867562] ldm_validate_partition_table(): Disk read failed.
[ 4246.867685] Dev sdc: unable to read RDB block 0
[ 4246.867887] unable to read partition table
If I try to manually mount with mount -t vfat, it says "Can't read superblock". I can mount successfully using -t usbfs so it is "seeing" the device...
I also tried formatting one of the cards with mkdosfs
Same behavior with both the factory 1GB card and a Kingston 8GB.
I read somewhere that perhaps it ONLY works with a USB 2.0 host controller (I have only 1.1 in this old box), but it was on the t-mobile forum which I do not consider to be all that reliable.
Can anyone corroborate the USB 2.0 theory or offer any suggestions?
Thanks!
Heya, I was in #android trying to help earlier .
As I said in IRC, USB 1.1 is flaky. It's not just T-Mobile forums that say this. Try a 2.0 port and it should work.
Edit: is the Windows machine you tried it on on the same PC? I remember you saying it mounted fine in Windows, but if it's on a separate machine with a 2.0 port that's kinda moot.
Must have been someone else in IRC, but thanks for trying to help both of us
Perhaps I will see if I can find USB2.0 controller laying around somewhere and then I could at least rule out that issue. Until then I can use the USB reader at least.
This is not really any help for you, but I run Kubuntu Intrepid and have had no trouble mounting my G1's SD-card over USB. It's a relatively new computer, though, so I know it's got a USB 2.0 controller on board.
If the controller is the issue, new ones can be found for less than $12 in whatever card format your desktop or laptop requires.
jzerocsk said:
For some reason I cannot mount my G1 in Ubuntu/Intrepid....the SD Card reads just fine through a USB reader, but when I plug in the G1 and touch "Mount," nothing happens on the desktop. I get a lot of garbage when I run dmesg which concludes with:
Code:
[ 4246.867266] end_request: I/O error, dev sdc, sector 0
[ 4246.867562] ldm_validate_partition_table(): Disk read failed.
[ 4246.867685] Dev sdc: unable to read RDB block 0
[ 4246.867887] unable to read partition table
If I try to manually mount with mount -t vfat, it says "Can't read superblock". I can mount successfully using -t usbfs so it is "seeing" the device...
I also tried formatting one of the cards with mkdosfs
Same behavior with both the factory 1GB card and a Kingston 8GB.
I read somewhere that perhaps it ONLY works with a USB 2.0 host controller (I have only 1.1 in this old box), but it was on the t-mobile forum which I do not consider to be all that reliable.
Can anyone corroborate the USB 2.0 theory or offer any suggestions?
Thanks!
Click to expand...
Click to collapse
I had this problem too, and it seems that when you write files to it, they disappear...try formatting on a windows box and see what happens...
pdspatrick said:
I had this problem too, and it seems that when you write files to it, they disappear...try formatting on a windows box and see what happens...
Click to expand...
Click to collapse
Yikes...i at least haven't had any disappearing files I will also try formatting the card in Windows just to see if it helps.

external HDD with 2 or more partitions not detected

hi ....
as title
anyone else got this problem ?
my external HDD has 280gb of fat32 and 40gb of ntfs
Which partition is first? If the fat32 is first, I would expect it to automount. The tablet doesn't support NTFS out of the box. Search these forums for NTFSMOUNT. That will allow you to mount the ntfs partition. If your fat32 is not first, you may need to mount it manually.
Sent from my A500 using Tapatalk
Euclid's Brother said:
Which partition is first? If the fat32 is first, I would expect it to automount. The tablet doesn't support NTFS out of the box. Search these forums for NTFSMOUNT. That will allow you to mount the ntfs partition. If your fat32 is not first, you may need to mount it manually.
Sent from my A500 using Tapatalk
Click to expand...
Click to collapse
the fat32 is first, then the ntfs
i tried ntfs mount, it wont show the device at all
iconia wont detect my hdd at all
actually does anyone here tried hdd with partitions ?
That's odd that it doesn't pick up the first partition. Even a drive that isn't split has partitions on it.
muqali said:
That's odd that it doesn't pick up the first partition. Even a drive that isn't split has partitions on it.
Click to expand...
Click to collapse
yeah.. thats it...
is my hdd not supported or what?
is there any compatibility hdd list for iconia ??
cause if i plug my 4gb thumb it will directly recognized ..
My Cruzer USB drive has a cdfs and fat32 partitiin, the main (fat32) partition is fine but won't show the cdfs volume.
I suspect the mount scripts are written for single volume drives or primary partition only.
Could it be that it's a Dynamic drive instead of a Basic Drive? When you connect it to windows and look at the drive partition, it should say in the left border of the drive. Not sure if Android can read a Dynamic drive. Worth a check..
Vereynn said:
My Cruzer USB drive has a cdfs and fat32 partitiin, the main (fat32) partition is fine but won't show the cdfs volume.
I suspect the mount scripts are written for single volume drives or primary partition only.
Click to expand...
Click to collapse
Vereynn, I'm assuming it's a U3 Sandisk Cruzer. They make an app(Sandisk does) that removes U3 from it. U3 is notoriously insecure and they dropped support for it anyway. If you want it or need help finding it I can point you in that direction. Only thing I could think of is maybe the Iconia doesn't support GPT partitions, only MBR/MSDOS style. Why a 320GB USB drive would have that I don't know though, unless you specifically set it up like that with parted or something.
Euclid's Brother said:
Could it be that it's a Dynamic drive instead of a Basic Drive? When you connect it to windows and look at the drive partition, it should say in the left border of the drive. Not sure if Android can read a Dynamic drive. Worth a check..
Click to expand...
Click to collapse
i am using MAC OSX
how can i check ?
I'm pretty sure OS X doesn't support dynamic drives, so I doubt he has one.
muqali said:
Vereynn, I'm assuming it's a U3 Sandisk Cruzer. They make an app(Sandisk does) that removes U3 from it. U3 is notoriously insecure and they dropped support for it anyway. If you want it or need help finding it I can point you in that direction. Only thing I could think of is maybe the Iconia doesn't support GPT partitions, only MBR/MSDOS style. Why a 320GB USB drive would have that I don't know though, unless you specifically set it up like that with parted or something.
Click to expand...
Click to collapse
Yep, it's a U3 device. I don't actually use it for much, I got one of the Costco 4packs a while back and they all just sit around my desk now, but it's the only external drive I have with multiple volumes on it for testing So thanks but no real reason for killing the U3 "CD" partition, it's heading for a landfill eventually
My normal go-to USB stick is a 16GB Toshiba with a single FAT32 volume.
One of these days I'll put one of my HP laptop drives back into its DIY external case and see what the Iconia thinks about it. 3 partitions I think (one for BIOS, one NTFS for normal use and a FAT32 for recovery images)

[Q] Trouble mounting usb hdd and usb question :-)

Have a old 60gb external USB 2.0 hdd - formatted fresh using FAT - drive tests fine.
Cannot seem to get my a500 to use it - tried the "drive mount" tool from the market and I see my hdd under unmounted devices, when I try to mount it I get "driver for sda1 failed to load".
Running 3.1 early release, rooted.
One more question I had about USB - can I plug a powered or unpowered USB hub into the a500 and use both external keyboard / mouse at the same time?
(Edit: issue resolved. For some reason a full format using FAT produced a bad volume, whereas a full ntfs format worked like a charm. Next step: powered USB hub and I am gonna be so happy)
old drive
Is it in a old drive bay.some of the older external drive bays take alot of power. If it has a external power adaptor you might have to use it pluged iin. And trybto have your tablet pouted into power outlet as well.it helps with my 3.5 500 gig drive bay
Check
Yup - it's a older model and requires external power, which was plugged in - as well as the tab.
Formatted drive using Windows 7 - FAT was not a option, only exFAT or ntfs. Did full format.
Mount utility sees the drive - just cannot mount it. Might try a reformat from a older system and see if that helps.
entropy.of.avarice said:
Have a old 60gb external USB 2.0 hdd - formatted fresh using FAT - drive tests fine.
Cannot seem to get my a500 to use it - tried the "drive mount" tool from the market and I see my hdd under unmounted devices, when I try to mount it I get "driver for sda1 failed to load".
Running 3.1 early release, rooted.
One more question I had about USB - can I plug a powered or unpowered USB hub into the a500 and use both external keyboard / mouse at the same time?
Click to expand...
Click to collapse
Try formatting to ntfs, then use this to mount it. Works with my 750 gb external drive and it shows up under memory in settings. Also, yes both types of USB hubs, should work.
OK so I'm new and I can't post a link to Mega upload, but I can PM you the link if you like.
dogbots159 said:
Try formatting to ntfs, then use this to mount it. Works with my 750 gb external drive and it shows up under memory in settings. Also, yes both types of USB hubs, should work.
OK so I'm new and I can't post a link to Mega upload, but I can PM you the link if you like.
Click to expand...
Click to collapse
You nailed it - works like a charm. Thank you very much - going out of town soon, really need the storage.
Now if I could just *find* my damn USB hub
Which software you guys use for formating the hdd??....which format you guys use....?...can I use pupply linux for formating the hdd??
Sent from my XT720 using XDA App
vari9 said:
Which software you guys use for formating the hdd??....which format you guys use....?...can I use pupply linux for formating the hdd??
Sent from my XT720 using XDA App
Click to expand...
Click to collapse
I am doing this on a rooted a500 running the early release of 3.1 - just used my Windows 7 desktop to format the drive as NTFS - using a free software package from market called "drive mount" which can mount lots of different devices. If you are not rooted - pretty sure the USB drive has to be FAT file system for it to work.
Sure, you can use Linux for the format - plenty of freeware tools for Linux that will do this for you in a nice GUI setting
I was planning pn using the gparted partition manager on puppy linux..........is it good enough?......and will my hdd suffer memory loss when I format it to fat32??
Sent from my XT720 using XDA App
vari9 said:
I was planning pn using the gparted partition manager on puppy linux..........is it good enough?......and will my hdd suffer memory loss when I format it to fat32??
Sent from my XT720 using XDA App
Click to expand...
Click to collapse
Generally reformatting a drive will delete all data on said drive. Would recommend backing it all up, formatting it - and restoring it.
Do you have root on your Iconica? If so - you should be able to mount the drive pretty much regardless of what format it is in - what type of file system is it?
I haven't rooted my device......and I meant free memory loss.....would the hdd size decrease??
Sent from my XT720 using XDA App

[Q] Broken Galaxy S Plus data recovery

Hello everyone
I've got a Galaxy S Plus which has a completely broken screen, so I cannot see anything on it. Also the battery was lost. (my brother has got the same phone, so this would not be such a big problem to use his battery) But all the other internal hardware is not damaged (afaik).
I disassembled the phone to see if I could change the display if I would buy a new one. Now I am at the point that I have a completely disassembled phone (which I can put together as well).
My Question is, if there is any option to recover the data on the internal storage? Maybe just access the storage through USB (which parts do I need to re-assemble?)? It would be fine if anyone could help me get the data from the broken phone.
I added a photo from the disassembled phone below.
**EDIT:
I connected the board with the SD storage to the battery and via USB to my linux box.
When I press the button on the phone to turn it on, i can see the following output in dmesg:
Code:
[22306.776199] usb 2-1.2: new high-speed USB device number 9 using ehci_hcd
[22306.869673] cdc_acm 2-1.2:1.0: This device cannot do calls on its own. It is not a modem.
[22306.869706] cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device
[22306.870818] scsi14 : usb-storage 2-1.2:1.2
[22307.868982] scsi 14:0:0:0: Direct-Access SAMSUNG GT-I9001 Card 0327 PQ: 0 ANSI: 2
[22307.869476] scsi 14:0:0:1: Direct-Access SAMSUNG GT-I9001 Card 0327 PQ: 0 ANSI: 2
[22307.870388] sd 14:0:0:0: Attached scsi generic sg6 type 0
[22307.870629] sd 14:0:0:1: Attached scsi generic sg7 type 0
[22307.877012] sd 14:0:0:0: [sdf] Attached SCSI removable disk
[22307.880186] sd 14:0:0:1: [sdg] Attached SCSI removable disk
But I cannot mount the devices: "mount: no medium found on /dev/sdf" "mount: no medium found on /dev/sdg"
In the Disk Uitlity I can see the two "devices", but it says "no device recognized".

[Q] Computer Doesn't See USB

I am running CM10.1 from a mSD card. When I connect my NC to my computer via USB cable it isn't recognized. The NC is recognized with the mSD card out of the NC and booted into the NC's OS. Computer OS is Linux. I ran fdisk -l just to check and card in it is not seen. Is the NC recognized only with no card in or what. The CM10 was unlocked. I wanted to transfer some book files over. Will I have to pull the card and plug it into my computer?
Try going into settings > storage > USB computer connection and make sure that your device isn't showing up as a Media Device (MTP).
In other words, ensure that your device is being mounted as a Mass storage device.
serine said:
Try going into settings > storage > USB computer connection and make sure that your device isn't showing up as a Media Device (MTP). In other words, ensure that your device is being mounted as a Mass storage device.
Click to expand...
Click to collapse
Thank you for the answer but I suspect that was a Windows answer not a Linux answer but it gives me a place to start looking. I'll try running running "lsusb" again.
Ray2047 said:
Thank you for the answer but I suspect that was a Windows answer not a Linux answer but it gives me a place to start looking. I'll try running running "lsusb" again.
Click to expand...
Click to collapse
I meant to try inspecting the settings on your nook. Mass storage devices should appear irrespective of the computer platform. I've used my NC as a usb volume to move files to-and-from linux devices before.
Since you mention that the computer can see your NC as a storage device but not the SD card, it may be an issue with a setting on the NC (not the computer). Or not! One thing about linux is that there is quite a bit of variability between different users' setups.
serine said:
Try going into settings > storage > USB computer connection .
Click to expand...
Click to collapse
Thanks for your patience. I do not show a USB computer connection in storage. What I did notice though maybe not related is that Unmount SD card and Erase SD card are grayed out when the USB cable is plugged in.
There should be a menu icon - 3 dots in the upper right in settings>storage
Sent from my NookColor using xda app-developers app
That did it thank you. It was set on MTP and I moved it to mass storage.
webyrd said:
There should be a menu icon - 3 dots in the upper right in settings>storage
Sent from my NookColor using xda app-developers app
Click to expand...
Click to collapse

Categories

Resources