Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Creating a partition for LFS


  • Please log in to reply

#1
Nathan_Benton

Nathan_Benton

    Member

  • Member
  • PipPipPip
  • 114 posts
I'm using Ubuntu, and am trying to figure out how to set up a free partition for LFS (Linux From Scratch) but don't know of a way to do it. Can anyone help? I type fdisk in the terminal and I get

Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda  (for the first IDE disk)
  or: fdisk /dev/sdc  (for the third SCSI disk)
  or: fdisk /dev/eda  (for the first PS/2 ESDI drive)
  or: fdisk /dev/rd/c0d0  or: fdisk /dev/ida/c0d0  (for RAID devices)
  ...

Anybody know of a way to partition it so I can have LFS on the same system?
  • 0

Advertisements


#2
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
if you do fdisk /dev/hda it should come up with another usage listing because that isn't the full command....i would try doing that and see what the next steps are
  • 0

#3
Nathan_Benton

Nathan_Benton

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 114 posts

The number of cylinders for this disk is set to 4866.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
  (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):


When I put in M I get...

Command (m for help): m
Command action
  a  toggle a bootable flag
  b  edit bsd disklabel
  c  toggle the dos compatibility flag
  d  delete a partition
  l  list known partition types
  m  print this menu
  n  add a new partition
  o  create a new empty DOS partition table
  p  print the partition table
  q  quit without saving changes
  s  create a new empty Sun disklabel
  t  change a partition's system id
  u  change display/entry units
  v  verify the partition table
  w  write table to disk and exit
  x  extra functionality (experts only)

Thanks for the help, I'm using Ubuntu.
  • 0

#4
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
you should be able to do fdisk /dev/hda n
  • 0

#5
Nathan_Benton

Nathan_Benton

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 114 posts

root@MR-KICK-[bleep]:~ # fdisk /dev/hda n

Usage: fdisk [-b SSZ] [-u] DISK    Change partition table
      fdisk -l [-b SSZ] [-u] DISK  List partition table(s)
      fdisk -s PARTITION          Give partition size(s) in blocks
      fdisk -v                    Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors

Is what I get when I type fdisk /dev/hda n
Thanks for the help :tazz:
  • 0

#6
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
hehe mr-kick-[bleep]...nice...hehe...ok...have you tried puting your ubuntu disk back in and seeing if the partition tool that opens up with it does any better (assuming that fdisk wasn't the only utility it boots withP)
  • 0

#7
Nathan_Benton

Nathan_Benton

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 114 posts
Alright,so just try partitioning it through the Ubuntu installer disc? UH the LFS book says something about setting it up to swap boot or something like that, can I do that with the Ubuntu installer disc?
  • 0

#8
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
well a "swap partition" in linux is basically a better way of implementing the windows page file.... so the cd should give you a method for setting this up
  • 0

#9
Nathan_Benton

Nathan_Benton

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 114 posts
Thanks :tazz: I appreciate it ;) I thouht about using the CD before, just didn't know if it would work :)
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP