Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

[semi-solved]During FDISK write get table fail

Have an x86-64 problem? Post here.
Locked
Advanced search
9 posts • Page 1 of 1
Author
Message
sj_digriz
n00b
n00b
Posts: 18
Joined: Wed Feb 09, 2005 3:07 am

[semi-solved]During FDISK write get table fail

  • Quote

Post by sj_digriz » Wed Feb 09, 2005 9:25 pm

LOL, I made more than 4 minutes!!! but only because I went to lunch. OK, I have /dev/sda1 (WD 74Gig SATA) as the only HD

Go into FDISK create the 3 partitions, 1 boot, 1 swap, 1 the rest.
Partitions are:

/dev/sda1p1
/dev/sda1p2
/dev/sda1p3

hit w...I get

Code: Select all

Re-reading the partition table failed with error 22: Invalid Argument
The partitions are still there if I go back into fdisk, even after rebooting. BUT, I can't put a file system on the partitions.

Code: Select all

mke2fs /dev/sda1p1
gives the error

Code: Select all

Could not stat /dev/sda1p1 -- No such file or directory
The device apparently does not exist
Last edited by sj_digriz on Fri Feb 11, 2005 3:06 am, edited 1 time in total.
MSI K8N neo2 Plat(BIOS 1.4) - AMD FX-53
2x512MB Crucial Ballistics RAM
BFG 6800 Ultra - Asatek Waterchill
2x WD SATA 74Gig Raptors
1x WD SATA 250 Gig
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56085
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Feb 09, 2005 10:17 pm

sj_digriz,

The partitions are called

Code: Select all

/dev/sda1
/dev/sda2
/dev/sda3
when you make filesystesms.
e.g.

Code: Select all

mke2fs -j /dev/sda3
to create an ext3 filesystem on /de/vsda3
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
sj_digriz
n00b
n00b
Posts: 18
Joined: Wed Feb 09, 2005 3:07 am

  • Quote

Post by sj_digriz » Wed Feb 09, 2005 10:28 pm

sorry, my disks are exactly as named.

To enter fdisk I have to type /dev/sda1

then it creates partitions /dev/sda1p1, p2 and p3
MSI K8N neo2 Plat(BIOS 1.4) - AMD FX-53
2x512MB Crucial Ballistics RAM
BFG 6800 Ultra - Asatek Waterchill
2x WD SATA 74Gig Raptors
1x WD SATA 250 Gig
Top
sj_digriz
n00b
n00b
Posts: 18
Joined: Wed Feb 09, 2005 3:07 am

  • Quote

Post by sj_digriz » Wed Feb 09, 2005 10:36 pm

Or are you saying that the drive /dev/sda1 is the only place I can put a file system? From the example in the book they put one in the boot partition and a different one in the main partition. Both of the example partitions were created on 1 HD.
MSI K8N neo2 Plat(BIOS 1.4) - AMD FX-53
2x512MB Crucial Ballistics RAM
BFG 6800 Ultra - Asatek Waterchill
2x WD SATA 74Gig Raptors
1x WD SATA 250 Gig
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56085
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Thu Feb 10, 2005 6:03 pm

sj_digriz,

SCSI includes SATA drives whe you are using the SATA driver in the SCSI branch of the kerenl.

SCSI Drives are called /dev/sda, /dev/sdb and so on. When you run fdisk you use

Code: Select all

fdisk /dev/sda
to partition the first SCSI drive.
Whe you partition the drive you can create either a maximum of four primary partitions or three primary partitions and a single extended partition. These partitions are numbered from 1 to 4. They are referenced as /dev/sda1, /dev/sda2 and so on on the first SCSI drive and /dev/sdb1, /dev/sdb1 etc. on the second SCSI drive.

You make filesystems on partitons with the various make filesystem tools.

Code: Select all

mk2fs /dev/sda1
creates an ext2 filesystem on parttion 1 of the first SCSI drive, such as you may use for /boot.

Code: Select all

mkswap /dev/sda2
marks a partition as a swap partition.

Code: Select all

mk2fs -j /dev/sda3
makes an ext3 filesystem, on the 3rd partition of the first SCSI drive.

/dev/sda1 is not a drive. Its a partition. Windows tends to blurr the difference since left to its own devices, it creates a single partition that fills the whole drive.

Run

Code: Select all

fdisk -l /dev/sda
(thats a lowercase letter L for list) to see how /dev/sda is partitioned now.
If windows is installed on that drive, repartitioning it will destroy windows unless you shrink the windows partition first.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
sj_digriz
n00b
n00b
Posts: 18
Joined: Wed Feb 09, 2005 3:07 am

  • Quote

Post by sj_digriz » Fri Feb 11, 2005 1:57 am

when I run fdisk -l it returns /dev/sda1

That was BEFORE I ever ran fdisk....When I went into fdisk, there were no partitions. I created the first 1 and it auto named itself /dev/sda1p1
MSI K8N neo2 Plat(BIOS 1.4) - AMD FX-53
2x512MB Crucial Ballistics RAM
BFG 6800 Ultra - Asatek Waterchill
2x WD SATA 74Gig Raptors
1x WD SATA 250 Gig
Top
sj_digriz
n00b
n00b
Posts: 18
Joined: Wed Feb 09, 2005 3:07 am

  • Quote

Post by sj_digriz » Fri Feb 11, 2005 2:00 am

If I try to do fdisk /dev/sda it says drive not found..
If I do fdisk /dev/sda1 it goes into the util for me to do my partitions.
MSI K8N neo2 Plat(BIOS 1.4) - AMD FX-53
2x512MB Crucial Ballistics RAM
BFG 6800 Ultra - Asatek Waterchill
2x WD SATA 74Gig Raptors
1x WD SATA 250 Gig
Top
sj_digriz
n00b
n00b
Posts: 18
Joined: Wed Feb 09, 2005 3:07 am

  • Quote

Post by sj_digriz » Fri Feb 11, 2005 3:08 am

ok, even though I had deleted the format of the drive there was an existing NTFS partition on the drive that was pissing off fdisk. As I get more experience I'm gonna need to figure out how to get the 2 file systems to share the same drive. I have a semi-idea how it works. Thanks for all the tries. Sorry to be a pain.
MSI K8N neo2 Plat(BIOS 1.4) - AMD FX-53
2x512MB Crucial Ballistics RAM
BFG 6800 Ultra - Asatek Waterchill
2x WD SATA 74Gig Raptors
1x WD SATA 250 Gig
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56085
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Feb 11, 2005 7:39 pm

sj_digriz,

fdisk is dumb. It doesn't do anything automaically.
At your command, it cand delete an exiting partition or add a new new one. The other commads are not very useful on must modern PCs.

If you have a brand new drive (with no partitions) and ask fdisk to add a parttion, by defualt it will create a partition that fills the drive. You need to specifiy the size of each partiton manually if you want more then one partition per drive.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Locked

9 posts • Page 1 of 1

Return to “Gentoo on AMD64”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic