Pi: Trouble Installing Arch on SD Card(Using Ubuntu 14)

This forum is for discussion about general software issues.

Pi: Trouble Installing Arch on SD Card(Using Ubuntu 14)

Postby wormteeth » Mon Feb 16, 2015 10:34 pm

I had some trouble initially even mounting the SD card, but I was pretty much confused about the dev. Just unplugged card and plugged in and compared what was in the /dev directory. Thought I was good to go here. But now fdisk is not behaving at all like the install guide for the ARM version is implying. I've skimmed through the man page a bit, but I'm kind of limited on time I have internet access at the moment and still a bit confused as to why its not working. I use fdisk /dev/sdb1 like the guide says, except it gives me an error message telling me to specify more variables instead of a series of subcommands asking for input like I think the guide is implying.

Am I just inferring incorrectly, or is something acting goofy for me?
wormteeth
 
Posts: 3
Joined: Mon Feb 16, 2015 10:26 pm

Re: Trouble Installing Arch on SD Card(Using Ubuntu 14)

Postby WarheadsSE » Mon Feb 16, 2015 10:38 pm

Make sure /dev/sdb is actually your SD card. Also, don't fdisk a partition.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Trouble Installing Arch on SD Card(Using Ubuntu 14)

Postby wormteeth » Mon Feb 16, 2015 10:40 pm

Thank you, in all likelyhood that is the problem.
wormteeth
 
Posts: 3
Joined: Mon Feb 16, 2015 10:26 pm

Re: Trouble Installing Arch on SD Card(Using Ubuntu 14)

Postby wormteeth » Mon Feb 16, 2015 10:45 pm

Does it usually take a minute to write the partitions? I'm trying to install the file system and its telling me resource or device busy.
wormteeth
 
Posts: 3
Joined: Mon Feb 16, 2015 10:26 pm

Re: Pi: Trouble Installing Arch on SD Card(Using Ubuntu 14)

Postby MadMe » Tue Feb 17, 2015 7:43 pm

Hello,

i would guess it is still mounted...
check "mount"
MadMe
 
Posts: 5
Joined: Tue Feb 17, 2015 8:35 am

Re: Pi: Trouble Installing Arch on SD Card(Using Ubuntu 14)

Postby dgbaley27 » Tue Apr 21, 2015 7:25 am

Dunno if this helps, but I find myself doing this enough that I wrote a script to take the compressed tarball that you download and point it at a block device (sd card), not a partition thereof.

$this->bbcode_second_pass_code('', '
#!/bin/bash

usage() {
cat <<-EOF
usage: $(basename "$0"): ARCHIVE BLOCKDEVICE [HOSTNAME]
EOF
}

set -e
set -x

tgz="$1"
blk="$2"
hostname="$3"

cleanup() {
mountpoint -q "$root"/boot && umount -R "$root"/boot
mountpoint -q "$root" && umount -R "$root"
rmdir "$root"
sync
}

if [[ ! -f $tgz ]]; then
usage
exit 1
elif [[ ! -b $blk ]]; then
usage
exit 1
fi

root="$(mktemp -d)"
trap cleanup EXIT

lsblk
read -p "Continue [Ny]?: " input
[[ $input = "y" ]] || exit 0

fdisk "$blk" <<-EOF
o
n
p
1

+100M
t
c
n
p
2


w
EOF

mkfs.vfat "${blk}1"
mkfs.ext4 "${blk}2"

mount -o noatime "${blk}2" "$root"
mkdir -p "$root"/boot
mount -o noatime "${blk}1" "$root"/boot
bsdtar -xpf "$tgz" -C "$root"
[[ $hostname ]] && printf "%s\n" "$hostname" > "$root"/etc/hostname
sync
')
dgbaley27
 
Posts: 4
Joined: Tue Apr 21, 2015 6:58 am


Return to General

Who is online

Users browsing this forum: No registered users and 6 guests