Problem w. changing USB Sticks

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Problem w. changing USB Sticks

Postby ferenz » Sat Sep 17, 2011 4:04 pm

Hey there,
I installed succesfull archlinux on my Pink Pogoplug using a 1GB USB Stick.
Setting up minidlna, Samba and transmission took some time, but after some try and error everything was working. The only "issue" I had was when I set up a share as Network Drive in Windows Explorer, it only showed up as 1GB size. Generally this wouldn't be a big Problem, but when I came to copy big files, Windows refused to Copy even though the destination had more than enough capacity.

So I tried to change the "System USB Stick" to 4gig by simply going through the instruction (http://archlinuxarm.org/platforms/armv5 ... 2-pinkgray) again. The final result is now I'm stuck at the login and don't get any further. It doesn't matter if I'm using my old stick or the new one, if I try to connect via SSH I get asked for my password (as before) but access is denied every time. Neither my old User nor root is accepted.
Root is not working with my new root Password or ceadmin or root.

short version
Basically what I want to do now is to kill the Box completely and reinstall everything from scratch. I got no idea how to start so if you got any hints or tips I would be grateful.
Before setting up Pogoplug I had very limited linux knowledge but I'm willing to learn. None of the topics I found here made me solve my Problem so please be gentle with a Newbie :)


In addition; if there is a solution for my network drive size problem and you know it, let me know :D

Thank you very much!
ferenz
 
Posts: 7
Joined: Sat Sep 17, 2011 2:37 pm

Re: Problem w. changing USB Sticks

Postby ferenz » Sun Sep 18, 2011 2:59 pm

Ok, I'm in and re installing on the new Stick right now.
Password turned out to be my old my.pogoplug.com password.

Anyway, if you got an idea about the samba/windows size problem, I would be grateful :)
ferenz
 
Posts: 7
Joined: Sat Sep 17, 2011 2:37 pm

Re: Problem w. changing USB Sticks

Postby skakz » Mon Sep 19, 2011 2:17 pm

can't understand what is you issue.. if you stick a 1GB usb pen drive you'll have 1GB of avaiable space.. if you use a 4GB pen drive you'll have 4GB..
skakz
 
Posts: 9
Joined: Wed Sep 14, 2011 11:17 pm

Re: Problem w. changing USB Sticks

Postby ferenz » Tue Sep 20, 2011 6:21 am

Sure. My Problem is, I made a network share on my connected 500gb drive. Theres plenty of free space.
When I want to copy something from windows to my Pogoplug share its working until the file or copy process is not larger than the free space on my USB stick, which is now about 3gb.

I think its more a samba related problem and I'm probably in the wrong forum. Maybe someone had the same problem before me or knows how to solve it :)
ferenz
 
Posts: 7
Joined: Sat Sep 17, 2011 2:37 pm

Re: Problem w. changing USB Sticks

Postby skakz » Wed Sep 21, 2011 7:44 pm

yes this is a samba related problem.. but if you want help you have to provide much more info about your situation.
are you sure that you are sharing a folder in you hard disk (500gb) and not in your pen drive (3gb)?
Attached pen drive is for archlinux system installation, External HD for media files.. correct?
please provide smb.conf, fstab, and "df -h" output.
skakz
 
Posts: 9
Joined: Wed Sep 14, 2011 11:17 pm

Re: Problem w. changing USB Sticks

Postby ferenz » Wed Sep 21, 2011 8:40 pm

Thank you for your reply!
$this->bbcode_second_pass_quote('', 'A')ttached pen drive is for archlinux system installation, External HD for media files.. correct?

Thats right. In total there are 2 HD Drives for media, etc. and the USB stick is for all the system stuff.

