- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Re: Readynas NV+ V1 - Mounting OS partition in support mode
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Readynas NV+ V1 - Mounting OS partition in support mode
I'm a newbie to the forum but just wanted a definitive answer on whether it's possible to mount the OS partition from telnet support mode to clear up suspected problem log files. Alternatively, is there a way to enable SSH from telnet support mode.
I did see an article on mounting the OS partition from support mode but it needed mdadm which isn't available on the NV+ V1. There were other articles talking about using another
command fuse-ext3 but that's not there either. How does the boot loader mount the file system under normal conditions ? Are there alternative commands or is it managed by one of the
background daemon processes that run ?
I know I can do both from FrontView, but that's my problem at the moment the interface login timesout. I can access shares and do everything else just fine, so I suspect the OS partition may be full and is stopping me connecting the Frontview GUI.
Advice appreciated.
p.s. I know I can do a full factory reset to clear the logs, but I want to keep my data on there if possible (without having to move it away and back).
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
I'm wanting to do this now simply because I want to upgrade the firmware to 4.1.14 [T5] to deal with the bash ShellShock vulnerability.
If you did work it out (or anybody else for that matter), I'd really appreciate a hint! 🙂
Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
# start_raid.sh
# mount /dev/md0 /sysroot
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
http://onlyblueatwork.wordpress.com/tag/readynas/
which boiled down to :
echo DEVICE partitions > /etc/mdadm.conf
mdadm --examine --scan >> /etc/mdadm.conf
mdadm --assemble --scan
mount /dev/md0 /mnt
I like the start_raid.sh better.
Is there a way to mount the data drives for recovery purposes as well?
Thanks,
-Mark
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
# mount -t proc proc /proc
# chroot /sysroot
# mount /dev/md2 /dev/c/c
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
# /etc/init.d/samba start
Remember to unmount everything cleanly before rebooting.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
mdadm is not on the older spark boxes, so that can't be used. I'm also configured for X-RAID so not trying to mount md0, but instead hdc1
Thus:
# /bin/start_raid.sh
# mount /dev/hdc1 /sysroot
mdgm really made my weekend. His responsiveness was stellar and he had me fixed up in a matter of minutes!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
I am not sure what went wrong, so I telnet via tech support method. I was very happy to see all of my data still sitting there. I did the /bin/start_raid.sh and did the mount.
What do I need to do to figure out what I need in order to get the system booting normal. Like the OP, I am doing RAID-X, so I was not able to chroot or get samba running.
Also, is there a way to enable telnet so I can reboot and then telnet with normal credentials or do I have to use tech support mode?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
You could install EnableRootSSH (if you have not already) via the GUI after the problem is fixed. Using SSH has the same support implications as using telnet mode. Support may be unable to help e.g. if their opinion is that you may have messed things up using it.
Enabling telnet in normal mode wouldn't be a good idea as SSH is much more secure. We use telnet for local access to a NAS in telnet mode as with that low level diagnostic mode we want to be able to connect in as many different situations as possible. Telnet is great for that.
Flex-RAID uses a custom mdconfig on Sparc (different to mdadm but uses md devices) but most users would use X-RAID.
You can check for a full OS partition using df and use e.g. du to see where the problem is.
Both of these commands are available on the OS partition.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
that all of a sudden i could not access my shares, i could not login to the
admin interface, and could not ssh into the box. I can only ping and the
dhcp address is assigned.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
Well the first thing to check for is the OS partition being full either by data or the inodes all being used up.
If it's full of data then the du command can be used to see what's filling it (probably a huge log file). Typically we would copy the huge log file onto the data volume (just in case that information is relevant for future troubleshooting) and then empty it.
If it's inode then a different command would be needed and you'd be looking for a huge number of small files on the OS partition.
The OS partition is 2GB in size.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
I chrooted sysroot, but although my /hone/user it's mounted, none of my shares are mounted. Is that where I am having an issue?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
Or was I suppose to mount /proc before starting the start_raid.sh?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
/proc is already mounted.
If you are wanting to chroot then you need to run a mount command to be able to access /proc whilst in the chroot
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Readynas NV+ V1 - Mounting OS partition in support mode
Replied to your PM.