LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2014, 09:55 PM   #1
drainingthoughts
LQ Newbie
 
Registered: Dec 2014
Posts: 19

Rep: Reputation: Disabled
How do I install fdisk?


i went to install fdiskfrom this site:

http://packages.ubuntu.com/lucid/amd...fdisk/download

and it said:

If you are running Ubuntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website.

does this apply for debian users?

it says the same thing when trying to dl a package manager.

how would one escape the recursive loop of needing a package manager to dl a package manager?
 
Old 12-27-2014, 10:05 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,340
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
Are you running Ubuntu or Debian? Your post does that make that clear.

Using a package manager is the preferred way of installing software with Linux. The software in a distro's repositories is curated and tested with the distro.

The Synaptic Package Manager is in Debian by default. In Ubuntu, the Ubuntu Software Center serves as a package manager, though you can install Synaptic if you wish (I would wish). This link from Ubuntu should also help.

You might also run

Code:
whereis fdisk
from a terminal. Odds are that Linux fdisk is already installed. It has been installed by default in every Linux distro I have ever used.
 
Old 12-27-2014, 10:06 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248
I can't imagine any Linux distribution which doesn't have fdisk in a default installation. You should certainly have it if you are using Ubuntu or Debian. Why do you think you need to download it?
 
Old 12-28-2014, 04:44 AM   #4
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 510

Rep: Reputation: 120Reputation: 120
I think you have fdisk installed, but you can't access it because fdisk isn't a regular user's tool. If you will try to run it as regular user you will get a message: "Command not found".
You have to get root privileges or use sudo to run fdisk command, like the following:
Code:
su -
fdisk -l
or
Code:
sudo fdisk -l

Last edited by Teufel; 12-28-2014 at 04:48 AM.
 
Old 12-28-2014, 07:54 AM   #5
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
You should always use your package manager to install software.

In Debian, you should use synaptic if you are not comfortable with the command line.

If you're using GNOME you could have a look at software-center [sic] -- it's very nice & friendly.

You can install these from a terminal using:
Code:
# apt-get install synaptic software-center
If you're using Debian, do not use PPAs or .deb packages designed for Ubuntu -- they are fundamentally incompatible.

You probably shouldn't use fdisk at all -- it is a command-line partitioning tool and will quite happily wipe your entire hard drive with a few keystrokes.

Stick to gparted.
 
Old 12-29-2014, 10:56 PM   #6
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Normally util-linux has the fdisk program. Is Gnu-fdisk different one?
 
Old 12-30-2014, 04:22 AM   #7
drainingthoughts
LQ Newbie
 
Registered: Dec 2014
Posts: 19

Original Poster
Rep: Reputation: Disabled
I'm running debian

i just installed fdisk in the software center

just found out i have synaptic

I dont know how to access fdisk

do not see it in system tools

have a strange feeling im missing something

my goal is to partition my hard drive and dual boot with windows and probably an easier version of linux

i was going to use fdisk

but like i said, i dont know how to access it

im open to recommendations of alternative partitioning software
 
Old 12-30-2014, 04:48 AM   #8
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 510

Rep: Reputation: 120Reputation: 120
Quote:
but like i said, i dont know how to access it
Seems you didn't read answers posted above.
Your question already answered:
http://www.linuxquestions.org/questi...6/#post5291459
Open terminal and try it.

Last edited by Teufel; 12-30-2014 at 04:50 AM.
 
Old 12-30-2014, 05:35 AM   #9
drainingthoughts
LQ Newbie
 
Registered: Dec 2014
Posts: 19

Original Poster
Rep: Reputation: Disabled
root@N8PC:/home/nate# fdisk -l

Disk /dev/sda: 1000 GB, 1000202273280 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1216 9767488 83 Linux
Warning: Partition 1 does not end on cylinder boundary.
/dev/sda2 1216 121602 967000545 5 Extended
Warning: Partition 2 does not end on cylinder boundary.
/dev/sda5 1216 3201 15944512 82 Linux swap
Warning: Partition 5 does not end on cylinder boundary.
/dev/sda6 3202 121602 951048000 83 Linux
Warning: Partition 6 does not end on cylinder boundary.
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.
Error: /dev/sr0: unrecognised disk label
root@N8PC:/home/nate# ^C
root@N8PC:/home/nate#



this is what happened

does this mean i can now use fdisk in the root terminal?

---------- Post added 12-30-14 at 02:36 AM ----------

root@N8PC:/home/nate# fdisk -l

Disk /dev/sda: 1000 GB, 1000202273280 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1216 9767488 83 Linux
Warning: Partition 1 does not end on cylinder boundary.
/dev/sda2 1216 121602 967000545 5 Extended
Warning: Partition 2 does not end on cylinder boundary.
/dev/sda5 1216 3201 15944512 82 Linux swap
Warning: Partition 5 does not end on cylinder boundary.
/dev/sda6 3202 121602 951048000 83 Linux
Warning: Partition 6 does not end on cylinder boundary.
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.
Error: /dev/sr0: unrecognised disk label
root@N8PC:/home/nate# ^C
root@N8PC:/home/nate#



this is what happened

does this mean i can now use fdisk in the root terminal?
 
Old 12-30-2014, 05:47 AM   #10
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 510

Rep: Reputation: 120Reputation: 120
Quote:
Originally Posted by drainingthoughts View Post
does this mean i can now use fdisk in the root terminal?
Yes, it is the only place where you can use it: in root terminal.
But you have to be carefull, fdisk command may destroy your partitions table and cause data lost.
"fdisk -l" is a mostly safe sample of fdisk usage. Just lists your disks and partitions.
Read this article first:
http://www.howtogeek.com/106873/how-...ions-on-linux/
 
Old 12-30-2014, 06:08 AM   #11
drainingthoughts
LQ Newbie
 
Registered: Dec 2014
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Head_on_a_Stick View Post

Stick to gparted.


I downloaded gparted from the software center

looked up how to access it

should i use sudo in terminal, or root terminal?

i looked online and it said to type

Code:
sudo parted
it asked for sudo password. it wouldnt allow me to type until i hit enter, then i started typing my password, and it told me the password "xxx", after typing only three letters of my password, is not the correct password

when i try in root terminal it says parted not found
 
Old 12-30-2014, 06:16 AM   #12
drainingthoughts
LQ Newbie
 
Registered: Dec 2014
Posts: 19

Original Poster
Rep: Reputation: Disabled
well i feel really silly

just found gparted under administration

---------- Post added 12-30-14 at 03:16 AM ----------

well i feel really silly

just found gparted under administration

---------- Post added 12-30-14 at 03:17 AM ----------

why am i doubling my posts?
 
Old 12-30-2014, 06:17 AM   #13
drainingthoughts
LQ Newbie
 
Registered: Dec 2014
Posts: 19

Original Poster
Rep: Reputation: Disabled
why am i doubling my posts
 
Old 12-30-2014, 09:18 AM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248
Before jumping in to using GParted, it would be a good idea to find out how it works. The link below is to an extremely detailed tutorial which should explain anything you need to know.

http://www.dedoimedo.com/computers/gparted.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install - hd's not seen by fdisk AtWorkSlacking Linux - Newbie 2 07-01-2008 12:59 AM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
Install problem-Fdisk phantom_cyph Solaris / OpenSolaris 15 04-04-2007 03:36 AM
Fdisk after linux install newestuser Linux - Laptop and Netbook 1 01-19-2007 07:31 PM
trouble with fdisk/install tsw Slackware 2 06-15-2004 03:18 PM


All times are GMT -5. The time now is 02:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration