Port 5.0rc1 XFCE - external ext3 weirdly mounted
Posted: 26 Mar 2020, 04:37
System Porteus 5.0rc1 XFCE version.
For some reason there went something wrong mounting the external HD ext3 partition.
It is not listed in the mounted drives by my function dx. Why do I use this function instead of "df -Tm"? For two reasons:
● it displays also a date+time stamp; that is very useful when you need to free disk space and want to compare instances of dx ran in the present and older ran ones; or when you start to run out of disk space - you can easily compare older ran dx with the most recent ran instance of dx.
● it omits some entries that usually I do not want to see: e.g. all mounted squashfs modules, since you have no df ("disk free") in these anyway, you cannot store any data in these since modules are read-only anyway. So listing a bunch of these via df never made any sense to me.
This is the code of the function:
Cave! Be aware that my function is kinda stupid, with the displayed divider made out of "___" characters, it just assumes the terminal or VT has a width of 80 characters, but it not checks this.
Now, back to my ext3 issue.
Aside from it not being listed with either dx of df, when I address it directly e.g. "dx /mnt/sdb4" it gets listed like so (same is true with the original df, aka listed via "df -Tm"):
when the correct entry should look like so:
When trying to list it via "dx /dev/sdb4" dx lists nothing since it omits devtmpfs and df -mT lists this:
Trying to mount it via the XFCE desktop icon results in this error window:
Any idea what went wrong while mounting the ext3 filesystem?
Is this a possible danger for the data on that FS?
Or is the ext3 FS handled okay and the journal is working just fine?
While researching this issue I found this entry in the online version of "man mount"Since I never heard of /etc/mnttab, only of /etc/mtab, I looked what our Slackware based Porteus is using:
No wonder I never encountered or even heard from /etc/mnttab.
Do some Linux variants now use /etc/mnttab while others still use the older well known /etc/mtab?
"mtab" it not to be found even a single time in the online mount manual.
For some reason there went something wrong mounting the external HD ext3 partition.
It is not listed in the mounted drives by my function dx. Why do I use this function instead of "df -Tm"? For two reasons:
● it displays also a date+time stamp; that is very useful when you need to free disk space and want to compare instances of dx ran in the present and older ran ones; or when you start to run out of disk space - you can easily compare older ran dx with the most recent ran instance of dx.
● it omits some entries that usually I do not want to see: e.g. all mounted squashfs modules, since you have no df ("disk free") in these anyway, you cannot store any data in these since modules are read-only anyway. So listing a bunch of these via df never made any sense to me.
This is the code of the function:
Code: Select all
dx ()
{
echo $(date +%d.%m.%Y\ %H:%M:%S) ____________________________________________________________;
/bin/df -Tm $* | grep -vE 'tmpfs|/mnt/live/run|squashfs'
}
Now, back to my ext3 issue.
Aside from it not being listed with either dx of df, when I address it directly e.g. "dx /mnt/sdb4" it gets listed like so (same is true with the original df, aka listed via "df -Tm"):
Code: Select all
- - 469603 81481 383350 18% /mnt/sdb4
Code: Select all
/dev/sdb4 ext3 469603 81481 383350 18% /mnt/sdb4
Code: Select all
root@porteus:/# df -mT /dev/sdb4
Filesystem Type 1M-blocks Used Available Use% Mounted on
devtmpfs devtmpfs 1936 0 1936 0% /dev
Code: Select all
Error mounting system-managed device /dev/sdb4: Command-line `mount "/mnt/sdb4"' exited with non-zero exit status 32: mount: /mnt/sdb4: /dev/sdb4 already mounted or mount point busy.
Is this a possible danger for the data on that FS?
Or is the ext3 FS handled okay and the journal is working just fine?
While researching this issue I found this entry in the online version of "man mount"
Code: Select all
FILES
/etc/mnttab
Table of mounted file systems.
Code: Select all
guest@porteus:/$ ls -oa /etc/mtab
lrwxrwxrwx 1 root 17 Jan 9 13:29 /etc/mtab -> /proc/self/mounts
guest@porteus:/$ ls -oa /etc/mnttab
/bin/ls: cannot access '/etc/mnttab': No such file or directory
Do some Linux variants now use /etc/mnttab while others still use the older well known /etc/mtab?
"mtab" it not to be found even a single time in the online mount manual.