Is there a way to disable auto mounting of drives
so that I can do certain disk operations on both (e.g. dd from one to the other)? I tried to unmount both drives after they get auto mounted and one of the drives isn't possible to umount, because it seems to be used by multiple other processes. Even doing umount with -f flag doesn't work.
It's just a regular ext4 disk, formatted on another computer and put into the DNS-323, and doesn't have ipkg or ffp or anything else installed.
I tried shutting off the DNS-323, removing the drives, turning the DNS-323 back on, then putting the disks in after that and it still auto-mounted them.
Using the web interface to eject the drive fails also, saying that the device is busy. Any way I could have both drives unmounted while they're within the NAS? Thanks!
I see... better, I don't see.
I mean, I can't fix it if I don't know what's wrong.
Do you have any Alt-F packages installed? Even if not using it?
Can you telnet? While the system don't hang, can you get any filesystem status? Such as 'mount', 'aufs.sh -l', 'du -h /tmp', 'cat /proc/swaps', 'logread', 'dmesg' , ...
The more factual info I get, even if partial, the more probable is that I find a fix.
As for the "recovery", which is a good idea, the problem is the same, recovering from what? Doing what?
Thanks.
On Sep 22, 2012 9:19 PM, "Rolf Larsson" <rolf.l...@gmail.com> wrote:
One of my 3TB disks got accidentally* ejected while it was formatting, and if I insert it pretty much everything hangs; web UI hangs, I can't ssh into the box (or if I can, doing anything related to disk control will hang), existing ssh connections die on certain commands etc. I suppose I'll need to put the disk into a USB cabinet and wipe the partition table from another linux box.Some kind of 'rescue' mode might be interesting to pursue at a (much) later stage.-- R
*) Too much gefingerpoken by yours truly...
On Friday, September 14, 2012 2:19:13 PM UTC+2, Joao Cardoso wrote: > > > > On Thursday, September...
-- You received this message because you are subscribed to the Google Groups "Alt-F" group. To post...
To view this discussion on the web visit https://groups.google.com/d/msg/alt-f/-/AYn33HdXZ1kJ.
#
# cat /etc/fstab
#
/dev/sda1 none swap pri=1 0 0
/dev/sda2 /mnt/sda2 ext3 defaults 0 0
/dev/sdb1 none swap pri=1 0 0
/dev/sdb2 /mnt/sdb2 ext3 defaults 0 0
/dev/sda4 /mnt/sda4 ext3 noauto 0 0
/dev/sdb4 /mnt/sdb4 ext3 noauto 0 0
#
Sorry to bring back this old-ish post back to life, but I'm trying to do the same thing: disable autu-mounting all partitions.
On Sunday, January 6, 2013 10:35:33 AM UTC, scaramanga wrote:Sorry to bring back this old-ish post back to life, but I'm trying to do the same thing: disable autu-mounting all partitions.Currently not possible, as fstab is rebuild at each boot, depending on the detected fs/disks.Mount options are preserved using the filesystem uuid, but they are not parsed or followed (the noauto option could be followed, please fill-in a issue request, but that will be low priority)
As a matter of fact I find the small 500MB partitions useful; I use them to install Alt-F and ffp packages. That has several non-obvious positive impact on the system (fs operations on the user's main filesystem, such as unmount, fsck, convert, to name a few).
On Sunday, January 6, 2013 11:16:04 PM UTC+2, Joao Cardoso wrote:
On Sunday, January 6, 2013 10:35:33 AM UTC, scaramanga wrote:Sorry to bring back this old-ish post back to life, but I'm trying to do the same thing: disable autu-mounting all partitions.Currently not possible, as fstab is rebuild at each boot, depending on the detected fs/disks.Mount options are preserved using the filesystem uuid, but they are not parsed or followed (the noauto option could be followed, please fill-in a issue request, but that will be low priority)
I'll fill in the issue.
How about changing the default mount options using tune2fs -o. Will that work? Currently, it seems, the mount options are empty.
Oh, and while we're at it: In a different discussion you suggested adding the journal_data_ordered mount option to existing ext3 partitions, either by adding them to the disk->filesystems or using tune2fs. The disk->filesystems method won't survive a reboot, right?
I should use tune2fs to do that too.
As a matter of fact I find the small 500MB partitions useful; I use them to install Alt-F and ffp packages. That has several non-obvious positive impact on the system (fs operations on the user's main filesystem, such as unmount, fsck, convert, to name a few).
*Sigh* now why didn't I think of that.
As a matter of fact I find the small 500MB partitions useful; I use them to install Alt-F and ffp packages. That has several non-obvious positive impact on the system (fs operations on the user's main filesystem, such as unmount, fsck, convert, to name a few).*Sigh* now why didn't I think of that.Try the attached script to move the current Alt-F installation to a new filesystem.Download it to, e.g. /root, make it executable using 'chmod +x Alt-F-reloc.sh', stop all services and invoke it. The current installation will be renamed to 'Alt-F-orig'.Any issues? It worked for me on a simple installation.I could offer a "Move Installation" option in the Alt-F package manager web page?...