Welcome to the updated Slickdeals redesign beta. Learn more and give us feedback. Or, return to the classic view.

Search in
Frontpage Deal
eBay Discounts, Deals and Coupon Codes

Pogoplug Classic Media Sharing Device (P21 Black or B01 Pink) EXPIRED

DJ3xclusive 71,440 December 28, 2012 at 08:01 AM in Computers (5) More eBay Deals
Deal
Score
+54
61,763 Views
See Deal
$17

Deal Details

Promoted 12-28-2012 at 04:48 PM View Original Post
Adorama via eBay has Pogoplug Classic Media Sharing Device (P21 Black or B01 Pink) for $17 with free shipping. Thanks DJ3xclusive

Original Post

Edited December 28, 2012 at 01:46 PM by widgit

385 Comments

19 20 21 22 23

Sign up for a Slickdeals account to remove this ad.

#301
ok did the reinstall again (all the way from scratch) and im not getting any read only errors. so i've gotten further. but trying to install samba gives me an error.
when i type: pacman -Sy samba avahi

i get

[root@alarm /]# pacman -Sy samba avahi
:: Synchronizing package databases...
core is up to date
community is up to date
alarm is up to date
aur 14.1 KiB 57.3K/s 00:00 [######################] 100%
error: target not found: samba

wth?
Reply Helpful Comment? 0 0
#302
Quote from teetee1 View Post :
If it still can't boot successfully after you leave only the system drive plugged in before reboot, you have a corrupted installation. Triple check the revision of the pogoplug unit (the lable on the underside of the unit) and make sure the installation instruction is the correct one for the reinstallation (or de-brick).
Now it does come back on the network with a green light (USB system drive plugged in) on the same IP address. After I SSH, it asks me for the password which is my old password of the Pogoplug. I thought it was supposed to ask for the username and password and will show the [root@alarm ~]# prompt. Mine does NOT. It shows me Pogoplug:~$ like nothing happened.

I quadruple check the bottom of my black Pogoplug and it does say POGO-E02 (the box was different) I tried reformatting the system drive using fdisk and going through the directions but I have the same result. I tried 3 kinds of flash drive and 1 USB self powered drive, used the back bottom USB and front USB with no positive results.

Any advice?
Reply Helpful Comment? 0 0
#303
Quote from teetee1 View Post :

Each share folder section in smb.conf is responsible to share each partition on the drive. If you want to share more partitions (=drives if you have one partition on each drive - which is the most common scenario), you will put more sections in the smb.conf to tell samba server which partitions you want to share.



If you have a partition mounted at /media/external, you have to change the "path" above from
path = /media/mnt_sdx1/
to
path = /media/external

for samba server to know what to share.


ok so the samba repo seems to be down as per my rpevious post but i did run the commands you mentioned after doing the install again.

heres the output:

------

[root@alarm /]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 1307:0165 Transcend Information, Inc. 2GB/4GB Flash Drive
Bus 001 Device 004: ID 152d:2339 JMicron Technology Corp. / JMicron USA Technology Corp. JM20339 SATA Bridge
[root@alarm /]# fdisk -l

Disk /dev/sda: 1010 MB, 1010827264 bytes, 1974272 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 41 1972427 986193+ 83 Linux

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x11d0b8c3

Device Boot Start End Blocks Id System
/dev/sdb1 2048 3907026943 1953512448 7 HPFS/NTFS/exFAT

Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x11d0b8c0

Device Boot Start End Blocks Id System
/dev/sdc1 2048 3907026943 1953512448 7 HPFS/NTFS/exFAT

Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdd1 63 3907029167 1953514552+ 7 HPFS/NTFS/exFAT

WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sde: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sde1 1 409639 204819+ ee GPT
/dev/sde2 411648 3907028991 1953308672 7 HPFS/NTFS/exFAT
[root@alarm /]# cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>

UUID="D60071C60071ADDD" /mnt/Disk1 ntfs defaults 0 0

UUID="24D89226D891F670" /mnt/Disk2 ntfs defaults 0 0

UUID="F8E841F4E841B224" /mnt/Disk3 ntfs defaults 0 0

UUID="101CE00C1CDFEAAC" /mnt/Disk4 ntfs defaults 0 0
[root@alarm /]# blkid
/dev/sda1: UUID="027245c8-60f8-4dd8-8466-07647e507ecd" TYPE="ext2"
/dev/sdb1: LABEL="Disk1" UUID="D60071C60071ADDD" TYPE="ntfs"
/dev/sdc1: LABEL="Disk2" UUID="24D89226D891F670" TYPE="ntfs"
/dev/sdd1: LABEL="Disk3" UUID="F8E841F4E841B224" TYPE="ntfs"
/dev/sde1: LABEL="EFI" UUID="70D6-1701" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="bb872941-45e9-4119-ba85-c2eb00c2f6ba"
/dev/sde2: LABEL="Disk4" UUID="101CE00C1CDFEAAC" TYPE="ntfs" PARTLABEL="Disk4" PARTUUID="b9afd237-0797-4a0c-bdf4-2f147ecc1e94"



-------

Ive basically mounted each drive to /mnt/Disk1(2,3 or 4). I've checked the directories and the files are all there.

now to wait for samba to come online. In the meanwhile just some clarification on your instructions for config file.

is this how my config file would look to sahre Disk1,2,3,4:

[global]
workgroup = WORKGROUP
server string = ALARM
netbios name = ALARM
security = share
load printers = no
printing = bsd
printcap name = /dev/null
disable spools = yes
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
[ArchLinuxARM]
path = /mnt/Disk1
path = /mnt/Disk2
path = /mnt/Disk3
path = /mnt/Disk4
read only = no
public = yes
writable = yes
force user = root



----

In the above file it says force user=root but in the samba wiki it says to create a user pcguest.
what will my login password be for the samba shares? login pcguest and password blank? (I dont mind the blank password).
Reply Helpful Comment? 0 0
#304
Quote from newwonder View Post :
Gurus, what is the advantage of installing Arch Linux other than using torrent etc. Is it possible, pogoplug.com will connect my device after the update.

I believe the pogoplug sw itself working as good, please clear me.

Thanks
I have never used pogoplug stock software but I believe you believe it wrong :p

Only by using linux for a period of time one knows the limitless of what it can do. It makes any gadget purchase for specific purpose looks like a joke (worse if the way they do it is proprietary), to put it bluntly.

using torrent? The last time I screen -r <rtorrent session> was more than 3 months ago. You can think pogoplug as a general purpose computer with 4W power consumption. For some people not being able to play games or do social network stuff on web browser probably diminishes pogoplug's value but there is a totally different world out there (linux underworld? lol).

One of the things I currently do with it (actually I had to use two of them) is using the mysql database for schema design homework assignment for the class I am taking. It's not a big work load so this is perfect for the job.
Reply Helpful Comment? 0 0
#305
just as way of an update for anyone else having issues with servers or obtaining packages.

i used the following command to move up the NY mirror to top of my list. for some reason everything in that file is commented out with # and ##.

nano /etc/pacman.d/mirrorlist

removd the # from NY server.

Server = http://us.mirror.archlinuxarm.org/arm/$repo

seems to be working now. previously though when i used the pacman -Sy samba avahi command it said

[root@alarm /]# pacman -Sy samba avahi
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
error: target not found: samba

now when i used it after updating the mirror it has found updates for everything. i hope its not screwing up the install.


:: Synchronizing package databases...
core 40.5 KiB 37.8K/s 00:01 [######################] 100%
extra 456.7 KiB 170K/s 00:03 [######################] 100%
community 471.9 KiB 224K/s 00:02 [######################] 100%
alarm 5.0 KiB 546K/s 00:00 [######################] 100%
aur 14.1 KiB 466K/s 00:00 [######################] 100%
resolving dependencies...
looking for inter-conflicts...

Targets (18): cifs-utils-5.8-1 gamin-0.1.10-6 gnutls-3.1.6-1
libcap-ng-0.7.3-1 libcups-1.6.1-6 libdaemon-0.14-2
libjpeg-turbo-1.2.1-1 libpng-1.5.13-1 libtasn1-3.2-1
libtiff-4.0.3-1 libwbclient-3.6.10-1 nettle-2.6-1
p11-kit-0.13-1 smbclient-3.6.10-1 talloc-2.0.8-1 tdb-1.2.11-1
avahi-0.6.31-5 samba-3.6.10-1

Total Download Size: 21.31 MiB
Total Installed Size: 131.46 MiB


after the install got done i have another issue:


rc.d [start|stop|restart] samba
-bash: rc.d: command not found
-bash: stop: command not found
-bash: restart]: command not found


[root@alarm /]# rc.d start samba
-bash: rc.d: command not found

Lastly, in the samba guide it says: To start Samba on boot, edit /etc/rc.conf, scroll down to the end of the file and add "samba" to the list of DAEMONS.

my rc.conf file is empty. how to i "add samba to the list of daemons"??


this is what i get from testparm:


[root@alarm /]# testparm
Load smb config files from /etc/samba/smb.conf
Unknown parameter encountered: "disable spools"
Ignoring unknown parameter "disable spools"
Processing section "[ArchLinuxARM]"
WARNING: The security=share option is deprecated
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = ALARM
security = SHARE
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
load printers = No
printcap name = /dev/null
dns proxy = No
idmap config * : backend = tdb
printing = bsd
print command = lpr -r -P'%p' %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j

[ArchLinuxARM]
path = /mnt/Disk4
force user = root
read only = No
guest ok = Yes
Reply Helpful Comment? 0 0
#306
Quote from psilver View Post :
Now it does come back on the network with a green light (USB system drive plugged in) on the same IP address. After I SSH, it asks me for the password which is my old password of the Pogoplug. I thought it was supposed to ask for the username and password and will show the [root@alarm ~]# prompt. Mine does NOT. It shows me Pogoplug:~$ like nothing happened.

I quadruple check the bottom of my black Pogoplug and it does say POGO-E02 (the box was different) I tried reformatting the system drive using fdisk and going through the directions but I have the same result. I tried 3 kinds of flash drive and 1 USB self powered drive, used the back bottom USB and front USB with no positive results.

Any advice?
Please post the link of the installation instruction you followed.

The fact that the unit boots and shows Pogoplug:~$ prompt means it failed to boot from the arch linux you installed on the thumb drive, so the failover system was used (which stores in the onboard NAND chip).

You can also do a quick check, start with Pogoplug:~$ and your supposely-working system drive plugged into the bottom USB port on the rear panel and post the results from the command below
$ fdisk -l
Reply Helpful Comment? 0 0
#307
Quote from teetee1 View Post :
Please post the link of the installation instruction you followed.

The fact that the unit boots and shows Pogoplug:~$ prompt means it failed to boot from the arch linux you installed on the thumb drive, so the failover system was used (which stores in the onboard NAND chip).

You can also do a quick check, start with Pogoplug:~$ and your supposely-working system drive plugged into the bottom USB port on the rear panel and post the results from the command below
$ fdisk -l
Installation instructions for Arch Linux Arm is from here:
http://archlinuxarm.org/platforms...2-pinkgray

I am using a (USB-powered) 320gb hard drive at the moment as the system drive. All thumb drive I used has almost the same results. It is connected on the bottom USB port of the rear panel.

Here is the result:

Last login: Thu Jan 24 09:05:13 on ttys001
MacBook-Pro-2:~ Silverph$ ssh root@192.168.1.24
root@192.168.1.24's password:
Pogoplug:~$ fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 38913 312568641 83 Linux
Pogoplug:~$
Reply Helpful Comment? 0 0

Sign up for a Slickdeals account to remove this ad.

#308
Quote from Zank View Post :
just as way of an update for anyone else having issues with servers or obtaining packages.

i used the following command to move up the NY mirror to top of my list. for some reason everything in that file is commented out with # and ##.

nano /etc/pacman.d/mirrorlist

removd the # from NY server.

Server = http://us.mirror.archlinuxarm.org/arm/$repo

seems to be working now. previously though when i used the pacman -Sy samba avahi command it said

[root@alarm /]# pacman -Sy samba avahi
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
error: target not found: samba

now when i used it after updating the mirror it has found updates for everything. i hope its not screwing up the install.


:: Synchronizing package databases...
core 40.5 KiB 37.8K/s 00:01 [######################] 100%
extra 456.7 KiB 170K/s 00:03 [######################] 100%
community 471.9 KiB 224K/s 00:02 [######################] 100%
alarm 5.0 KiB 546K/s 00:00 [######################] 100%
aur 14.1 KiB 466K/s 00:00 [######################] 100%
resolving dependencies...
looking for inter-conflicts...

Targets (18): cifs-utils-5.8-1 gamin-0.1.10-6 gnutls-3.1.6-1
libcap-ng-0.7.3-1 libcups-1.6.1-6 libdaemon-0.14-2
libjpeg-turbo-1.2.1-1 libpng-1.5.13-1 libtasn1-3.2-1
libtiff-4.0.3-1 libwbclient-3.6.10-1 nettle-2.6-1
p11-kit-0.13-1 smbclient-3.6.10-1 talloc-2.0.8-1 tdb-1.2.11-1
avahi-0.6.31-5 samba-3.6.10-1

Total Download Size: 21.31 MiB
Total Installed Size: 131.46 MiB


after the install got done i have another issue:


rc.d [start|stop|restart] samba
-bash: rc.d: command not found
-bash: stop: command not found
-bash: restart]: command not found


[root@alarm /]# rc.d start samba
-bash: rc.d: command not found

Lastly, in the samba guide it says: To start Samba on boot, edit /etc/rc.conf, scroll down to the end of the file and add "samba" to the list of DAEMONS.

my rc.conf file is empty. how to i "add samba to the list of daemons"??


this is what i get from testparm:


[root@alarm /]# testparm
Load smb config files from /etc/samba/smb.conf
Unknown parameter encountered: "disable spools"
Ignoring unknown parameter "disable spools"
Processing section "[ArchLinuxARM]"
WARNING: The security=share option is deprecated
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = ALARM
security = SHARE
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
load printers = No
printcap name = /dev/null
dns proxy = No
idmap config * : backend = tdb
printing = bsd
print command = lpr -r -P'%p' %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j

[ArchLinuxARM]
path = /mnt/Disk4
force user = root
read only = No
guest ok = Yes
Do this:
Code:
systemctl enable smbd.service
systemctl enable nmbd.service
Since Arch changed over to systemd, daemons are no longer used. See here [archlinux.org].

You can also use this to review the status of the service you're trying to start and catch errors. It helped me figure out why minidlna wasn't working.
Code:
systemctl status smbd.service
Reply Helpful Comment? 0 0
#309
Quote from Zank View Post :
ok so the samba repo seems to be down as per my rpevious post but i did run the commands you mentioned after doing the install again.

(To long to quot)

In the above file it says force user=root but in the samba wiki it says to create a user pcguest.
what will my login password be for the samba shares? login pcguest and password blank? (I dont mind the blank password).
Let me see if I'm clear with your setup. You have Transcend 1GB thumb drive as your /dev/sda1 system drive (not sure if it's enough - I think 2GB is the minimum space to do anything. You can do a quick check by using the following command:
# df -h
and see how much is still available on "/" (rootfs).

You also have a 4-bay USB enclosure with JBOD setting, 3x2TB drives (/dev/sdb1,sdc1,sdd1) with MBR partition scheme and 1x2TB drive with a tiny GPT partition and a large ntfs partition (/dev/sde2 for storage)

Here is the smb.conf I would use (make sure samba is installed and `systemctl restart smbd nmbd` works, the folders /mnt/DISK1 and the rest are created first):

[global]
security = user
dos charset = ASCII
workgroup = WORKGROUP
server string = ALARM
syslog = 0
log file = /var/log/samba/log.%m
max log size = 50
os level = 65
preferred master = Auto
dns proxy = No
create mask = 0777
directory mask = 0777
[DISK1]
path = /mnt/DISK1
read only = No
[DISK2]
path = /mnt/DISK2
read only = No
[DISK3]
path = /mnt/DISK3
read only = No
[DISK4]
path = /mnt/DISK4
read only = No

Set up a samba user account by using smbpasswd command,
# smbpasswd -h
will show you what parameters to use. I would use -a and -n to create a user account to access those drives without having to put in passwords. You probably will need to use the existing system user account (one of the users in /etc/passwd) as your samba user account. The default samba password database files are stored in /etc/samba/private/

Restart samba and try to access the shared folders from one of your samba clients. The share path would be something like smb://username@alarm/DISK1

Permission and security warning:
1. one should never use root as a user to access shared files/folders
2. better to have password (or have open doors for crawler malware / viruses)
3. since the mounted drives are originally owned by root.root, you probably need to either set the folders(/mnt/DISK1) world-writable (777) or change ownership (chown command) of the folder to your samba user account (I never tried it on ntfs filesystems drive) to allow the user accessing samba has the permission to write data on the drives through samba.
Reply Helpful Comment? 0 0
#310
Quote from psilver View Post :
Installation instructions for Arch Linux Arm is from here:
http://archlinuxarm.org/platforms...2-pinkgray

I am using a (USB-powered) 320gb hard drive at the moment as the system drive. All thumb drive I used has almost the same results. It is connected on the bottom USB port of the rear panel.

Here is the result:

Last login: Thu Jan 24 09:05:13 on ttys001
MacBook-Pro-2:~ Silverph$ ssh root@192.168.1.24
root@192.168.1.24's password:
Pogoplug:~$ fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 38913 312568641 83 Linux
Pogoplug:~$
now please post the content on /dev/sda1
Pogoplug:~$ mkdir /tmp/sda1; mount /dev/sda1 /tmp/sda1; ls -l /tmp/sda1
and
Pogoplug:~$ cat /tmp/sda1/etc/fstab
Reply Helpful Comment? 0 0
#311
thank you so so much for getting me up and running. you are right...my boot disk is the transcent 1 gb drive. the wiki said use 1 gb minimum, and df -h says i have 200 mb free. seems to be ok for now. I guess i can just clone the disk later to move to a bigger drive? or does it require re-setup?

Everything as of now is working perfectly. Can i maybe make an image of the usb drive right now as a backup so if anything goes wrong i can just restore it? or does linux not work this way?

I know i've asked this before but is there some idiot proof guide to setting up nfs4? i checked out the nsfv4 wiki but quite honestly i'm totally lost with it. its a wiki and not a guide afterall. it tells me what to do...but not how to do it. Ive google it alot quite honestly...gone into page 10 of google searches (which is a world record for me) but no help. if you or someone else has done this set up i'd appreciate a step by step guide.

if i am somehow miraculously able to set up nsf, do i have to undo all this samba stuff? or can i mount a drive using samba and nfs both at the same time?

Quote from teetee1 View Post :
Let me see if I'm clear with your setup. You have Transcend 1GB thumb drive as your /dev/sda1 system drive (not sure if it's enough - I think 2GB is the minimum space to do anything. You can do a quick check by using the following command:
# df -h
and see how much is still available on "/" (rootfs).

You also have a 4-bay USB enclosure with JBOD setting, 3x2TB drives (/dev/sdb1,sdc1,sdd1) with MBR partition scheme and 1x2TB drive with a tiny GPT partition and a large ntfs partition (/dev/sde2 for storage)

Here is the smb.conf I would use (make sure samba is installed and `systemctl restart smbd nmbd` works, the folders /mnt/DISK1 and the rest are created first):

[global]
security = user
dos charset = ASCII
workgroup = WORKGROUP
server string = ALARM
syslog = 0
log file = /var/log/samba/log.%m
max log size = 50
os level = 65
preferred master = Auto
dns proxy = No
create mask = 0777
directory mask = 0777
[DISK1]
path = /mnt/DISK1
read only = No
[DISK2]
path = /mnt/DISK2
read only = No
[DISK3]
path = /mnt/DISK3
read only = No
[DISK4]
path = /mnt/DISK4
read only = No



Permission and security warning:
1. one should never use root as a user to access shared files/folders
2. better to have password (or have open doors for crawler malware / viruses)
3. since the mounted drives are originally owned by root.root, you probably need to either set the folders(/mnt/DISK1) world-writable (777) or change ownership (chown command) of the folder to your samba user account (I never tried it on ntfs filesystems drive) to allow the user accessing samba has the permission to write data on the drives through samba.
Reply Helpful Comment? 0 0
#312
Quote from teetee1 View Post :
now please post the content on /dev/sda1
Pogoplug:~$ mkdir /tmp/sda1; mount /dev/sda1 /tmp/sda1; ls -l /tmp/sda1
and
Pogoplug:~$ cat /tmp/sda1/etc/fstab
Not sure if I'm doing it right.. but nothing comes up?

Last login: Thu Jan 24 10:22:04 on ttys000
MacBook-Pro-2:~ Silverph$ ssh root@192.168.1.24
root@192.168.1.24's password:
Pogoplug:~$ mkdir /tmp/sda1
mkdir: cannot create directory '/tmp/sda1': File exists
Pogoplug:~$ mount /dev/sda1 /tmp/sda1
mount: mounting /dev/sda1 on /tmp/sda1 failed: Invalid argument
Pogoplug:~$ ls -l /tmp/sda1
Pogoplug:~$ cat /tmp/sda1/etc/fstab
cat: can't open '/tmp/sda1/etc/fstab': No such file or directory
Pogoplug:~$
Reply Helpful Comment? 0 0
#313
Quote from Zank View Post :
Everything as of now is working perfectly. Can i maybe make an image of the usb drive right now as a backup so if anything goes wrong i can just restore it? or does linux not work this way?
The most ancient linux command will work just fine if you want to clone your current system drive to another thumb drive for backup:
The backup thumb drive (say it's /dev/sdd) will have to be larger than the original and all existing data on that drive will be wiped after running this command.. You can imagine if the wrong target drive was accidentally used (like your 2TB drive) then all data on that drive will be gone.
# dd if=/dev/sda of=/dev/sdd
// all content on /dev/sda will be cloned to /dev/sdd (sector to sector copy)

More refined command parameters are stated in another archwiki:
https://wiki.archlinux.org/index....sk_Cloning


Quote from Zank View Post :
I know i've asked this before but is there some idiot proof guide to setting up nfs4? i checked out the nsfv4 wiki but quite honestly i'm totally lost with it. its a wiki and not a guide afterall. it tells me what to do...but not how to do it. Ive google it alot quite honestly...gone into page 10 of google searches (which is a world record for me) but no help. if you or someone else has done this set up i'd appreciate a step by step guide.

if i am somehow miraculously able to set up nsf, do i have to undo all this samba stuff? or can i mount a drive using samba and nfs both at the same time?
nfs use rpc call protocol for file transfer which is totally independent from samba protocol, you can have both nfs and samba working and sharing the same mounted partition and as matter of fact that's what most people do (nfs for unix/linux file sharing and samba for windows/mac sharing on the same server and same mount point).

Here is your step-by-step, free-of-charge, foolproof, miracle-less nfs setup:

On nfs server (pogoplug):
1. Install nfs package:
# pacman -sy nfs-utils

2. Edit /etc/idmapd.conf, the only thing you want to change is the "Domain" name, it doesn't have to be the real DN (domain name), just something that's unique.
--- idmapd.conf ----
[General]
Verbosity = 1
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = SDRULES

[Mapping]
Nobody-User = nobody
Nobody-Group = nobody

[Translation]
Method = nsswitch
------------------------------

3. Edit /etc/exports file. Here /mnt/DISK1, /mnt/DISK2, /mnt/DISK3, /mnt/DISK4 are used for mount point and the source for nfs sharing to 192.168.1.0/24 subnet:
---- exports ---
/mnt/ 192.168.1.0/24(rw,sync,fsid=0,no_subtree_check,all_squash)
/mnt/DISK1 192.168.1.0/24(rw,sync,no_subtree_check,all_squash)
/mnt/DISK2 192.168.1.0/24(rw,sync,no_subtree_check,all_squash)
/mnt/DISK3 192.168.1.0/24(rw,sync,no_subtree_check,all_squash)
/mnt/DISK4 192.168.1.0/24(rw,sync,no_subtree_check,all_squash)
--------------------

4. Start nfs server:
# systemctl start rpc-idmapd rpc-mountd

5. Verify the server is running:
# showmount -e
clnt_create: RPC: Program not registered
//means nfs server is NOT running

# showmount -e
Export list for SDRULES:
/mnt/DISK4 192.168.1.0/24
/mnt/DISK3 192.168.1.0/24
/mnt/DISK2 192.168.1.0/24
/mnt/DISK1 192.168.1.0/24
/mnt 192.168.1.0/24
//means nfs server is running
//Done with the NFS server side configuration

5. Client setting (linux):
- Install nfs package:
# pacman -sy nfs-utils

- check to see if the linux client can get the nfs server to show all nfs shares:
$ showmount -e <nfs server name or IP address>

- mount the share (make sure the folder for the mount point is ready on the client. ex. /mnt/DISK1 )
# modprobe nfs
//load nfs module into the kernel. For some reason it didn't do that automatically on my box
//to load the module at boot, do the following:
# echo 'nfs' > /etc/modules-load.d/nfs.conf

//To verify the nfs module is loaded:
# lsmod
nfs 283858 0
nfs_acl 2185 1 nfs
auth_rpcgss 34590 1 nfs
lockd 66145 1 nfs


// now mount the nfs share from the nfs server on the client by the command below (on the client):
# mount -t nfs4 <server name or IP>:/DISK1 /mnt/DISK1
//and put it into /etc/fstab once you are sure the above command works:
--- nfs entry in /etc/fstab ---
<server name or IP>:/DISK1 /mnt/DISK1 nfs4 noauto,users,async 0 0

I use "noauto" option simply because I don't want my pogo(my nfs client) to hang at boot if the nfs share is not available but it could be me worrying over nothing.

I have never tried to mount nfs share on windows or mac so you will have to google them yourself but it can't be too difficult.
Reply Helpful Comment? 0 0
#314
Quote from psilver View Post :
Not sure if I'm doing it right.. but nothing comes up?
Pogoplug:~$ mount /dev/sda1 /tmp/sda1
mount: mounting /dev/sda1 on /tmp/sda1 failed: Invalid argument
cat: can't open '/tmp/sda1/etc/fstab': No such file or directory
Pogoplug:~$
please post the results of
$ mount
and
$ ls -l /tmp
and
did you format the 320gb drive according to the instruction (step. 6 on the installation tab on
http://archlinuxarm.org/platforms...2-pinkgray ) was there any errors?
Reply Helpful Comment? 0 0

Sign up for a Slickdeals account to remove this ad.

#315
I suspect that drives being read-only can be solved by doing the following:
[Pogoplug:~$]# /usr/sbin/fw_setenv usb_init "run usb_scan; setenv usb_root LABEL=ROOTFS rw"

instead of

[Pogoplug:~$]# /usr/sbin/fw_setenv usb_init "run usb_scan; setenv usb_root LABEL=ROOTFS"

But haven't been able to test it yet. If someone can test that and verify that it works I'll mod the original guide post.

An alternative (and what I have done) is to add to fstab:
LABEL=ROOTFS / ext2 rw,defaults 0 0

or something like that to force rw at boot time.
Reply Helpful Comment? 0 0
Page 21 of 26
19 20 21 22 23
Join the Conversation
Add a Comment
 
Slickdeals Price Tracker
Saving money just got easier.
Start Tracking Today
Copyright 1999 - 2015. Slickdeals, LLC. All Rights Reserved. Copyright / DMCA Notice  •  Privacy Policy  •  Terms of Service  •  Acceptable Use Policy (Rules)