Triode,
More on my testing of the Storage configuration GUI:
Clean reboot machine.
Open SSH session:
Code:
--------------------
[root@wandboard ~]# ls -l /dev/disk/by-label
total 0
lrwxrwxrwx 1 root root 15 Mar 6 16:54 boot -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 10 Mar 6 16:54 Data -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 6 16:54 Films -> ../../sdc1
lrwxrwxrwx 1 root root 10 Mar 6 16:56 Music -> ../../sdd2
lrwxrwxrwx 1 root root 15 Mar 6 16:54 root -> ../../mmcblk0p3
lrwxrwxrwx 1 root root 10 Mar 6 16:54 SAMSUNG -> ../../sdb1
lrwxrwxrwx 1 root root 15 Mar 6 16:54 swap -> ../../mmcblk0p2
[root@wandboard ~]#
[root@wandboard ~]# cat /etc/fstab
#
# /etc/fstab
#
# 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
#
/dev/mmcblk0p1 /boot ext2 defaults,noatime
0 2
/dev/mmcblk0p3 / ext4 defaults,noatime,errors=remount-ro
0 1
/dev/mmcblk0p2 swap swap defaults,noatime
0 0
devpts /dev/pts devpts gid=5,mode=620
0 0
tmpfs /dev/shm tmpfs defaults
0 0
proc /proc proc defaults
0 0
sysfs /sys sysfs defaults
0 0
#LABEL=store /storage/store ext3 defaults,noatime,noexec,nofail
0 2
LABEL=Music /storage/Music ntfs-3g
noexec,nofail,noatime,big_writes,defaults 0 0
LABEL=Films /storage/Films ntfs-3g
noexec,nofail,noatime,big_writes,defaults 0 0
LABEL=Data /storage/Data ntfs-3g
noexec,nofail,noatime,big_writes,defaults 0 0
[root@wandboard ~]#
[root@wandboard ~]# mount | grep /dev/
/dev/mmcblk0p3 on / type ext4
(rw,noatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
tmpfs on /dev/shm type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
mqueue on /dev/mqueue type mqueue (rw,relatime)
/dev/sdc1 on /storage/Films type fuseblk
(rw,noexec,noatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sda1 on /storage/Data type fuseblk
(rw,noexec,noatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/mmcblk0p1 on /boot type ext2 (rw,noatime,user_xattr,barrier=1)
/dev/sdd2 on /storage/Music type fuseblk
(rw,noexec,noatime,user_id=0,group_id=0,allow_other,blksize=4096)
[root@wandboard ~]#
--------------------
My aim is to mount the drive labelled SAMSUNG.
Open Web GUI Storage page.
The expected partitions are listed under 'Mounted File Systems'.
Under 'Mount Local Disk' I select /mnt/disk1, /dev/sdb1 and ext3 then
click 'Add'.
Drive shows up as - /mnt/disk1, /dev/sdb1 (fuseblk), defaults.
I am able to browse the files on the partition via the mount point. All
good so far.
Check fstab:
Code:
--------------------
[root@wandboard /]# cat /etc/fstab
#
# /etc/fstab
#
# 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
#
/dev/mmcblk0p1 /boot ext2 defaults,noatime
0 2
/dev/mmcblk0p3 / ext4 defaults,noatime,errors=remount-ro
0 1
/dev/mmcblk0p2 swap swap defaults,noatime
0 0
devpts /dev/pts devpts gid=5,mode=620
0 0
tmpfs /dev/shm tmpfs defaults
0 0
proc /proc proc defaults
0 0
sysfs /sys sysfs defaults
0 0
#LABEL=store /storage/store ext3 defaults,noatime,noexec,nofail
0 2
LABEL=Music /storage/Music ntfs-3g
noexec,nofail,noatime,big_writes,defaults 0 0
LABEL=Films /storage/Films ntfs-3g
noexec,nofail,noatime,big_writes,defaults 0 0
LABEL=Data /storage/Data ntfs-3g
noexec,nofail,noatime,big_writes,defaults 0 0
# start added by squeeze-web-gui-lua
/dev/sdb1 /mnt/disk1 fuseblk defaults 0 0
# end added by squeeze-web-gui-lua
--------------------
Seems as I would expect.
Click 'Remove' button in GUI next to this partition.
GUI removes /dev/sdc1 partition from list NOT /dev/sdb1
Code:
--------------------
[root@wandboard /]# cat /etc/fstab
#
# /etc/fstab
#
# 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
#
/dev/mmcblk0p1 /boot ext2 defaults,noatime
0 2
/dev/mmcblk0p3 / ext4 defaults,noatime,errors=remount-ro
0 1
/dev/mmcblk0p2 swap swap defaults,noatime
0 0
devpts /dev/pts devpts gid=5,mode=620
0 0
tmpfs /dev/shm tmpfs defaults
0 0
proc /proc proc defaults
0 0
sysfs /sys sysfs defaults
0 0
#LABEL=store /storage/store ext3 defaults,noatime,noexec,nofail
0 2
LABEL=Music /storage/Music ntfs-3g
noexec,nofail,noatime,big_writes,defaults 0 0
LABEL=Films /storage/Films ntfs-3g
noexec,nofail,noatime,big_writes,defaults 0 0
LABEL=Data /storage/Data ntfs-3g
noexec,nofail,noatime,big_writes,defaults 0 0
# start added by squeeze-web-gui-lua
/dev/sdb1 /mnt/disk1 fuseblk defaults 0 0
# end added by squeeze-web-gui-lua
[root@wandboard /]#
--------------------
/dev/sdb1 entry is still present.
Click the 'Remove' button again.
/dev/sda1 is removed...
Code:
--------------------
[root@wandboard /]# mount | grep /dev/
/dev/mmcblk0p3 on / type ext4
(rw,noatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
tmpfs on /dev/shm type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
mqueue on /dev/mqueue type mqueue (rw,relatime)
/dev/mmcblk0p1 on /boot type ext2 (rw,noatime,user_xattr,barrier=1)
/dev/sdd2 on /storage/Music type fuseblk
(rw,noexec,noatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sdb1 on /mnt/disk1 type fuseblk
(rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
[root@wandboard /]#
--------------------
Next attempt removes /dev/sdd2....leaving /dev/sdb1 (the one I've be
trying to remove all along).
One more click finally removes this partition....and removes the entry
from fstab.
[When doing this testing earlier I powered off the WB at one point prior
to removing the drive entry, disconnected the drive and then wondered
why it wasn't rebooting at all.
Had to remove sdcard and edit the fstab file in other machine to remove
entry and then it booted (could of just plugged drive back in but didn't
think of that at the time ;O)
Would be good idea to add 'nofail' as a default entry like Clive has to
his GUI - otherwise I think we may see a few "it doesn't boot"
complaints in future....]
Sorry for the long post again. Hope it helps you track down the
problem.
------------------------------------------------------------------------
slackhead's Profile: http://forums.slimdevices.com/member.php?userid=13963
View this thread: http://forums.slimdevices.com/showthread.php?t=99395
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix