[SOLVED]fstab problem

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[SOLVED]fstab problem

Postby g8jvm » Mon Apr 29, 2013 1:22 pm

Hi guys
I succeeded in getting, Motion running, albeit its hogging the cpu at 98%
I tried to add a partition to /etc/fstab
and now it wont boot

I have another 3 GB ext partition /dev/sda5
I added to fstab
/dev/sda5 /Files ext3 defaults 0 0
I noticed that before /etc/fstab was empty which I didnt expect
what did I do wrong ?
Thanks
Richard
Last edited by g8jvm on Thu May 02, 2013 8:51 pm, edited 1 time in total.
Best wishes
Richard
richard@g8jvm.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ham Call: G8JVM , QRA IO82SP38 interests weak signal propagation
VHF to microwave, http://www.g8jvm.com
g8jvm
 
Posts: 93
Joined: Mon Apr 22, 2013 4:40 pm
Location: United Kingdom

Re: fstab problem

Postby pepedog » Mon Apr 29, 2013 2:44 pm

You created the directory /Files ?
Here is my unrelated zyxel fstab entry
$this->bbcode_second_pass_code('', '/dev/sda1 /boot ext2 rw,relatime,errors=continue,user_xattr 0 1')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: fstab problem

Postby g8jvm » Mon Apr 29, 2013 5:21 pm

Hi
I'm concerned that there is nothing in fstab on a fresh install, the is on a Debian arm release, and on the laptop
running Fedora
there's
# /etc/fstab
# Created by anaconda on Mon Apr 29 16:43:37 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=e344b940-a05b-47ea-900b-5e8d619cbaea / ext4 defaults 1 1
UUID=ce592aa9-1bdb-4e56-81fb-69dc6433d0a4 /boot ext4 defaults 1 2
UUID=ba4e87f5-2cff-400a-a8c9-9ba4b9384e14 /home ext4 defaults 1 2
UUID=4c7e8068-755e-4db1-adb8-640747bc87e9 /multimedia ext4 defaults 1 2
UUID=7c6dd2cb-d116-48fd-b5d7-3ae254ea11a8 /opt ext4 defaults 1 2
UUID=16df972f-efbb-4b23-9c23-2e13442c0d2f /tmp ext4 defaults 1 2
UUID=b4ee1e79-4f75-4264-9ec0-c3eefd493a45 /usr ext4 defaults 1 2
UUID=9416ef68-aafc-4968-b210-ea0cf32c15e6 /usr/local ext4 defaults 1 2
UUID=dd0b6aae-0ffe-4c9f-ba77-849575c2b763 swap swap defaults 0 0

On debian its similar using UUID

but on Arch its empty, and putting anything in stops it booting
[root@Pogopig ~]# cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
[root@Pogopig ~]#
Is fstab actually being used ?
df shows
[root@Pogopig ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2822096 964364 1714372 37% /
devtmpfs 126152 0 126152 0% /dev
tmpfs 126236 0 126236 0% /dev/shm
tmpfs 126236 304 125932 1% /run
tmpfs 126236 0 126236 0% /sys/fs/cgroup
tmpfs 126236 0 126236 0% /tmp
[root@Pogopig ~]#

just doesn't feel right
Best wishes
Richard
richard@g8jvm.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ham Call: G8JVM , QRA IO82SP38 interests weak signal propagation
VHF to microwave, http://www.g8jvm.com
g8jvm
 
Posts: 93
Joined: Mon Apr 22, 2013 4:40 pm
Location: United Kingdom

Re: fstab problem

Postby moonman » Mon Apr 29, 2013 6:03 pm

These distros use initrd and mount rootfs ro and then remount it according to fstab. Archlinux arm does not use initrd (but you can if you want) and mounts rootfs rw right away so there's nothing in fstab. Rootfs partition is passed to the kernel directly at boot.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: fstab problem

Postby pepedog » Mon Apr 29, 2013 6:19 pm

J8jvm, now you understand, do you like it?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: fstab problem

Postby g8jvm » Mon Apr 29, 2013 6:42 pm

Hi Moonman
Yes thats a neat way of doing it, quicker, now how do I pass a second partition at boot ?
Thanks
Best wishes
Richard
richard@g8jvm.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ham Call: G8JVM , QRA IO82SP38 interests weak signal propagation
VHF to microwave, http://www.g8jvm.com
g8jvm
 
Posts: 93
Joined: Mon Apr 22, 2013 4:40 pm
Location: United Kingdom

Re: fstab problem

Postby moonman » Mon Apr 29, 2013 8:31 pm

for the partition you still have to use fstab, or use automounting with udevil. Try to mount the partition in terminal first, make sure it doesnt give you any errors. If it does pogoplug will bpot in recovery mode with ssh not accessible and since there is no screen it seems like it didn't boot. I had the same problem with nfs shares in fstab, whenever the nfs server is down it seemed like pogoplug didnt boot up. I had to use serial to figure it out.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: fstab problem

Postby g8jvm » Mon Apr 29, 2013 9:04 pm

Strange it went in that time, I did as you suggested and mounted it manually first.

there was a minor typo originally I'd used "default" instead of "defaults"
Thanks
Richard
Best wishes
Richard
richard@g8jvm.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ham Call: G8JVM , QRA IO82SP38 interests weak signal propagation
VHF to microwave, http://www.g8jvm.com
g8jvm
 
Posts: 93
Joined: Mon Apr 22, 2013 4:40 pm
Location: United Kingdom


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 18 guests