General NAS-Central Forums

Welcome to the NAS community
It is currently Sat Sep 23, 2017 9:19 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: px12-350r
PostPosted: Sun Feb 08, 2015 2:42 am 
Offline

Joined: Sun Feb 08, 2015 2:32 am
Posts: 2
Hi,

I just got a px12-350r for +-400$, I was about to believe it was not running on linux but I activated rsync in the web interface, and ssh started to work :D
the password for the root account is the same as the others iomega: "sohoAdminPassword"

But until now, I'am unable to use "aptitude" or "apt-get"
I tried a lot of things (found on nascentral wiki)


anyone have ideas?

ps:sorry if mistakes, I usualy speak french


Top
 Profile  
 
 Post subject: Re: px12-350r
PostPosted: Mon Feb 09, 2015 2:02 am 
Offline

Joined: Sun Feb 08, 2015 2:32 am
Posts: 2
Still no one?
I continue my investigation... pheraps it could help someone to solve the problem

At the begining, I created folders and lock files to solve the errors messages

but now, I understand some part of the file system are read only (hardware locked)

I'm trying to dealing with that

I wonder if I can change the default system folders path... if it's possible, pheraps I can make it work
but obviously, only the /etc folder keep changes when I reboot the nas...

so I have to script...

Code:
#!/bin/bash
#make "aptitude update" work
#source.list update needed
mkdir /var/lib/dpkg
touch /var/lib/dpkg/status
mkdir /var/lib/apt
mkdir /var/lib/apt/lists
touch /var/lib/apt/lists/lock
mkdir /var/cache/apt
mkdir /var/lib/apt/lists/partial
mkdir /var/cache/apt/archives
mkdir /var/cache/apt/archives/partial


#first step to make "aptitude install" work
mkdir /var/lib/dpkg/updates
mkdir /var/log/apt
touch /var/lib/dpkg/available


Top
 Profile  
 
 Post subject: Re: px12-350r
PostPosted: Mon Feb 09, 2015 7:22 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6039
alec wrote:
I wonder if I can change the default system folders path... if it's possible, pheraps I can make it work
Yes, you can. You can simply bindmount another directory there.

Let's assume you want to exchange the /usr/local/ directory. Then you can create a directory somewhere on harddisk, maybe /mnt/pools/A/A1/usr_local. First copy the current content:
Code:
cp -a /usr/local/* /mnt/pools/A/A1/usr_local/
then bindmount it:
Code:
mount -o bind /mnt/pools/A/A1/usr_local /usr/local
Now you have a writable /usr/local directory, until the next boot.
Quote:
but obviously, only the /etc folder keep changes when I reboot the nas...
And so you can add some script to /etc/rc.local. But beware, when this script is executed, the data partition is not yet mounted. So you'll have to poll for the existence of the directory before you can bindmount it, but meanwhile rc.local has to exit. It can be done this way:
Code:
# stuff

PollingFunction()
{
    while [ ! -d /mnt/pools/A/A1/usr_local ] ; do
        sleep 10
    done
   
    mount -o bind /mnt/pools/A/A1/usr_local /usr/local
    exit 0
}

PollingFunction &


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group