Creating a USB stick for installing centos 6.x using DVD1 and DVD2 iso files
First, we create 2 partitions on the USB stick that
is let's say 16GB.
first partition is let's say only 1GB
and the second partition is the rest of what is available.
after we "w" write the changes, the USB now has 2 partitions.
- 1 is 1GB
- 1 is more than 14GB
so , we have... sdb1
and sdb2
now.
now we need to turn these partitions into filesystems
some say i should run these commands after those procedures.
mkfs.vfat -F 32 /dev/sdb1
mkfs.ext3 /dev/sdb2
but some web pages recommend using:
mkfs.vfat -n BOOT /dev/sdb1
mkfs.ext2 -m 0 -b 4096 -L DATA /dev/sdb2
which is it?
so let's say the DVDs are called:
- CentOS-6.4-x86_64-bin-DVD1.iso
- CentOS-6.4-x86_64-bin-DVD2.iso
so we make a directory:
mkdir -p /mnt/dvd1
and then mount it:
mount -o loop CentOS-6.4-x86_64-bin-DVD1.iso /mnt/dvd1
and i suppose we don't make a directory for dvd2
and we don't have to mount it ?
at this point i do not know what should be done.
but i think this step might be next:
we make the USB bootable by finding the file named mbr.bin
and then moving it to there via these commnad.
dd conv=notrunc bs=440 count=1 if=/usr/lib/syslinux/mbr.bin of=/dev/sdb
parted /dev/sdb set 1 boot on
in other words we are "dd-ing it to 'sdb' not sdb1' or 'sdb2'.
and then we use parted to set the boot to on for sdb
so far everything looks good?
here is the confusing parts..
how exactly do i move these iso files to the usb drive?
EVERYTHING BELOW IS A GUESS.
so at this point i should
- copy the folder
/mnt/dvd1/isolinux
to usb's sdb1 or sdb2 ? - rename it to
syslinux
? - and then inside this syslinux folder there will be a file called...
- isolinux.cfg ?
which should be renamed to syslinux.cfg ?
and then copy the contents of /mnt/dvd1/images/* to USB's sdb2 ?
but i think i am also suppose to copy and paste the both
- CentOS-6.4-x86_64-bin-DVD1.iso
- CentOS-6.4-x86_64-bin-DVD2.iso
somewhere into this USB's sdb2 partition, correct ? almost like a drag and drop kind of a thing?
or do they go into any folders ?
centos' own web site has some instructions but those instructions do not work.
http://wiki.centos.org/HowTos/InstallFromUSBkey
i once got this working but things got ruined, i have to do it again and this time take notes.
linux usb partitioning centos iso-image
add a comment |
First, we create 2 partitions on the USB stick that
is let's say 16GB.
first partition is let's say only 1GB
and the second partition is the rest of what is available.
after we "w" write the changes, the USB now has 2 partitions.
- 1 is 1GB
- 1 is more than 14GB
so , we have... sdb1
and sdb2
now.
now we need to turn these partitions into filesystems
some say i should run these commands after those procedures.
mkfs.vfat -F 32 /dev/sdb1
mkfs.ext3 /dev/sdb2
but some web pages recommend using:
mkfs.vfat -n BOOT /dev/sdb1
mkfs.ext2 -m 0 -b 4096 -L DATA /dev/sdb2
which is it?
so let's say the DVDs are called:
- CentOS-6.4-x86_64-bin-DVD1.iso
- CentOS-6.4-x86_64-bin-DVD2.iso
so we make a directory:
mkdir -p /mnt/dvd1
and then mount it:
mount -o loop CentOS-6.4-x86_64-bin-DVD1.iso /mnt/dvd1
and i suppose we don't make a directory for dvd2
and we don't have to mount it ?
at this point i do not know what should be done.
but i think this step might be next:
we make the USB bootable by finding the file named mbr.bin
and then moving it to there via these commnad.
dd conv=notrunc bs=440 count=1 if=/usr/lib/syslinux/mbr.bin of=/dev/sdb
parted /dev/sdb set 1 boot on
in other words we are "dd-ing it to 'sdb' not sdb1' or 'sdb2'.
and then we use parted to set the boot to on for sdb
so far everything looks good?
here is the confusing parts..
how exactly do i move these iso files to the usb drive?
EVERYTHING BELOW IS A GUESS.
so at this point i should
- copy the folder
/mnt/dvd1/isolinux
to usb's sdb1 or sdb2 ? - rename it to
syslinux
? - and then inside this syslinux folder there will be a file called...
- isolinux.cfg ?
which should be renamed to syslinux.cfg ?
and then copy the contents of /mnt/dvd1/images/* to USB's sdb2 ?
but i think i am also suppose to copy and paste the both
- CentOS-6.4-x86_64-bin-DVD1.iso
- CentOS-6.4-x86_64-bin-DVD2.iso
somewhere into this USB's sdb2 partition, correct ? almost like a drag and drop kind of a thing?
or do they go into any folders ?
centos' own web site has some instructions but those instructions do not work.
http://wiki.centos.org/HowTos/InstallFromUSBkey
i once got this working but things got ruined, i have to do it again and this time take notes.
linux usb partitioning centos iso-image
add a comment |
First, we create 2 partitions on the USB stick that
is let's say 16GB.
first partition is let's say only 1GB
and the second partition is the rest of what is available.
after we "w" write the changes, the USB now has 2 partitions.
- 1 is 1GB
- 1 is more than 14GB
so , we have... sdb1
and sdb2
now.
now we need to turn these partitions into filesystems
some say i should run these commands after those procedures.
mkfs.vfat -F 32 /dev/sdb1
mkfs.ext3 /dev/sdb2
but some web pages recommend using:
mkfs.vfat -n BOOT /dev/sdb1
mkfs.ext2 -m 0 -b 4096 -L DATA /dev/sdb2
which is it?
so let's say the DVDs are called:
- CentOS-6.4-x86_64-bin-DVD1.iso
- CentOS-6.4-x86_64-bin-DVD2.iso
so we make a directory:
mkdir -p /mnt/dvd1
and then mount it:
mount -o loop CentOS-6.4-x86_64-bin-DVD1.iso /mnt/dvd1
and i suppose we don't make a directory for dvd2
and we don't have to mount it ?
at this point i do not know what should be done.
but i think this step might be next:
we make the USB bootable by finding the file named mbr.bin
and then moving it to there via these commnad.
dd conv=notrunc bs=440 count=1 if=/usr/lib/syslinux/mbr.bin of=/dev/sdb
parted /dev/sdb set 1 boot on
in other words we are "dd-ing it to 'sdb' not sdb1' or 'sdb2'.
and then we use parted to set the boot to on for sdb
so far everything looks good?
here is the confusing parts..
how exactly do i move these iso files to the usb drive?
EVERYTHING BELOW IS A GUESS.
so at this point i should
- copy the folder
/mnt/dvd1/isolinux
to usb's sdb1 or sdb2 ? - rename it to
syslinux
? - and then inside this syslinux folder there will be a file called...
- isolinux.cfg ?
which should be renamed to syslinux.cfg ?
and then copy the contents of /mnt/dvd1/images/* to USB's sdb2 ?
but i think i am also suppose to copy and paste the both
- CentOS-6.4-x86_64-bin-DVD1.iso
- CentOS-6.4-x86_64-bin-DVD2.iso
somewhere into this USB's sdb2 partition, correct ? almost like a drag and drop kind of a thing?
or do they go into any folders ?
centos' own web site has some instructions but those instructions do not work.
http://wiki.centos.org/HowTos/InstallFromUSBkey
i once got this working but things got ruined, i have to do it again and this time take notes.
linux usb partitioning centos iso-image
First, we create 2 partitions on the USB stick that
is let's say 16GB.
first partition is let's say only 1GB
and the second partition is the rest of what is available.
after we "w" write the changes, the USB now has 2 partitions.
- 1 is 1GB
- 1 is more than 14GB
so , we have... sdb1
and sdb2
now.
now we need to turn these partitions into filesystems
some say i should run these commands after those procedures.
mkfs.vfat -F 32 /dev/sdb1
mkfs.ext3 /dev/sdb2
but some web pages recommend using:
mkfs.vfat -n BOOT /dev/sdb1
mkfs.ext2 -m 0 -b 4096 -L DATA /dev/sdb2
which is it?
so let's say the DVDs are called:
- CentOS-6.4-x86_64-bin-DVD1.iso
- CentOS-6.4-x86_64-bin-DVD2.iso
so we make a directory:
mkdir -p /mnt/dvd1
and then mount it:
mount -o loop CentOS-6.4-x86_64-bin-DVD1.iso /mnt/dvd1
and i suppose we don't make a directory for dvd2
and we don't have to mount it ?
at this point i do not know what should be done.
but i think this step might be next:
we make the USB bootable by finding the file named mbr.bin
and then moving it to there via these commnad.
dd conv=notrunc bs=440 count=1 if=/usr/lib/syslinux/mbr.bin of=/dev/sdb
parted /dev/sdb set 1 boot on
in other words we are "dd-ing it to 'sdb' not sdb1' or 'sdb2'.
and then we use parted to set the boot to on for sdb
so far everything looks good?
here is the confusing parts..
how exactly do i move these iso files to the usb drive?
EVERYTHING BELOW IS A GUESS.
so at this point i should
- copy the folder
/mnt/dvd1/isolinux
to usb's sdb1 or sdb2 ? - rename it to
syslinux
? - and then inside this syslinux folder there will be a file called...
- isolinux.cfg ?
which should be renamed to syslinux.cfg ?
and then copy the contents of /mnt/dvd1/images/* to USB's sdb2 ?
but i think i am also suppose to copy and paste the both
- CentOS-6.4-x86_64-bin-DVD1.iso
- CentOS-6.4-x86_64-bin-DVD2.iso
somewhere into this USB's sdb2 partition, correct ? almost like a drag and drop kind of a thing?
or do they go into any folders ?
centos' own web site has some instructions but those instructions do not work.
http://wiki.centos.org/HowTos/InstallFromUSBkey
i once got this working but things got ruined, i have to do it again and this time take notes.
linux usb partitioning centos iso-image
linux usb partitioning centos iso-image
asked Sep 2 '13 at 7:28
user250563
2324
2324
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can use dd
to copy burn the ISO in the USB stick. It's pretty easy and always work:
Assuming the .iso
file is in your home folder, open the terminal and write:
sudo dd bs=4M if=[ur .iso] of=/dev/sd[that 1 letter]
Example:
sudo dd bs=4M if=centos.iso of=/dev/sdc
That does not address the key point of the question, which is merging the isos of both DVD1 and DVD2 to the same usb stick.
– Igb
Nov 8 at 9:13
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f639798%2fcreating-a-usb-stick-for-installing-centos-6-x-using-dvd1-and-dvd2-iso-files%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use dd
to copy burn the ISO in the USB stick. It's pretty easy and always work:
Assuming the .iso
file is in your home folder, open the terminal and write:
sudo dd bs=4M if=[ur .iso] of=/dev/sd[that 1 letter]
Example:
sudo dd bs=4M if=centos.iso of=/dev/sdc
That does not address the key point of the question, which is merging the isos of both DVD1 and DVD2 to the same usb stick.
– Igb
Nov 8 at 9:13
add a comment |
You can use dd
to copy burn the ISO in the USB stick. It's pretty easy and always work:
Assuming the .iso
file is in your home folder, open the terminal and write:
sudo dd bs=4M if=[ur .iso] of=/dev/sd[that 1 letter]
Example:
sudo dd bs=4M if=centos.iso of=/dev/sdc
That does not address the key point of the question, which is merging the isos of both DVD1 and DVD2 to the same usb stick.
– Igb
Nov 8 at 9:13
add a comment |
You can use dd
to copy burn the ISO in the USB stick. It's pretty easy and always work:
Assuming the .iso
file is in your home folder, open the terminal and write:
sudo dd bs=4M if=[ur .iso] of=/dev/sd[that 1 letter]
Example:
sudo dd bs=4M if=centos.iso of=/dev/sdc
You can use dd
to copy burn the ISO in the USB stick. It's pretty easy and always work:
Assuming the .iso
file is in your home folder, open the terminal and write:
sudo dd bs=4M if=[ur .iso] of=/dev/sd[that 1 letter]
Example:
sudo dd bs=4M if=centos.iso of=/dev/sdc
edited Apr 12 '17 at 15:43
bertieb
5,537112342
5,537112342
answered Apr 12 '17 at 15:10
Adonist
311
311
That does not address the key point of the question, which is merging the isos of both DVD1 and DVD2 to the same usb stick.
– Igb
Nov 8 at 9:13
add a comment |
That does not address the key point of the question, which is merging the isos of both DVD1 and DVD2 to the same usb stick.
– Igb
Nov 8 at 9:13
That does not address the key point of the question, which is merging the isos of both DVD1 and DVD2 to the same usb stick.
– Igb
Nov 8 at 9:13
That does not address the key point of the question, which is merging the isos of both DVD1 and DVD2 to the same usb stick.
– Igb
Nov 8 at 9:13
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f639798%2fcreating-a-usb-stick-for-installing-centos-6-x-using-dvd1-and-dvd2-iso-files%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown