Mount error in Linux: invalid argument


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Mount error in Linux: invalid argument
# 1  
Old 10-22-2017
Mount error in Linux: invalid argument

hi

i have an android phone which i think is bricked, so wanted to see what the actual issue is, I flashed it with TWRP recovery image and launched terminal i, was able understand that mount is not happening, it says invalid argument and no such file or directory. Below is what i get while mounting

Code:
mount -a 
mount :mounting /dev/block/mmcblk0p21 on /system failed: invalid argument.

tried to do an e2fsck also, it says 

e2fsck  /dev/block/mmcblk0p21 

e2fsck: Bad magic number in super block while trying to open  /dev/block/mmcblk0p21

I tried deleting /system and creating, dint work, tried to mount in a different mount point still dint work, please help
# 2  
Old 10-22-2017
What are you trying to achieve overall?

Have you successfully flashed TWRP? Can you boot into TWRP recovery by holding whatever buttons on the Android as you power up?

What make/model of phone/tablet is it?

If you can boot TWRP recovery it should give you a menu offering all kinds of things like formatting different partitions, possibly resizing partitions, etc.

If you can boot into TWRP then your device is certainly NOT bricked.
# 3  
Old 10-22-2017
Hi
My intention is to flash a rom so that the phone works

I was able to flash twrp via nexus root tool but once it reboots it goes back to te boot loader screen

Phone is lg nexus 4

From fastboot boot and twrp and tried from nexus tool. also, I tried to flash the rom but it says The above error and is not mounting either system, cache or any mount,

so trying to mount manually Using the terminal in twrp

Please help
# 4  
Old 10-22-2017
Are you sure that you successfully flashed your recovery partition with TWRP? Did you unlock your bootloader first?

See this:
How to Boot and Enter Google Nexus 4 Recovery Mode

You should be able to hold buttons (see the link) when you power up and then boot into recovery. If you can do that then you should be able to put your new ROM file onto your memory card (using a PC), insert it into your phone, boot recovery, and then select "flash ROM from SDcard".

Are you actually getting a TWRP menu on the screen?
# 5  
Old 10-22-2017
If you have no SDcard slot then you can use a USB memory stick if you have the right cable.

lg nexus 4 sd card slot - Google Search
# 6  
Old 10-22-2017
Quote:
Originally Posted by hicksd8
Are you sure that you successfully flashed your recovery partition with TWRP? Did you unlock your bootloader first?

See this:
How to Boot and Enter Google Nexus 4 Recovery Mode

You should be able to hold buttons (see the link) when you power up and then boot into recovery. If you can do that then you should be able to put your new ROM file onto your memory card (using a PC), insert it into your phone, boot recovery, and then select "flash ROM from SDcard".

Are you actually getting a TWRP menu on the screen?
Yes I have unlocked the boot loader at the moment if you turn on the phone it default loads the boot loader nothing else works from here

I am getting all options on the twrp but no options work
# 7  
Old 10-22-2017
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Can't chgrp. Error - chgrp: changing group of `<file>': Invalid argument

I found that I cannot chgrp for some reason with error: chgrp: changing group of `<file>': Invalid argument This happens on all NFS mounted disks on client machines. We use AD (not my call) for authentication and it also provides groups. We have a NFS server running Scientific Linux 6.3... (1 Reply)
Discussion started by: venmx
1 Replies

2. Shell Programming and Scripting

Perl "Invalid argument error"

Hi , we have a issue in server, we are running a perl script to connect our clients, but we are not able to connect, every time we are getting the "Invalid argument error" Even i checked all the necessary perl modules are i installed in this server, #create the listen socket my... (2 Replies)
Discussion started by: anishkumarv
2 Replies

3. Programming

SIOCSARP: Invalid Argument.

Hello everybody, I've been programming an alternative to linux's standard 'arp' program. I can delete arp entries (SIOCDARP), get arp entries (SIOCGARP), but i'm having troubles setting entries with ioctl. I can't set any PERM, USETRAILERS, or COM address. It only adds PUB entries and i don't... (2 Replies)
Discussion started by: semash!
2 Replies

4. UNIX for Advanced & Expert Users

invalid argument in semctl()

When I am using the function semctl() it is giving me error as the INVALID ARGUMENT. Can any body give me the possible reasons??? (2 Replies)
Discussion started by: asimibm
2 Replies

5. IP Networking

sendto invalid argument

Hi I lost a lot of time in understanding the message "sendto Invalid argument" when I execute the following code. This code is a simple UDP sender improved with some reliability feature. My goal is to send a file. I've reported only the code which may be useful. Can anyone help me? Thank you... (0 Replies)
Discussion started by: Puntino
0 Replies

6. Solaris

Invalid Argument and glassfish

I tried to install glassfish on Solaris 10 and it worked fine on other instances. I got the below message bash-3.00# ./sjsas-9_1_01-solaris-sparc.bin -console bash: ./sjsas-9_1_01-solaris-sparc.bin: Invalid argument I logged on as root and the file has execute permission. So strange. Do... (1 Reply)
Discussion started by: Andrew2008
1 Replies

7. UNIX for Dummies Questions & Answers

msgrcv : Invalid argument

Hi All, Please guide me how to get rid : msgrcv : Invalid argument. I am using message queues: msgsnd and msgrcv, I am able to send through msgsnd and receive through msgrcv, but at times i get the belo error. msgrcv : Invalid argument. (1 Reply)
Discussion started by: answers
1 Replies

8. Programming

error "Invalid argument" returned after call sched_setscheduler

the code is below and the was run on Solaris 9. ----------------------------- struct sched_param param; param.sched_priority = 99; if(sched_setscheduler(0, SCHED_RR, &param) == -1) { perror("setting priority"); exit(1); } ------------------------------- after the... (1 Reply)
Discussion started by: robin.zhu
1 Replies

9. Solaris

ps: 65535 is an invalid non-numeric argument for -p option

I want to figure out what is the reason of error message I have in Solaris 10. Why Solaris 10 dosn't recognize 65535? ps: 65535 is an invalid non-numeric argument for -p option usage: ps 'format' is one or more of: Thank you (5 Replies)
Discussion started by: gogogo
5 Replies

10. Shell Programming and Scripting

stty: : Invalid argument

Hello Everyone; I have a script that is throwing the following message: stty: : Invalid argument The line that gives the message is the following, sailormoon$ scp home/voice.xml newwave@silvermoon:/newwave/config/radius stty: : Invalid argument voice.xml | ... (2 Replies)
Discussion started by: tony3101
2 Replies
Login or Register to Ask a Question