Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to mount filesystem(s) (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1968

PostPosted: Thu Nov 01, 2012 3:13 pm    Post subject: Unable to mount filesystem(s) (solved) Reply with quote

I downloaded and wrote an image that is meant for a raspberry pi. I have the SD-card inserted into my PC at home and wanted to mount the copied image to see what some of the settings are before I boot from it. I get the following error when I do:

Code:
shark tmp # mount /dev/sdc3 /mnt/gentoo
mount: unknown filesystem type '(null)'


/dev/sdc3 is the main partition, I then tried to mount the boot partition:

Code:
shark tmp # mount /dev/sdc1 /mnt/gentoo
mount: unknown filesystem type '(null)'


Here is what information I have gathered from parted:

Code:
shark tmp # fdisk /dev/sdc
Welcome to fdisk (util-linux 2.22.1).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p

Disk /dev/sdc: 2045 MB, 2045247488 bytes, 3994624 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
Disk identifier: 0x00017a3b

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048      206847      102400    b  W95 FAT32
/dev/sdc2          206848     2303999     1048576   83  Linux
/dev/sdc3         2304000     3962879      829440   83  Linux


According to cfdisk:

Code:
 cfdisk (util-linux 2.22.1)

                              Disk Drive: /dev/sdc
                        Size: 2045247488 bytes, 2045 MB
              Heads: 63   Sectors per Track: 62   Cylinders: 1022

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
                            Pri/Log   Free Space                           1.05*
    sdc1                    Primary   vfat                               104.86*
    sdc2                    Primary   swap                              1073.75*
    sdc3                    Primary   ext4                               849.35*
                            Pri/Log   Free Space                          16.26*


Last edited by Bigun on Sat Nov 03, 2012 12:59 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31980
Location: 56N 3W

PostPosted: Thu Nov 01, 2012 9:06 pm    Post subject: Reply with quote

Bigun,

A 2G SD card will be a bit of a squeeze.

To mount sdc1
Code:
mount -t vfat /dev/sdc1 /mnt/gentoo
will be better and
Code:
mount -t ext4 /dev/sdc3 /mnt/gentoo
for root.
You need vfat and ext4 support loaded.

Its quite safe to look around and edit settings but if you try to chroot, I will probably hear the crash in Scotland.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1968

PostPosted: Thu Nov 01, 2012 10:39 pm    Post subject: Reply with quote

Funny you should mention that, I just bought an 8 Gb card on the way home.

I'm using this image to install gentoo on the card.

Is this the correct syntax of installing?

Code:
wget http://intelminer.com/raspberrypi/gentoo-img.tar.gz
tar -xvzf gentoo-img.tar.gz
dd of=Gentoo.img if=/dev/sdc bs=1M


After doing this even parted is showing nothing:

Code:
shark tmp # parted /dev/sdc
GNU Parted 3.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                               
Model: USB Mass Storage Device (scsi)
Disk /dev/sdc: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start  End  Size  Type  File system  Flags
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31980
Location: 56N 3W

PostPosted: Thu Nov 01, 2012 10:59 pm    Post subject: Reply with quote

Bigun,

Heres how I used one of intelminers images when I was getting started.
Look at my comments on that blog page.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1968

PostPosted: Fri Nov 02, 2012 9:20 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Bigun,

Heres how I used one of intelminers images when I was getting started.
Look at my comments on that blog page.


I just tried to use that image and followed your instructions. The unit will not boot. Here is the SDCard partition layout on my computer:

Code:
Number  Start   End     Size    Type     File system     Flags
 1      31.7kB  101MB   101MB   primary  fat16
 2      101MB   1104MB  1003MB  primary  linux-swap(v1)
 3      1104MB  7948MB  6844MB  primary  ext4


I'm assuming that the following would translate to mmcblk0p1, mmcblk0p2, and mmcblk0p3 respectively?

If so, then I'm even more confused. Here are the files necessary to boot the device:

cmdline.txt
Code:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p3 rootfstype=ext4 rootwait


fstab
Code:
proc            /proc           proc    defaults        0       0
/dev/mmcblk0p1  /boot           vfat    defaults        0       0
/dev/mmcblk0p2  none            swap    sw              0       0
/dev/mmcblk0p3  /               ext4    noatime         0       0


Any help you can offer Neddy, I would appreciate!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31980
Location: 56N 3W

PostPosted: Fri Nov 02, 2012 9:50 pm    Post subject: Reply with quote

Biggun,

What are you using for a PSU and when do you have connected directly to the Pi. Pis are very picky about the PSU.
The need about 700mA at 5v on the board. All the PSU you will find are 5v at the PSU, then you lose some down the wire to the board.
My Pi won't run off 4.5 on the board. I get USB errors.

It won't run a powered USB hub and a USB to micro USB cable either. Probably because there is more wire involved.

What do you have in your /boot ?
Where did you get your firmware from ?
What happens when it fails to boot?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1968

PostPosted: Fri Nov 02, 2012 10:22 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Biggun,

What are you using for a PSU and when do you have connected directly to the Pi. Pis are very picky about the PSU.
The need about 700mA at 5v on the board. All the PSU you will find are 5v at the PSU, then you lose some down the wire to the board.
My Pi won't run off 4.5 on the board. I get USB errors.

It won't run a powered USB hub and a USB to micro USB cable either. Probably because there is more wire involved.

What do you have in your /boot ?
Where did you get your firmware from ?
What happens when it fails to boot?


The PSU's output is rated at 5VDC @ 550mA. I have others I can try real quick... hang on

*wait*

Just tried one at 1000 mA, no difference.

Here is a listing of my /boot:

Code:
shark tmp # ls -la /mnt/gentoo/boot
total 34512
drwxr-xr-x  2 root root    16384 Jan  1  1970 .
drwxr-xr-x 21 root root     4096 Nov  2 18:06 ..
-rwxr-xr-x  1 root root        0 Jun  3 22:32 .keep
-rwxr-xr-x  1 root root  2047848 Jun 17 02:38 arm128_start.elf
-rwxr-xr-x  1 root root  2047848 Jun 17 02:38 arm192_start.elf
-rwxr-xr-x  1 root root  2047848 Jun 17 02:38 arm224_start.elf
-rwxr-xr-x  1 root root      273 Jun 17 02:38 boot.rc
-rwxr-xr-x  1 root root      273 Jun 17 02:38 boot_enable_ssh.rc
-rwxr-xr-x  1 root root    16528 Jun 17 02:38 bootcode.bin
-rwxr-xr-x  1 root root       79 Nov  2 18:09 cmdline.txt
-rwxr-xr-x  1 root root       58 Jun 17 02:38 config.txt
-rwxr-xr-x  1 root root       79 Jun 16 12:30 debian.txt
-rwxr-xr-x  1 root root      122 Jun 17 02:38 gentoo.txt
-rwxr-xr-x  1 root root       26 Jun 17 02:38 issue.txt
-rwxr-xr-x  1 root root  6236636 Jun 17 02:38 kernel.img
-rwxr-xr-x  1 root root  4195844 Jun 17 02:38 kernel_cutdown.img
-rwxr-xr-x  1 root root 16344532 Jun 17 02:38 kernel_emergency.img
-rwxr-xr-x  1 root root   314691 Jun 17 02:38 loader.bin
-rwxr-xr-x  1 root root  2047848 Jun 17 02:38 start.elf


I never downloaded any firmware, I just used the image on that page and extracted it.

When it fails to boot, the "OK" light that usually blinks just stays a very dim color.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31980
Location: 56N 3W

PostPosted: Fri Nov 02, 2012 11:01 pm    Post subject: Reply with quote

Bigun,

550mA is probably not enough power. 1000mA will be OK if its really smoothed regulated DC and not just rectified AC.
A smart phone charger is OK if you use it with the phones USB to microUSB cable.

I thought intelminer was going to update that image. Its old by Pi standards.
IF you have any overclocking or overvolting in config.txt e.g.
Code:
over_voltage=6
arm_freq=1000
core_freq=500
sdram_freq=500
remove it. Not all Pis will run at that speed and it will decrease the power requirement too
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1968

PostPosted: Sat Nov 03, 2012 12:00 am    Post subject: Reply with quote

No dice.

Just to make sure things are working, I loaded Raspberry's wheezy on the same card and booted off of it. I even was able to SSH into it.

I cleared the disk and reloaded Gentoo and it does the same thing again.

I'm going crazy here!
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1968

PostPosted: Sat Nov 03, 2012 12:47 am    Post subject: Reply with quote

I even went as far as changing the boot partition from FAT16 to FAT32, no difference.
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1968

PostPosted: Sat Nov 03, 2012 12:58 am    Post subject: Reply with quote

FINALLY!!!!

Here was the issue:

From parted:
Code:
Number  Start   End     Size    Type     File system     Flags
 1      31.7kB  101MB   101MB   primary  fat16
 2      101MB   1104MB  1003MB  primary  linux-swap(v1)
 3      1104MB  7948MB  6844MB  primary  ext4


From fdisk:
Code:
Command (m for help): p

Disk /dev/sdc: 7948 MB, 7948206080 bytes, 15523840 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
Disk identifier: 0x000f06a6

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *          62      197469       98704   83  Linux
/dev/sdc2          197470     2156979      979755   83  Linux
/dev/sdc3         2156980    15523839     6683430   83  Linux


Notice the difference? The actual partition labels were not correct. Why oh why didn't parted show this!??!

Anyway, changed the labels and now fdisk shows the layout as follows:
Code:
Command (m for help): p

Disk /dev/sdc: 7948 MB, 7948206080 bytes, 15523840 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
Disk identifier: 0x000f06a6

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *          62      197469       98704    c  W95 FAT32 (LBA)
/dev/sdc2          197470     2156979      979755   82  Linux swap / Solaris
/dev/sdc3         2156980    15523839     6683430   83  Linux


and the damn thing boots..

:evil:
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3939
Location: USA

PostPosted: Mon Nov 12, 2012 11:45 pm    Post subject: Reply with quote

Odd, it looks like the Filesystem ID's were not set right or something, not the labels (which are something else)?

I thought that Linux mount (in util-linux) doesn't even care about partition ID, I've had ext2 partition on a partition with ID for FAT32 and it worked...

Maybe it's checking now, but very odd. I don't know about other mounts such as busybox mount...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum