LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-14-2017, 08:49 AM   #16
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,549

Rep: Reputation: 3144Reputation: 3144Reputation: 3144Reputation: 3144Reputation: 3144Reputation: 3144Reputation: 3144Reputation: 3144Reputation: 3144Reputation: 3144Reputation: 3144

The output of the file command does not indicate a filesystem nor a mbr/gpt.
It could be broken or corrupted also.

Missed your latest post. Looks like the partitions are being recognized now.

Last edited by michaelk; 03-14-2017 at 08:52 AM.
 
Old 03-16-2017, 01:53 AM   #17
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 552

Rep: Reputation: 271Reputation: 271Reputation: 271
As you can see from the links present in /dev/disk/by-*/ the SD card partitions and USB partitions are being detected. Now you need to know the filesystem of each /dev/sda* and /dev/mmcblk0p*. You can try as root:

Code:
fsck -N /dev/sdaX
fsck -N /dev/mmcblk0pX
where you replace X with the partition number. Please be very CAREFUL with fsck as it can do lots of damage if not used properly. The information obtained from this command will be very useful in knowing which filesystem is under /dev/sdaX.
 
Old 03-19-2017, 06:22 AM   #18
sarah1
Member
 
Registered: May 2007
Posts: 44

Original Poster
Rep: Reputation: 15
Now both are mmcblk0pX

STICK:

sudo fsck -N /dev/mmcblk0
fsck from util-linux 2.25.2
[/sbin/fsck.ext2 (1) -- /dev/mmcblk0] fsck.ext2 /dev/mmcblk0

sudo fsck -N /dev/mmcblk0p1
fsck from util-linux 2.25.2
[/sbin/fsck.vfat (1) -- /dev/mmcblk0p1] fsck.vfat /dev/mmcblk0p1

sudo fsck -N /dev/mmcblk0p2
fsck from util-linux 2.25.2
[/sbin/fsck.ext2 (1) -- /dev/mmcblk0p1] fsck.ext2 /dev/mmcblk0p2

sudo fsck -N /dev/mmcblk0p5
fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 /dev/mmcblk0p5

sudo fsck -N /dev/mmcblk0p6
fsck from util-linux 2.25.2
[/sbin/fsck.vfat (1) -- /dev/mmcblk0p1] fsck.vfat /dev/mmcblk0p6

sudo fsck -N /dev/mmcblk0p7
fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 /dev/mmcblk0p7

SD-Card:

sudo fsck -N /dev/mmcblk0
fsck from util-linux 2.25.2
[/sbin/fsck.ext2 (1) -- /dev/mmcblk0] fsck.ext2 /dev/mmcblk0

sudo fsck -N /dev/mmcblk0p1
fsck from util-linux 2.25.2
[/sbin/fsck.vfat (1) -- /dev/mmcblk0p1] fsck.vfat /dev/mmcblk0p1

sudo fsck -N /dev/mmcblk0p2
fsck from util-linux 2.25.2
[/sbin/fsck.ext2 (1) -- /dev/mmcblk0p2] fsck.ext2 /dev/mmcblk0p2

sudo fsck -N /dev/mmcblk0p5
fsck from util-linux 2.25.5
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p5] fsck.ext4 /dev/mmcblk0p5

sudo fsck -N /dev/mmcblk0p6
fsck from util-linux 2.25.6
[/sbin/fsck.vfat (1) -- /dev/mmcblk0p6] fsck.vfat /dev/mmcblk0p6

sudo fsck -N /dev/mmcblk0p7
fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p7] fsck.ext4 /dev/mmcblk0p7
 
Old 03-19-2017, 07:05 AM   #19
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 552

Rep: Reputation: 271Reputation: 271Reputation: 271
The output which follow "SD-Card" above seems more normal than the one for "STICK".

Anyway, the partitions which you see as vfat can be mounted using
Code:
mkdir /mnt/mountpoint1
mount -t vfat /dev/mmcblk0p6 /mnt/mountpoint1
And the ext4 as
Code:
mkdir /mnt/mountpoint2
mount -t ext4 /dev/mmcblk0p5 /mnt/mountpoint2
Just try and see. But I have to say, it is quite confusing how your system is naming the devices.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 an unmountable drive be saved? bushy Linux - Hardware 6 07-23-2015 02:28 PM
USB unmountable 20ln10 Linux - Newbie 3 03-28-2014 07:06 AM
cdrom unmountable malvin Linux - Hardware 4 10-20-2005 08:15 PM
unmountable zip drive? RaulConQ Slackware 3 11-10-2003 08:10 AM
Unmountable partition mykbourassa Linux - Software 2 09-07-2001 06:36 AM

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

All times are GMT -5. The time now is 03:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration