You are not logged in.

#1 2009-05-30 09:10:40

philacorns
Member
From: Beijing
Registered: 2009-01-25
Posts: 21

How to make the Arch Install Flashdisk...[SOLVED]

I don't wanna take one flashdisk as arch installation media and another for eyeryday use, but if I make the second  partition on the flashdisk, it is not recognizable under windows. Does anybody konws how to make arch usb install image and a recognizable windows partition in one flashdisk?
-------------------------------------------------------------------------------------------------------------------------------------
expand the img file into a vfat flashdisk, install GRUB on it, it works well.

Last edited by philacorns (2009-05-30 13:30:25)

Offline

#2 2009-05-30 10:01:51

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

Re: How to make the Arch Install Flashdisk...[SOLVED]

Maybe you can create a new folder (not a partition) and put everything everyday-use-related in there? Test if it doesn't interfere w/ Arch installation but you should be ok.

Windows may not recognize partition types like ext3 so you should format you drive w/ vfat format. Use 'mkfs' command from dosfstools package. Does Windows recognize it OK when you have just one partition?

Does anybody konws how to make arch usb install image and a recognizable windows partition in one flashdisk?

Nope, I use CDs.

Offline

#3 2009-05-30 10:38:07

philacorns
Member
From: Beijing
Registered: 2009-01-25
Posts: 21

Re: How to make the Arch Install Flashdisk...[SOLVED]

it seems that the vfat fs will be replaced by what the .img file provides...

Offline

#4 2009-05-30 10:45:50

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

Re: How to make the Arch Install Flashdisk...[SOLVED]

In several places in the wiki there's a note "Make sure to use /dev/sdX and not /dev/sdX1", but maybe this assumes you have just one partition. Can you first partition your pendrive and then copy the img file to sdX1? I have no pendrive at hand to check this. If the image will still boot, than the second partition can be vfat or whatever you like.

Offline

#5 2009-05-30 11:32:22

philacorns
Member
From: Beijing
Registered: 2009-01-25
Posts: 21

Re: How to make the Arch Install Flashdisk...[SOLVED]

It doesn't work. Put the files into a vfat partition and grub-install doesn't work, too. Now I am trying to use GRUB4dos...

Offline

#6 2009-05-30 11:47:11

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

Re: How to make the Arch Install Flashdisk...[SOLVED]

It doesn't work.

What are you referring to?
-> Can you first partition your pendrive and then copy the img file to sdX1?

Offline

#7 2009-05-30 13:33:26

philacorns
Member
From: Beijing
Registered: 2009-01-25
Posts: 21

Re: How to make the Arch Install Flashdisk...[SOLVED]

I used a broken laptop which cannot support boot from USB though it should do. Now the problem has been solved using the method at the first floor.

Offline

#8 2009-05-30 13:35:11

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

Re: How to make the Arch Install Flashdisk...[SOLVED]

I used a broken laptop which cannot support boot from USB though it should do.

I *hate* when such things happen <gnashing teeth>

Glad you've got it working.

Offline

#9 2009-05-30 13:38:59

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How to make the Arch Install Flashdisk...[SOLVED]

If you dd the install img file to your usb stick, you end up with an ext2 partition, and some extra space - the amount of extra space obviously depends on the size of your stick. You can create a new partition in the unused space with a FAT or NTFS filesystem in it, and that will be accessible in Windows.

Offline

#10 2009-05-30 13:40:28

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

Re: How to make the Arch Install Flashdisk...[SOLVED]

@tomk
Can you first partition your pendrive and then copy the img file to sdX1?

Offline

#11 2009-05-30 14:09:53

philacorns
Member
From: Beijing
Registered: 2009-01-25
Posts: 21

Re: How to make the Arch Install Flashdisk...[SOLVED]

@tomk
At my machine, it's not accessible under windows. (I'm sure it's not a broken windows!)

Offline

#12 2009-05-30 14:11:41

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

Re: How to make the Arch Install Flashdisk...[SOLVED]

@philacorns
Can you write how did you try to do it? What programs / commands did you use for repartitioning?

Offline

#13 2009-05-30 15:01:20

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How to make the Arch Install Flashdisk...[SOLVED]

karol - no you'd have to dd the img first, and then create the extra partition, because the img provides the mbr as well.

philacorns - I didn't test it, as I don't have Windows. It just seemed like it should work. smile

Offline

#14 2009-05-30 15:10:34

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

Re: How to make the Arch Install Flashdisk...[SOLVED]

@tomk
Oh well, I'd rather use two pendrives than complicate my life :-)

Offline

#15 2009-05-31 13:12:09

philacorns
Member
From: Beijing
Registered: 2009-01-25
Posts: 21

Re: How to make the Arch Install Flashdisk...[SOLVED]

@karol
I use gparted

Offline

#16 2009-05-31 13:19:33

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

Re: How to make the Arch Install Flashdisk...[SOLVED]

I use gparted

Did you set the type of the new partition to vfat or sth else?

Offline

#17 2009-06-01 14:15:20

ak-89
Member
From: Finland
Registered: 2008-08-26
Posts: 86
Website

Re: How to make the Arch Install Flashdisk...[SOLVED]

Make two partitions, first is vfat, second ext2/ext3. Make /grub directory to second partition and put there grub's config etc.(copy your /boot/grub/ there?). Then install grub to mbr of that usb-stick, check if it boots. If it boots, extract Arch install image to second partition and add it into the grub conf of that usb stick. And then it should boot. Windows accessible partition must be first, atleast on XP, I'm not sure, but I think XP detects only first partition of usb stick. I'm not sure if this works, but I think I did it like that or maybe I forgot something. I don't remember clearly anymore everything I did, but I installed Arch on my NC10 with that usb stick. Extracted Arch installation image to the partition where /grub(or was it /boot/grub?) was and added it to grub conf.

Offline

#18 2010-11-13 01:41:59

Alth
Member
Registered: 2010-01-27
Posts: 1

Re: How to make the Arch Install Flashdisk...[SOLVED]

GParted can create second partition on flash drive and format him at ext2. Then copy files from .iso on second partition. Load arch with grub4dos from first partition.

title Parted Magic 5.7
find --set-root /flashdrive.tag
map --heads=0 --sectors-per-track=0 /pmagic/pmagic-5.7.iso (hd32)
map --hook
root (hd32)
chainloader (hd32)

title Arch Linux (second partition)
find --set-root /flashdrive.tag
root (hd0,1)
kernel /boot/vmlinuz26 archisolabel=ARCH_201005 tmpfs_size=75% locale=en_US.UTF-8
initrd=/boot/archiso.img

Arch Linux USB Install and Rescue Media.
Grub4dos wiki.

Last edited by Alth (2010-11-13 01:46:57)

Offline

Board footer

Powered by FluxBB