Ernillew / wl500g

Automatically exported from code.google.com/p/wl500g
0 stars 0 forks source link

3-rd part of HDD cannot be mounted in journal mode #194

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Format HDD to 3 parts: swap, ext3 and ext3.

2. Write down the following in the /etc/fstab:
/dev/discs/disc0/part1 none swap sw 0 0
/dev/discs/disc0/part2 /opt ext3    rw,noatime,data=journal 0 0
/dev/discs/disc0/part3 /tmp/mnt/disc0_3 ext3 rw,noatime,data=journal 0 0

(Of course, there is "/etc/fstab" in the /usr/local/.files)

3. Save and commit flash and reboot the router.

What is the expected output? What do you see instead?

I expected to see all ext3 parts of the HDD to be mounted in the journal mode, 
but I see only /opt in this mode. /tmp/mnt/disc0_3 is mounted in the ordered 
mode.

The system log:
...
Jan  9 11:21:53 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal 
journal
Jan  9 11:21:53 kernel: EXT3-fs: mounted filesystem with journal data mode.
Jan  9 11:21:53 kernel: kjournald starting.  Commit interval 5 seconds
Jan  9 11:21:53 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,3), internal 
journal
Jan  9 11:21:53 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jan  9 11:21:53 USB storage: ext3 fs at /dev/discs/disc0/part3 mounted to 
/tmp/mnt/disc0_3
...

What version of the product are you using?

I use the 1.9.2.7-d-r2381 release.

Please provide any additional information below.

When I unmount /tmp/mnt/disc0_3 and mount it again "by hands" by the following 
command:
mount /dev/discs/disc0/part3 /tmp/mnt/disc0_3 -o rw,data=journal
while router is already loaded, then hdd is mount in journal mode. 

The system log:
...
Jan 10 00:08:44 kernel: kjournald starting.  Commit interval 5 seconds
Jan 10 00:08:44 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,3), internal 
journal
Jan 10 00:08:44 kernel: EXT3-fs: mounted filesystem with journal data mode.
...

Original issue reported on code.google.com by dwg.gal...@gmail.com on 11 Jan 2011 at 7:28

GoogleCodeExporter commented 9 years ago
Do not use auto-generated names like /tmp/mnt/disc0_3 in fstab

Original comment by lly.dev on 6 Mar 2011 at 12:29