/etc/fstab
$this->bbcode_second_pass_code('', '# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
UUID=52BA7049BA702C1B / ntfs defaults 0 0
UUID=30CC25A5CC256676 / ntfs defaults 0 0
')

smb.conf
$this->bbcode_second_pass_code('', '[global]
##Serverkram
workgroup = WORKGROUP
netbios name = Samba PogoPlug
server string = ALARM
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_S$
#obey pam restrictions = yes
map to guest = bad user
#dns proxy = no
log file = /var/log/samba/%m.log
max log size = 100
##Zugang
security = user
encrypt passwords = true
guest account = nobody
smb passwd file = /opt/etc/samba/smbpasswd
#unix password sync = yes
hosts allow = 192.168.178.

##Drucker
load printers = no
printing = bsd
printcap name = /dev/null


[External]
path = /media/1.5TB/
comment = Von Jonas
browseable = yes
writeable = yes
valid users = jonas7
public = no

[Freigabe]
path = /media/1.5TB/HALDE/
comment = fuer alle
browseable = yes
writeable = yes
guest ok = yes
create mode = 777
directory mode = 777
')
df -h
$this->bbcode_second_pass_code('', '
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.7G 817M 2.7G 23% /
/run 10M 140K 9.9M 2% /run
udev 10M 4.0K 10M 1% /dev
shm 124M 0 124M 0% /dev/shm
/dev/sdb1 932G 911G 22G 98% /media/fuenuenue
/dev/sda1 1.4T 860G 538G 62% /media/1.5TB
tmpfs 124M 220K 124M 1% /tmp
')
ferenz
 
Posts: 7
Joined: Sat Sep 17, 2011 2:37 pm

Re: Problem w. changing USB Sticks

Postby WarheadsSE » Thu Sep 22, 2011 1:10 am

I am sorry.. WTF You're trying to mount them to where? `/` ???
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Problem w. changing USB Sticks

Postby ferenz » Thu Sep 22, 2011 1:23 pm

If there's something wrong or completely stupid, feel free to enlighten me :-)
As I said I'm new in Pogo business and so I have to puzzle guides together and try and error.

Feel free to provide improvements, if there are any. Thank you! :-)
ferenz
 
Posts: 7
Joined: Sat Sep 17, 2011 2:37 pm

Re: Problem w. changing USB Sticks

Postby skakz » Thu Sep 22, 2011 2:04 pm

He was referring to you /etc/fstab file.. you can't try to mount your external HardDisk to '/'
$this->bbcode_second_pass_quote('', 'U')UID=52BA7049BA702C1B / ntfs defaults 0 0
UUID=30CC25A5CC256676 / ntfs defaults 0 0

'/' is for system files and should have an entry in fstab:

here it's mine:
$this->bbcode_second_pass_code('', '#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sda1 / ext3 defaults 0 1
tmpfs /tmp tmpfs nodev,nosuid 0 0
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
/dev/sda2 swap swap default 0 0
/dev/sda3 /home xfs noatime,logbufs=8,allocsize=128m 0 2
#')

I've only 1 hard disk with 3 partition:
/dev/sda1 is my root ext3 partition and it is mounted in '/'
/dev/sda2 is my swap partition and in fstab is marked as 'swap'
/dev/sda3 is my media partition, is XFS type and it is mounted in '/home'

If your external hard disk is always attached add a line in your fstab, but fix the directory in which to mount. This will mount the hard disk at boot-time.
If your external hard disk is attached only when needed and auto-mounted by udev (probably your situation), then remove that two lines in fstab. When plugged the hard disk is mounted in /media/HD_LABEL

Now I honestly don't know what consequences can those two lines in /etc/fstab have..
If external hard disk is connected when booting it CAN (not sure) be that you have actually mounted it on '/'
this should be a paradox that would create a black hole just inside your DockStar

I did a test, see:
$this->bbcode_second_pass_code('', '[root@omega ~]# df
File system Tipo Dim. Usati Dispon. Uso% Montato su
/dev/root ext3 5,0G 1,1G 3,8G 22% /
/run tmpfs 10M 116K 9,9M 2% /run
udev tmpfs 10M 4,0K 10M 1% /dev
shm tmpfs 61M 0 61M 0% /dev/shm
tmpfs tmpfs 61M 0 61M 0% /tmp
/dev/sda3 xfs 228G 24G 205G 11% /home
[root@omega ~]# umount /dev/sda3
[root@omega ~]# mount /dev/sda3 /
[root@omega ~]# df
File system Tipo Dim. Usati Dispon. Uso% Montato su
/dev/root ext3 5,0G 1,1G 3,8G 22% /
/run tmpfs 10M 116K 9,9M 2% /run
udev tmpfs 10M 4,0K 10M 1% /dev
shm tmpfs 61M 0 61M 0% /dev/shm
tmpfs tmpfs 61M 0 61M 0% /tmp
/dev/sda3 xfs 5,0G 1,1G 3,8G 22% /
[root@omega ~]#')

as you can see /dev/sda3 has 205GB available, but when mounted on / has only 3,8GB..
This should answer your question..
skakz
 
Posts: 9
Joined: Wed Sep 14, 2011 11:17 pm

Re: Problem w. changing USB Sticks

Postby WarheadsSE » Thu Sep 22, 2011 2:43 pm

The easiest solution honestly, is to label the partitions on the external drives, remove the entries from fstab, and let udev handle the mounting to /media/PARTITION_NAME via udev-automount.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 8 guests