You are not logged in.

#1 2010-09-05 02:12:19

custybacon
Member
Registered: 2010-09-05
Posts: 12

Changing package directory

During the installation arch asks me to select my package source, and it only gives me the options, CD or NET. I was wondering if it would be possible to somehow change the source to be a USB  stick because i could then load it up with everything i needed ahead of time, as the computer I'm installing on has no internet access.

Offline

#2 2010-09-05 02:15:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing package directory

custybacon wrote:

During the installation arch asks me to select my package source, and it only gives me the options, CD or NET. I was wondering if it would be possible to somehow change the source to be a USB  stick because i could then load it up with everything i needed ahead of time, as the computer I'm installing on has no internet access.

I think there was such an option but I have no way to check it right now.
http://wiki.archlinux.org/index.php/Off … HER_SOURCE

Last edited by karol (2010-09-05 02:15:59)

Offline

#3 2010-09-05 02:45:12

custybacon
Member
Registered: 2010-09-05
Posts: 12

Re: Changing package directory

Ya i read that as well, i should have been more specific with my question, i guess what I'm really asking is how to manually mount my usb stick so shows up as an alternative source

Offline

#4 2010-09-05 02:47:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing package directory

I've never done this so I'm guessing: before you start installation you are in a shell, you should be able to mount the drive someplace. Have you tried it?

Offline

#5 2010-09-05 02:54:00

custybacon
Member
Registered: 2010-09-05
Posts: 12

Re: Changing package directory

ya I'm in shell, but since I'm new to this i don't completely understand how to mount something like a USB. How do i identify what the system even calls the usb?

Offline

#6 2010-09-05 02:57:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing package directory

custybacon wrote:

ya I'm in shell, but since I'm new to this i don't completely understand how to mount something like a USB. How do i identify what the system even calls the usb?

Run

dmesg | tail

after you plug it in. If no device shows up, wait 10 seconds and run it again.

Offline

#7 2010-09-05 03:15:53

custybacon
Member
Registered: 2010-09-05
Posts: 12

Re: Changing package directory

K so im pretty sure its called sda1, i followed the wiki and mounted it, then tried mounting it to /src/core/pkg, the place where it says it's looking for packages on install, but it told me no such file or directory exists

Offline

#8 2010-09-05 03:19:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing package directory

custybacon wrote:

tried mounting it to /src/core/pkg, the place where it says it's looking for packages on install, but it told me no such file or directory exists

That looks reasonable, the installation routine probably creates it.
What happens if you

mkdir -p /src/core/pkg

?

Offline

#9 2010-09-05 03:21:41

custybacon
Member
Registered: 2010-09-05
Posts: 12

Re: Changing package directory

never mind i think it's sdb

Offline

#10 2010-09-05 03:22:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing package directory

custybacon wrote:

never mind i think it's sdb

That's what I thought, but didn't want to argue, since I'm not sitting at your keyboard :-)

Offline

#11 2010-09-05 03:24:16

custybacon
Member
Registered: 2010-09-05
Posts: 12

Re: Changing package directory

karol wrote:
custybacon wrote:

tried mounting it to /src/core/pkg, the place where it says it's looking for packages on install, but it told me no such file or directory exists

That looks reasonable, the installation routine probably creates it.
What happens if you

mkdir -p /src/core/pkg

?

i ran the command, nothing happens

Offline

#12 2010-09-05 03:27:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing package directory

custybacon wrote:
karol wrote:
custybacon wrote:

tried mounting it to /src/core/pkg, the place where it says it's looking for packages on install, but it told me no such file or directory exists

That looks reasonable, the installation routine probably creates it.
What happens if you

mkdir -p /src/core/pkg

?

i ran the command, nothing happens

Is the directory structure created? Unix and Linux programs usually remain silent if everything went fine.

Offline

#13 2010-09-05 03:34:22

custybacon
Member
Registered: 2010-09-05
Posts: 12

Re: Changing package directory

so this is what i just tried

mount -t ext2 /dev/sdb/ mnt/src/core/pkg 

It's still saying this directory doesn't exist, where can i mount it so that ill have the option to install pakages from it on install?

Offline

#14 2010-09-05 03:36:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing package directory

'/src/core/pkg' and 'mnt/src/core/pkg' are different directories ...

Offline

#15 2010-09-05 03:36:47

custybacon
Member
Registered: 2010-09-05
Posts: 12

Re: Changing package directory

also when i enter

/src/core/pkg

it says it's a directory

Offline

#16 2010-09-05 03:38:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing package directory

custybacon wrote:

also when i enter

/src/core/pkg

it says it's a directory

So it got created and it's waiting for you to mount your USB there.

Offline

#17 2010-09-05 03:39:25

custybacon
Member
Registered: 2010-09-05
Posts: 12

Re: Changing package directory

karol wrote:

'/src/core/pkg' and 'mnt/src/core/pkg' are different directories ...

ya just realized that, just tried

mount -t ext2 /dev/sdb /src/core/pkg

and i got the usual Wrong fs type, bad option, bad superblock on dev/sdb, other errors it could be etc.

Offline

#18 2010-09-05 03:56:27

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: Changing package directory

Try /dev/sdb1 instead. sdb refers to the entire drive, whereas sdb1 refers to the first partition. if that doesn't work, are you sure it's formatted with ext2?


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#19 2010-09-05 04:12:43

custybacon
Member
Registered: 2010-09-05
Posts: 12

Re: Changing package directory

YAY i got it, thanks to everyone who gave me advice and helped me out

Offline

#20 2010-09-05 04:31:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing package directory

custybacon wrote:

YAY i got it, thanks to everyone who gave me advice and helped me out

Soooo ...

mount -t ext2 /dev/sdb1 /src/core/pkg

was the correct command or was there something else? It's always nice to know what the problem was and it helps others who may have the same issues. 'Hurray, it's fixed' won't help them, posting an explanation may.

I'm glad you've worked it out. Please remember to mark the thread as [solved].

Offline

Board footer

Powered by FluxBB