LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2018, 02:08 AM   #1
ginachu
LQ Newbie
 
Registered: Oct 2018
Posts: 4

Rep: Reputation: Disabled
Can't mount SDcard


I've split my SDcard to two part, one of them can not be mounted and got some error message, here are the message:

$ sudo fdisk -l /dev/sdd
[sudo] password for gina:
Disk /dev/sdd: 7.4 GiB, 7969177600 bytes, 15564800 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

所用裝置 可開機 Start 結束 磁區 Size Id 類型
/dev/sdd1 8192 24575 16384 8M c W95 FAT32 (LBA)
/dev/sdd2 24576 15564799 15540224 7.4G 83 Linux

$ sudo mount -t ext4 /dev/sdd2 tmp/p2
mount: wrong fs type, bad option, bad superblock on /dev/sdd2,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.

$ dmesg |tail
[949945.558260] Buffer I/O error on dev sdd2, logical block 1, lost async page write
[949950.310258] sd 7:0:0:0: [sdd] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[949950.310266] sd 7:0:0:0: [sdd] tag#0 Sense Key : Unit Attention [current]
[949950.310272] sd 7:0:0:0: [sdd] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[949950.310278] sd 7:0:0:0: [sdd] tag#0 CDB: Write(10) 2a 00 00 00 6f e0 00 00 18 00
[949950.310282] print_req_error: I/O error, dev sdd, sector 28640
[949950.310293] Buffer I/O error on dev sdd2, logical block 508, lost async page write
[949950.310313] Buffer I/O error on dev sdd2, logical block 509, lost async page write
[949950.310319] Buffer I/O error on dev sdd2, logical block 510, lost async page write
[950135.024267] EXT4-fs (sdd2): VFS: Can't find ext4 filesystem


Anyone know what's the problem and how to fix it?
Thank you very much!!
 
Old 10-29-2018, 02:45 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
  1. are you sure the directory tmp/p2 exists? shouldn't that be /tmp/p2?
  2. don't tell mount which filesystem type to use, it can figure that out on its own.
 
Old 10-29-2018, 03:33 AM   #3
ginachu
LQ Newbie
 
Registered: Oct 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
1. tmp/p2 exists! I've create it in my locol directory
2. I've tryed mount /dev/sdd2 tmp/p2, the result is the same
Any suggestion?
 
Old 10-29-2018, 04:17 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,521

Rep: Reputation: Disabled
How did you 'split' your card?
Did you create new partitions(?)
Did you put new filesystems onto the SD cards new partitions(?).
 
Old 10-29-2018, 07:17 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Gparted magic works. Just use gParted to create your partitions. as it is you Might have to redo your partition table, to reestablish your medium, and it will wipe everything off the medium in the process.

before that, you can make sure you formatted it ext4, if not, then format it ext4. mount without the -t ext4
Code:
#mount /dev/sdd2 /mnt/p2
 
Old 10-29-2018, 07:04 PM   #6
ginachu
LQ Newbie
 
Registered: Oct 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
1.
I created my partition before with $sudo fdisk /dev/sdd
enter command: n p 1 8192 24575 t c n p 2 24576 p w

2
I've try GParted, when I deleted partition, Libparted error show input/output error.
The sdd2 partition shows message below:
e2label: No such file or directory while trying to open /dev/sdd2
Couldn't find valid filesystem superblock.

tune2fs 1.42.13 (17-May-2015)

tune2fs: No such file or directory while trying to open /dev/sdd2
Couldn't find valid filesystem superblock.

Couldn't find valid filesystem superblock.

dumpe2fs 1.42.13 (17-May-2015)
dumpe2fs: No such file or directory while trying to open /dev/sdd2

3.
I've mount it again, message shows below:
$ sudo mount /dev/sdd2 /mnt/p2
mount: wrong fs type, bad option, bad superblock on /dev/sdd2,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.
$ dmesg |tail
[ 1166.961825] EXT4-fs (sdd2): no journal found
 
Old 10-29-2018, 07:29 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I do not do fdisk, gfdisk, yes, gparted, yes, you might be getting your blocks off so it's erroring out, that is why I do not use fdisk.
 
Old 10-29-2018, 08:01 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,382
Blog Entries: 28

Rep: Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164
I think this article may help. It specifically refers to the file system type issue.

https://www.fosslinux.com/3822/sd-ca...-is-a-fix.htm/
 
Old 10-29-2018, 08:08 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Quote:
Did you put new filesystems onto the SD cards new partitions(?).
As already asked...

A partition is just a container for a filesystem. While fdisk creates the container it does not create the filesystem. To create an ext4 filesystem on sdd2

Code:
sudo mkfs.ext4 /dev/sdd2
Always very the correct device ID before executing the mkfs command.

Last edited by michaelk; 10-29-2018 at 08:32 PM.
 
Old 11-01-2018, 06:52 PM   #10
ginachu
LQ Newbie
 
Registered: Oct 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for everyone's suggestion!
I've change the card reader, and it's all work!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't read sdcard cybervigilante antiX / MX Linux 5 08-14-2018 02:04 PM
[SOLVED] Can't erase my Sdcard... clg Linux - Newbie 11 02-19-2016 02:32 PM
how to mount sdcard device when its path changes senderj Linux - Hardware 5 11-18-2015 02:01 AM
[SOLVED] can't mound sdcard amans Debian 1 03-28-2014 03:15 AM
using sdcard as flash memory msrihari Linux - Newbie 3 04-02-2010 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration