Newbie Help: Samba configuration on Goflex Home

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

Newbie Help: Samba configuration on Goflex Home

Postby gnatmonkee » Thu Nov 24, 2011 3:37 pm

I'm a total newbie to Linux, but just installed archlinux to my GoFlex Home 3TB using these directions.
Worked like a charm, and I am able to SSH into my new ArchLinux box and login as root. Then, I followed the First Steps directions, setting up Open NTP, changing my root password, making a new Linux user, setting up sudo, and updating using pacman.

Right now, I'm trying to set up the Samba server so that I can copy files from my Windows computers onto the hard drive. I've been partially successful following this Samba Guide, but it seems to be for configuring a Pogoplug that doesn't have a built-in hard drive. So the one modification I made was to point the path to /media/. Here is my smb.conf file currently.

$this->bbcode_second_pass_code('', '[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 = /media/
read only = no
public = yes
writable = yes
force user = root
')

Here's the problem. I'm currently able to see a "ArchLinuxARM" share in the "ALARM" workgroup. I'm able to copy and write files to it, but it's showing only 16 Gb of space available instead of the 3 Tb that should be there. Now, the original installation instructions seems to create a 20 gigabyte swap partition in Step 9, so I think that's what I'm seeing.

How can I reconfigure Samba to point at the big unused partition? I don't know if the 3TB size itself is a problem or not. If I run fdisk to check the partitions, it gives me some warnings... See log below.


$this->bbcode_second_pass_code('', '[root@alarm /]# /sbin/fdisk /dev/sda

WARNING: The size of this disk is 3.0 TB (3000592982016 bytes).
DOS partition table format can not be used on drives for volumes
larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID
partition table format (GPT).


The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.

Command (m for help): p

Disk /dev/sda: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 63 39086144 19543041 83 Linux
Partition 1 does not start on physical sector boundary.
/dev/sda2 39086145 4294961684 2127937770 83 Linux
Partition 2 does not start on physical sector boundary.
')

Thanks in advance to anyone who can help a Linux n00b!
Last edited by gnatmonkee on Mon Nov 28, 2011 3:40 pm, edited 2 times in total.
gnatmonkee
 
Posts: 6
Joined: Mon Oct 03, 2011 3:50 pm

Re: Newbie Help: Samba configuration on Goflex Home

Postby gnatmonkee » Mon Nov 28, 2011 3:38 pm

Can anyone help please?

After testing some more over the Thanksgiving holiday, I believe the problem is that fdisk was not able to handle creating a partition bigger than 2 TB. I'm not sure if it's as simple as editing a fstab entry to mount the partition, or if I need to start over and reformat using parted to access my 3 TB drive. I'm afraid to reformat after having installed ArchLinux on the Goflex Home. If I delete the existing partition, will the machine still boot and allow me root access?
gnatmonkee
 
Posts: 6
Joined: Mon Oct 03, 2011 3:50 pm

Re: Newbie Help: Samba configuration on Goflex Home

Postby Grumps » Mon Dec 12, 2011 1:28 pm

Hmm I'm not sure I'd want 3 gigs that are a single partition. If you ever have to run any repairs on the disk, like fsck it's going to take a very long time. You're better off chunking it, and sharing multiple partitions, IMHO.
Grumps
 
Posts: 4
Joined: Thu Dec 08, 2011 2:59 pm

Re: Newbie Help: Samba configuration on Goflex Home

Postby JackDanielZ » Tue Feb 07, 2012 9:34 am

Hi,

I have almost the same problem. I don't know how to use all the 3TB after I used fdisk to create the first partition.

Can I use gparted and configure GPT without deleting this partition?

I tried to create the partitions from scratch with gparted and installed Alarm and U-Boot of dozan. The led remained blinking, i.e doesn't work. Didn't have SSH too.
I don't have serial so I cannot know what happens.

Daniel
JackDanielZ
 
Posts: 9
Joined: Sun Jan 22, 2012 12:29 pm

Re: Newbie Help: Samba configuration on Goflex Home

Postby moonman » Sun Feb 19, 2012 9:06 am

You need a GPT partition table to support 3tb, MBR only supports 2. So delete all partitions, create guid partions, make one bootable, format it as ext2 and extract ALARM tarball to it.

The only thing i am not sure about is if the uBoot supports booting from guid partition. If not, then you may need another smaller hdd/flash to boot from and then ALARM will recognise GPT hdd.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Newbie Help: Samba configuration on Goflex Home

Postby WarheadsSE » Sun Feb 19, 2012 6:53 pm

The solution he is looking for is hybrid MBR/GPT.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Newbie Help: Samba configuration on Goflex Home

Postby moonman » Mon Feb 20, 2012 1:05 am

Hybrid has its own drawbacks i.e. will it work with uboot? It doesn't hurt to try?

Reference: http://www.rodsbooks.com/gdisk/hybrid.html
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Newbie Help: Samba configuration on Goflex Home

Postby WarheadsSE » Mon Feb 20, 2012 1:38 pm

I wouldn't have suggested it if I hadn't already tried it myself.

I booted a oxnas from an SSD SATA drive with hybrid so that I could test PARTUUID rootfs decisions.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Newbie Help: Samba configuration on Goflex Home

Postby moonman » Mon Feb 20, 2012 10:49 pm

Nice! So uboot doesnt support booting off of a plain GPT then?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Newbie Help: Samba configuration on Goflex Home

Postby WarheadsSE » Mon Feb 20, 2012 11:11 pm

Nope. At least not the oxnas or PPV4 version
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