Posts: 3 | Thanked: 0 times | Joined on Mar 2010
#1
hi and sorry for my langage i'm french ...

So i try to parition my flash card

and step by step i follow this tutorial
http://wiki.maemo.org/Partitioning_a_flash_card

but when i want umount my device

code :

umount /media/mmc1

or

umount /media/mmc2


I have a error message : argument invalide

I don't know why i have this message


thank you
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#2
Are you doing this as root?
Are both of those currently mounted?
Are you using an n800 or n810?
 
Posts: 3 | Thanked: 0 times | Joined on Mar 2010
#3
Yes i am doing it as root
This is on a n800

Are both of those currently mounted?
I don't know exactly, but on the /media directory i have
mmc1 and mmc2

how can knom if the device are mounted ?

Thank you
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#4
Typing 'mount' will give you a list of all currently mounted filesystems.
You should see something like
Code:
/dev/mmcblk1p1 on /media/mmc1 type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir)
although this has been taken from an n900 filesystem.
To unmount you should be able to, as root:
Code:
umount /dev/mmcblk1p1
which should unmount the filesystem to let you repartition it. Your previous command looked correct too, though, so I'm not sure why it said 'invalid argument' unless you typo'd.
Let us know what happens.
 
hordeman's Avatar
Posts: 698 | Thanked: 129 times | Joined on Oct 2007 @ CA
#5
I'm no expert, BUT I believe that if the memory device is mounted, you cannot unmount individual partitions.
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#6
/media/mmc1 and mmc2 are the sd cards.
If the device is in use you wouldn't be able to unmount it, but I can unmount either.

mmc1 is the external card (under the n800 kickstand)
mmc2 is the internal card (under the battery cover)
 
Lord Raiden's Avatar
Posts: 1,562 | Thanked: 349 times | Joined on Jun 2008
#7
Right, but if mmc2 has the virtual memory file on it, you won't be able to unmount it. They also sometimes will forbid unmounting if there is errors on the disk. I know, it's stupid, but hey, what can you do? If it is a problem with a disk error that makes the disk impossible to unmount, just reboot and see if that clears it. If not, power off the device, plug in the USB, power on the device and let it load. What will happen is that the usb will take control of the drives before the system can, allowing you to scandisk for errors.
__________________
Popular Sci-Fi author and creator of the Earthfleet Series.
www.realmsofimagination.net
 
Posts: 3 | Thanked: 0 times | Joined on Mar 2010
#8
thank you for your help

well,
when I type "mount"
[...] /dev/mtdblock4 on / type jffs2
[...] /dev/mmcblk0p1 on /media/mmc2 type vfat
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:02.