Modify

Opened 7 years ago

Closed 4 years ago

Last modified 3 years ago

#9322 closed defect (not_a_bug)

/etc/fstab missing!

Reported by: ciusss89 <ciusss@…> Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: /etc/fstab missing! Cc:

Description

Hi,

Last trunk, file /etc/fstab not be createed.

BusyBox v1.18.4 (2011-04-27 23:15:51 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 ATTITUDE ADJUSTMENT (bleeding edge, r26773) ----------
  * 1/4 oz Vodka      Pour all ingredents into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@Fon2G:~# uname -a
Linux Fon2G 2.6.37.6 #1 Thu Apr 28 22:41:12 CEST 2011 mips GNU/Linux
root@Fon2G:~# mount -a
mount: can't read '/etc/fstab': No such file or directory
root@Fon2G:~# 
root@Fon2G:~# cat /etc/config/fstab 

config 'global' 'automount'
	option 'from_fstab' '1'
	option 'anon_mount' '1'

config 'global' 'autoswap'
	option 'from_fstab' '1'
	option 'anon_swap' '0'

config 'mount'
	option 'target' '/home'
	option 'fstype' 'ext3'
	option 'options' 'rw,sync'
	option 'enabled_fsck' '1'
	option 'enabled' '1'
	option 'device' '/dev/sda2'

config 'swap'
	option 'enabled' '1'
	option 'device' '/dev/sda1'

config 'mount'
	option 'enabled' '1'
	option 'device' '/dev/sdb1'
	option 'target' '/mnt/sdb1'
	option 'enabled_fsck' '1'
	option 'fstype' 'ext3'
	option 'options' 'rw,sync'
root@Fon2G:~# 

Attachments (2)

PACKAGE_INSTALLED_r26773 (4.1 KB) - added by ciusss89 <ciusss@…> 7 years ago.
packages list
dmesg (9.8 KB) - added by Giuse <dk_giuse89@…> 7 years ago.
dmesg

Download all attachments as: .zip

Change History (11)

Changed 7 years ago by ciusss89 <ciusss@…>

packages list

Changed 7 years ago by Giuse <dk_giuse89@…>

dmesg

comment:1 Changed 7 years ago by Ciusss89 <ciusss@…>

Close this ticket, /etc/init.d/fstab was not linked in rc.d. (strange)

comment:2 Changed 7 years ago by jow

  • Resolution set to worksforme
  • Status changed from new to closed

That is not strange, but normal for opkg-installed packages. The init script is provided by the block-mount package. The command /etc/init.d/fstab enable will install the symlink.

comment:3 Changed 4 years ago by anonymous

  • Resolution worksforme deleted
  • Status changed from closed to reopened

1 aiccu - 20070115-4 2 base-files - 68-r26773 3 blkid - 1.41.12-1 4 busybox - 1.18.4-1 5 collectd - 4.10.2-2 6 collectd-mod-interface - 4.10.2-2 7 collectd-mod-load - 4.10.2-2 8 collectd-mod-rrdtool - 4.10.2-2 9 collectd-mod-wireless - 4.10.2-2 10 ddns-scripts - 1.0.0-13 11 dnsmasq - 2.57-1 12 dropbear - 0.53.1-3 13 e2fsprogs - 1.41.12-1 14 etherwake - 1.09-2 15 firewall - 2-25 16 gpioctl - 1.0-1 17 gw6c - 5.0-1 18 hd-idle - 1.03-1 19 hotplug2 - 1.0-beta-4 20 htop - 0.9-1 21 httping - 1.4.4-1 22 ip - 2.6.35-3 23 iptables - 1.4.10-2 24 iptables-mod-conntrack - 1.4.10-2 25 iptables-mod-conntrack-extra - 1.4.10-2 26 iptables-mod-filter - 1.4.10-2 27 iptables-mod-ipopt - 1.4.10-2 28 iptables-mod-nat - 1.4.10-2 29 iptables-utils - 1.4.10-2 30 kernel - 2.6.37.6-1 31 kmod-crc-ccitt - 2.6.37.6-1 32 kmod-crc16 - 2.6.37.6-1 33 kmod-fs-exportfs - 2.6.37.6-1 34 kmod-fs-ext4 - 2.6.37.6-1 35 kmod-fs-mbcache - 2.6.37.6-1 36 kmod-fs-nfs - 2.6.37.6-1 37 kmod-fs-nfs-common - 2.6.37.6-1 38 kmod-fs-nfsd - 2.6.37.6-1 39 kmod-ifb - 2.6.37.6-1 40 kmod-input-core - 2.6.37.6-1 41 kmod-ipt-conntrack - 2.6.37.6-1 42 kmod-ipt-conntrack-extra - 2.6.37.6-1 43 kmod-ipt-core - 2.6.37.6-1 44 kmod-ipt-filter - 2.6.37.6-1 45 kmod-ipt-ipopt - 2.6.37.6-1 46 kmod-ipt-nat - 2.6.37.6-1 47 kmod-ipt-nathelper - 2.6.37.6-1 48 kmod-iptunnel4 - 2.6.37.6-1 49 kmod-ipv6 - 2.6.37.6-1 50 kmod-leds-gpio - 2.6.37.6-1 51 kmod-ledtrig-heartbeat - 2.6.37.6-1 52 kmod-ledtrig-netfilter - 2.6.37.6-1 53 kmod-ledtrig-usbdev - 2.6.37.6-1 54 kmod-madwifi - 2.6.37.6+r3314-5 55 kmod-nls-base - 2.6.37.6-1 56 kmod-sched - 2.6.37.6-1 57 kmod-scsi-core - 2.6.37.6-1 58 kmod-sit - 2.6.37.6-1 59 kmod-textsearch - 2.6.37.6-1 60 kmod-tun - 2.6.37.6-1 61 kmod-usb-core - 2.6.37.6-1 62 kmod-usb-ohci - 2.6.37.6-1 63 kmod-usb-storage - 2.6.37.6-1 64 kmod-usb-uhci - 2.6.37.6-1 65 kmod-usb-video - 2.6.37.6-1 66 kmod-usb2 - 2.6.37.6-1 67 libblkid - 1.41.12-1 68 libc - 0.9.32-68 69 libcurl - 7.21.3-1 70 libdlna - 0.2.3-1 71 libevent2 - 2.0.10-1 72 libext2fs - 1.41.12-1 73 libffmpeg - 0.5.4-2 74 libgcc - linaro-68 75 libgd - 2.0.35-1 76 libgdbm - 1.8.3-1 77 libhowl - 1.0.0-3 78 libid3tag - 0.15.1b-3 79 libip4tc - 1.4.10-2 80 libip6tc - 1.4.10-2 81 libiptc - 1.4.10-2 82 libiwinfo - 13 83 libjpeg - 6b-1 84 libltdl - 2.4-1 85 liblua - 5.1.4-7 86 liblzo - 2.04-1 87 libncurses - 5.7-4 88 libnet1 - 1.1.2.1-2 89 libnl-tiny - 0.1-2 90 libopenssl - 1.0.0d-1 91 libpcap - 1.0.0-2 92 libpng - 1.2.44-1 93 libpopt - 1.7-5 94 libpthread - 0.9.32-68 95 librpc - 0.9.32-rc2-0a2179bbc0844928f2a0ec01dba93d9b5d6d41a7 96 librrd1 - 1.0.50-1 97 librt - 0.9.32-68 98 libuci - 2011-03-27.2-1 99 libuci-lua - 2011-03-27.2-1 100 libupnp - 1.6.12-1 101 libuuid - 1.41.12-1 102 libwrap - 7.6-1 103 libxtables - 1.4.10-2 104 lua - 5.1.4-7 105 luci - 0.10+svn7005-1 106 luci-app-ddns - 0.10+svn7005-1 107 luci-app-diag-core - 0.10+svn7005-1 108 luci-app-diag-devinfo - 0.10+svn7005-1 109 luci-app-firewall - 0.10+svn7005-1 110 luci-app-hd-idle - 0.10+svn7005-1 111 luci-app-initmgr - 0.10+svn7005-1 112 luci-app-multiwan - 0.10+svn7005-1 113 luci-app-ntpc - 0.10+svn7005-1 114 luci-app-openvpn - 0.10+svn7005-1 115 luci-app-polipo - 0.10+svn7005-1 116 luci-app-qos - 0.10+svn7005-1 117 luci-app-radvd - 0.10+svn7005-1 118 luci-app-samba - 0.10+svn7005-1 119 luci-app-statistics - 0.10+svn7005-1 120 luci-app-upnp - 0.10+svn7005-1 121 luci-app-ushare - 0.10+svn7005-1 122 luci-app-vnstat - 0.10+svn7005-1 123 luci-app-wol - 0.10+svn7005-1 124 luci-i18n-english - 0.10+svn7005-1 125 luci-lib-core - 0.10+svn7005-1 126 luci-lib-ipkg - 0.10+svn7005-1 127 luci-lib-lmo - 0.10+svn7005-1 128 luci-lib-nixio - 0.10+svn7005-1 129 luci-lib-sys - 0.10+svn7005-1 130 luci-lib-web - 0.10+svn7005-1 131 luci-mod-admin-core - 0.10+svn7005-1 132 luci-mod-admin-full - 0.10+svn7005-1 133 luci-sgi-cgi - 0.10+svn7005-1 134 luci-theme-base - 0.10+svn7005-1 135 luci-theme-openwrt - 0.10+svn7005-1 136 mac-to-devinfo - 1.0.0-2 137 miniupnpd - 1.5.20110309-1 138 mt-daapd - 0.2.4.2-1 139 mtd - 15 140 multiwan - 1.0.19-1 141 nano - 2.2.6-1 142 netdiscover - 0.3-beta6-3 143 netdiscover-to-devinfo - 1.0.0-2 144 nfs-kernel-server - 1.1.6-1 145 nfs-kernel-server-utils - 1.1.6-1 146 ntpclient - 2007_365-4 147 openvpn - 2.1.4-2 148 opkg - 618-1 149 polipo - 1.0.4.1-2 150 portmap - 6.0-2 151 qos-scripts - 1.2.1-5 152 radvd - 1.7-1 153 rrdtool1 - 1.0.50-1 154 rsync - 3.0.8-2 155 samba3 - 3.0.24-7 156 smap - 0.6.0-2 157 smap-to-devinfo - 1.0.0-2 158 swap-utils - 2.13.0.1-4 159 swconfig - 7 160 tc - 2.6.35-3 161 terminfo - 5.7-4 162 transmission-daemon - 2.22-3 163 transmission-web - 2.22-3 164 uci - 2011-03-27.2-1 165 uclibcxx - 0.2.2-3 166 uhttpd - 22 167 ushare - 1.1a-1 168 vnstat - 1.10-3 169 vnstati - 1.10-3 170 wireless-tools - 29-4 171 wpad-mini - 20110421-1 172 zlib - 1.2.5-1

comment:4 Changed 4 years ago by jow

  • Resolution set to invalid
  • Status changed from reopened to closed

comment:5 Changed 4 years ago by anonymous

  • Resolution invalid deleted
  • Status changed from closed to reopened

BARRIER BREAKER (Bleeding Edge, r39185)

root@OpenWrt:~# cat /etc/fstab
cat: can't open '/etc/fstab': No such file or directory

root@OpenWrt:~# ls -l /etc/fstab
lrwxrwxrwx 1 root root 10 Jan 24 18:32 /etc/fstab -> /tmp/fstab

root@OpenWrt:~# ls /tmp/fstab
ls: /tmp/fstab: No such file or directory

Could you please help with this problem?

comment:6 Changed 4 years ago by nbd

  • Resolution set to not_a_bug
  • Status changed from reopened to closed

/etc/fstab is not necessary, so we don't put it there.

comment:7 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:8 Changed 3 years ago by khanamir21@…

root@OpenWrt:/etc# mount -a
mount: can't read '/etc/fstab': No such file or directory

mount is still looking for it under /etc/fstab and not to /etc/config/fstab

comment:9 Changed 3 years ago by anonymous

Here is some information about the command "block mount" which seems to have replaced the mount command:

http://wiki.openwrt.org/doc/techref/block_mount

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.