LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2014, 01:37 PM   #1
odie91
LQ Newbie
 
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
Some newbie questions - ArmLinux on Pogoplug E02


Hi, just tinkering with Pogo and ArmLinux, and have some basic questions:


I followed instructions here:
http://archlinuxarm.org/platforms/ar...ug-v2-pinkgray

1) By doing the above, I installed ArmLinux to the USB drive, and not the Pogo until itself, correct?
2) When I power up the Pogo, it boots to the ArmLinux by default. Which command(s) in the installation process I followed directed the device to boot via the USB? (Or is it just what the Pogo device does by default when there is a USB attached?)


Second series of questions, based off of the tutorial here:
http://blog.qnology.com/2013/03/tuto...rch-linux.html

1) When he says to partition the USB, which item in the command (below) is specifying that the partitioning command be applied to the USB drive, and furthermore if there is more than one USB drive installed, how would one specify the drive to partition:

#Partition your USB flash/hard drive
/sbin/fdisk /dev/sda

2) On a related note, I want to try keeping the ArmLinux on one USB, and installing a NAS on a separate USB flash (will probably put both onto one HD later on, but just expermineting for now). So with his instruction to "The instructions below assumes you have ALARM installed on the first partition of your USB hard drive. Replace "/dev/sda2" (second partition on first hd) with "/dev/sdb1" (first partition second hard drive) if you have ALARM installed on a USB Flash Drive and adding a new USB Hard Drive for SAMBA." ... can someone explain the sda2 and sdb1 terminology? I assume that is what is directing me to one USB drive versus the other, but how so? How does Linux know which drive is A and which is B? And prior to doing anything to drive B, I would need to format it, correct? What would be the command line for doing that?

Thanks in advance. Probably more questions to follow....
 
Old 10-16-2014, 01:44 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Welcome to LQ!

I can't help you too much, but noticed your very first Q remains unanswered after three days. Believe it or not, we do try to help...

Disclaimer - I know very little about pogoplug.

Quote:
1) By doing the above, I installed ArmLinux to the USB drive, and not the Pogo until itself, correct?
2) When I power up the Pogo ..[snip].. is it just what the Pogo device does by default when there is a USB attached?
Looks like it, on both counts.

----

Partitioning:

fdisk is the partitioning program
/sbin/fdisk tells the plug the "full path" to the program (ie, it is to be found in the directory /sbin/ ). Usually, you do not need to specify the "full path", as the directories to be searched for commands will already be specified by your $PATH environment variable which was set up when you logged in.
/dev/sda refers to the whole "disk". In linux, "everything is a file", so if you want to find a disk, it's listed in the filesystem.

/dev/sda is the first disk
/dev/sda1 is the first partition on the first disk
/dev/sda2 is the second partition on the first disk

/dev/sdb is the second disk

Rinse, lather, repeat.

Homework: Read up on
"The structure of the linux filesystem"
"Linux disk partitions"

Quote:
How does Linux know which drive is A and which is B?
No.
There is no "A" or "B"
You get used to it, and will probably eventually realise that linux has a MUCH better filesystem structure than MS's.

The answer, as it often is with linux, is "by a variety of ways" (and, yes, you can choose to change the default): Possibly the order in which SCSI / IDE / SATA cables are plugged into the controller, maybe the disk's label, but more often by the drive's UUID.

The kernel asks the drive what its UUID is, and then either knows where to mount it, or creates a sensible default for an 'unknown' drive.

I would not like to learn linux on a pogoplug.

I learnt on a desktop, dual-booting with windows until I was happy. Then win98 went out the window, and I have not looked back.

If you are unhappy with dual-booting, try a Raspberry Pi. It is US$35 or thereabouts, has great support, and has a GUI it can display on your (HDMI) TV. I now have two on my network. Mine have no keyboards, or displays, and I control them over ssh from a "proper" PC (running linux) with a keyboard and display.

Welcome to linux, I hope you have fun.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Anyone have a Pogoplug? Ryanms3030 Linux - Newbie 8 04-05-2014 12:45 PM
How do I get my Pogoplug to boot from the same USB port every time? DJOtaku Linux - Hardware 4 04-18-2013 03:26 PM
LXer: Seagate GoFlex Is Really a Pogoplug in Disguise LXer Syndicated Linux News 0 02-17-2011 03:10 PM
LXer: PogoPlug 2 review - your own private cloud! LXer Syndicated Linux News 0 06-03-2010 04:10 PM
compiling php-5.1.2 for armlinux jkeertir Linux - Newbie 0 11-13-2008 12:03 AM


All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration