Active Topics

 


Reply
Thread Tools
Posts: 9 | Thanked: 2 times | Joined on Feb 2010
#11
Here is some stats, you can see that I have just put in another 2GB SD card to test.

Both are correct in size/detection but show no partitions. Both have partitions and data on the phone.

-----

[305111.462290] sd 17:0:0:0: Attached scsi generic sg2 type 0
[305111.462560] sd 17:0:0:1: Attached scsi generic sg3 type 0
[305111.472846] sd 17:0:0:0: [sdc] 56631296 512-byte logical blocks: (28.9 GB/27.0 GiB)
[305111.473509] sd 17:0:0:1: [sdd] Attached SCSI removable disk
[305111.474249] sd 17:0:0:0: [sdc] Write Protect is off
[305111.474257] sd 17:0:0:0: [sdc] Mode Sense: 0f 00 00 00
[305111.474263] sd 17:0:0:0: [sdc] Assuming drive cache: write through
[305111.475872] sd 17:0:0:0: [sdc] Assuming drive cache: write through
[305111.475883] sdc:
[305111.480115] sd 17:0:0:0: [sdc] Assuming drive cache: write through
[305111.480126] sd 17:0:0:0: [sdc] Attached SCSI removable disk
[305115.438031] sd 17:0:0:1: [sdd] 3921920 512-byte logical blocks: (2.00 GB/1.87 GiB)
[305115.438626] sd 17:0:0:1: [sdd] Assuming drive cache: write through
[305115.441882] sd 17:0:0:1: [sdd] Assuming drive cache: write through
[305115.441894] sdd:
brent@brent-laptop:~/Download$ sudo fdisk /dev/sdc

The number of cylinders for this disk is set to 27652.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdc: 29.0 GB, 28995223552 bytes
64 heads, 32 sectors/track, 27652 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical / optimal IO): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System

Command (m for help): q

brent@brent-laptop:~/Download$ sudo fdisk /dev/sdd

Command (m for help): p

Disk /dev/sdd: 2008 MB, 2008023040 bytes
62 heads, 62 sectors/track, 1020 cylinders
Units = cylinders of 3844 * 512 = 1968128 bytes
Sector size (logical / optimal IO): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System

Command (m for help): q


----


Thanks
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#12
Originally Posted by daemonk View Post
On the phone itself, I can view the stats on the device as well as the files inside, so the device is working on the phone.
Ah, that probably means that some processes have open files on the cards, which prevents the N900 from unmounting them and thus exporting them over USB.
 
Posts: 9 | Thanked: 2 times | Joined on Feb 2010
#13
Just did a test to confirm. All applications are closed. This is a new phone so haven't installed anything that might be using files in the background.

In file manager on the phone the storage devices remove when I connect and the phone does say USB Connected.

So appears that the phone is locking it correctly when connecting to the PC.
 
Posts: 148 | Thanked: 92 times | Joined on Oct 2009
#14
I would try rebooting the phone, plugging it in, rebooting the Ubuntu machine, and plugging it in again.

Edit: I know it's the standard thing and you might already have tried, but it's worked wonders before, so hopefully worth mentioning.

Last edited by dmj726; 2010-02-25 at 10:16.
 
Posts: 9 | Thanked: 2 times | Joined on Feb 2010
#15
Hi, just back from a reboot.

Interestingly the 2GB device (external SD card) that I put in to test previously now automounts perfectly and I can browse the directories. So a fruitful reboot

If I mount the 29GB internal storage manually with sudo mount..., I can now see a few files, none of the audio and video that I can see from the phone.

I even managed to create an empty text file on the 29GB device which I viewed on the phone. - needed to create as root.

So a solution for me seems to be, manually editing the fstab to setup a mount and rights for this device. A totally workable solution.

It is however not an automount

EDIT: this is what I have as my fstab to mount this nicely

/dev/sdb /media/n900 vfat dmask=027,uid=1000,gid=1000,fmask=137,user,auto 0 0


Thanks!

Last edited by daemonk; 2010-02-25 at 12:02.
 
Posts: 293 | Thanked: 76 times | Joined on Jan 2008 @ Fremantle, W. Australia
#16
Originally Posted by slender View Post
What micro-SD card? Do you have telepathic skills :P

This is general Sub-Forum.
Ok, I might have said "micro or full SD" in case you have a 770 or N800. But sometimes you can tell a new (N900) maemo user from the question

Did you try rebooting the Ubuntu box in case the kernel mount tables are mixed up? (I'm assuming you are not running Ubuntu ARM NIT remix.)
You should not need a manual fstab entry.
 

The Following User Says Thank You to myk For This Useful Post:
Posts: 149 | Thanked: 140 times | Joined on Sep 2009 @ YUL
#17
"Did you try rebooting the Ubuntu box in case the kernel mount tables are mixed up?"

That would be my thought also. Is that a fresh Ubuntu install ? How did you install it ? From CD or from USB key ?

Last edited by Mandor; 2010-02-26 at 01:49. Reason: Typo
 

The Following User Says Thank You to Mandor For This Useful Post:
Posts: 9 | Thanked: 2 times | Joined on Feb 2010
#18
Hi,

Thanks for the help!

I think it is something to do with a move to devicekit from HAL that might be effecting the automount.

Once I added that line to the fstab, when I plug the phone in all is perfect.

I changed the fstab line slightly as the AUTO option was stopping it from booting properly, now I am using.

HTML Code:
/dev/sdb /media/n900	vfat	dmask=027,uid=1000,gid=1000,fmask=137,user,noauto	0	0
I did need to setup the /media/n900 directory and rights.

Thanks
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:13.