LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-02-2005, 06:47 PM   #1
Lrr
LQ Newbie
 
Registered: Mar 2005
Distribution: mandrake 10.1
Posts: 13

Rep: Reputation: 0
running fdisk in linux


how do i go about running fdisk in linux?
 
Old 03-02-2005, 06:52 PM   #2
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
type "fdisk" at a command prompt.

if you tried that, are you doing it as root?

what are you trying to do with fdisk?
 
Old 03-02-2005, 06:57 PM   #3
Lrr
LQ Newbie
 
Registered: Mar 2005
Distribution: mandrake 10.1
Posts: 13

Original Poster
Rep: Reputation: 0
hmm alright how do i run as root
trying to boot with windows
 
Old 03-02-2005, 08:48 PM   #4
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
you'll need to provide more information - you mean you're booting windows, or you have windows and are trying to boot linux? why do you want to run fdisk?

to run as root, at a terminal type "su", enter, and then the root password
 
Old 03-02-2005, 08:52 PM   #5
Lrr
LQ Newbie
 
Registered: Mar 2005
Distribution: mandrake 10.1
Posts: 13

Original Poster
Rep: Reputation: 0
i am trying to change mmy NTFS file systeem from hidden to non hidden so that i may boot up xp
 
Old 03-02-2005, 09:15 PM   #6
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
If you have installed linux on the same PC as windows then you will need to boot windows with lilo - lilo is the boot menu that comes up with linux and it can have an optin to boot windows. What distro is it you installed? Some will have added wndows to lilo already. If not, you may have to do it... It is also possible that if you recently installed linux you may have accidentally wiped the windows drive. You will have to give details. If you do su and type the root passsword then do:

fdisk -l /dev/hda

and post the results, this may give some some idea of what is going on...
 
Old 03-02-2005, 10:53 PM   #7
Lrr
LQ Newbie
 
Registered: Mar 2005
Distribution: mandrake 10.1
Posts: 13

Original Poster
Rep: Reputation: 0
linux and windows are on the same drive. windows still exists and i cam slect it as a boot option, it'l go through the little scroly thingy and a screen will say xmnt2002 program not found-skiping disk check
i think it goes by real quick. what i can tell from surfin' the web id that i need to turn my ntfs from hidden to regular (type 17 apperntly dont know what that means) my exprence with linux is very limited. mandrake 10.1 is whats running, fdisk /dev/hda gives:
The number of cylinders for this disk is set to 19457.
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):

with fdisk -l/dev/hda:

fdisk: invalid option -- /

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
 
Old 03-02-2005, 10:58 PM   #8
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Rep: Reputation: 30
cfdisk is a nice user interface for fdisk, I recommend it highly. You can enter cfdisk at the command prompt and then choose the type option from menu at the bottom of the screen. A list of fs types will come up and you can choose the number for the fs of your choice. Then once that is done choose write type yes and then choose quit. That should do the trick, if that's what you need to do.
 
Old 03-02-2005, 11:11 PM   #9
Lrr
LQ Newbie
 
Registered: Mar 2005
Distribution: mandrake 10.1
Posts: 13

Original Poster
Rep: Reputation: 0
01 FAT12 1E Hidden W95 FAT16 (LB 75 PC/IX BE Solaris boot
02 XENIX root 24 NEC DOS 80 Old Minix C1 DRDOS/sec (FAT-12)
03 XENIX usr 39 Plan 9 81 Minix / old Linux C4 DRDOS/sec (FAT-16 <
04 FAT16 <32M 3C PartitionMagic recov 82 Linux swap C6 DRDOS/sec (FAT-16)
05 Extended 40 Venix 80286 83 Linux C7 Syrinx
06 FAT16 41 PPC PReP Boot 84 OS/2 hidden C: drive DA Non-FS data
07 HPFS/NTFS 42 SFS 85 Linux extended DB CP/M / CTOS / ...
08 AIX 4D QNX4.x 86 NTFS volume set DE Dell Utility
09 AIX bootable 4E QNX4.x 2nd part 87 NTFS volume set DF BootIt
0A OS/2 Boot Manager 4F QNX4.x 3rd part 8E Linux LVM E1 DOS access
0B W95 FAT32 50 OnTrack DM 93 Amoeba E3 DOS R/O
0C W95 FAT32 (LBA) 51 OnTrack DM6 Aux1 94 Amoeba BBT E4 SpeedStor

which one am i lookin for in this i see three diffrent ntfs systems and i ant got a clue which one i want/need
nevermind think i got it thank yeall very mutch.

Last edited by Lrr; 03-02-2005 at 11:13 PM.
 
Old 03-02-2005, 11:16 PM   #10
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Rep: Reputation: 30
next time please keep your problem in one thread...
 
Old 03-02-2005, 11:29 PM   #11
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I would suggest that the id of the ntfs drive should be -- 7

That's what mine is
 
Old 03-03-2005, 01:12 AM   #12
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
I posted in your other thread and it is 7 not 17. I changed mine to 17 and got the same error but it booted. Changed back to 7 and no error
 
  


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
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
What is this error im getting when running fdisk? Dachy Slackware 4 06-07-2005 02:02 PM
why fdisk is not running? AkshatBhandari Linux - Newbie 2 03-18-2005 02:31 PM
I am haveing trubles running fdisk on my raid BrokenOne Linux - Hardware 2 10-13-2003 04:06 PM
running FDISK Juniper34 Linux - Newbie 2 08-13-2003 08:25 PM


All times are GMT -5. The time now is 08:27 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