Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"value out of range" partitioning prob?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Thu Dec 30, 2010 8:42 pm    Post subject: "value out of range" partitioning prob? Reply with quote

handbook says

Quote:
Creating the Swap Partition

Let's now create the swap partition. To do this, type n to create a new partition, then p to tell fdisk that you want a primary partition. Then type 2 to create the second primary partition, /dev/sda2 in our case. When prompted for the first cylinder, hit enter. When prompted for the last cylinder, type +512M to create a partition 512MB in size.


am installing from the rescue cd with rescue64 kernel.

one first sector comes up, i hit enter & there comes
Quote:
"value out of range



Code:
Command ...: n
Partition Number (1-8): p
Partition Number (1-8):2
First sector (65536-625137345)
Value out of range.


am trying to create a swap partition.

the first partition looks like this:

Code:

Device  Flag  Start End      Blocks    Id    System

/dev/sda1 u   0      65536   32768   83  Linux Native



cheers
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Thu Dec 30, 2010 9:05 pm    Post subject: Reply with quote

The 65536 listed as your ending sectors for sda1 seems very suspicious. Did you accidently let sda1 take up the whole disk by pressing enter instead of specifying a size for the partition?

Could you post the output of `fdisk -l`? (that's a lowercase L)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Thu Dec 30, 2010 9:12 pm    Post subject: Reply with quote

lo-jay,

Something is badly broken there. Valid partition numbers are in the range 1-4. Thats for primary partitions.
For logical partitions, you don't get to choose a number. They are formed from a linked list, starting at 5.

Worse, the first partition does not start at sector 0. The MBR gor there.

If thats a MSDOS partition table on a PC, throw it away and start again. If its some other partition table on some other hardware, what and what?

PC hardware with GPT allows you 255 primary partitions.
Sun disklabels on SPARC have some odd requirements, which I would need to look up
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Thu Dec 30, 2010 9:14 pm    Post subject: Reply with quote

here we go:

Code:


Disk /dev/sda (): 255 heads, 63 sectors 38913 cylinders
Units = sectors of 1 x 512 bytes

Device  Flag  Start End      Blocks    Id    System

/dev/sda1      0      65536   32768   83  Linux Native

Disk /dev/sda1 (): 255 heads, 63 sectors 38913 cylinders
Units = sectors of 1 x 512 bytes

Device  Flag  Start End      Blocks    Id    System

/dev/sda1p1    0      65536   32768   83  Linux Native


cheers!

ps: there has been windows on the disk, but i'm trying a clean gentoo install, no dual boot or s.th.!
how to get rid of any leftovers?
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Thu Dec 30, 2010 9:23 pm    Post subject: Reply with quote

lo-jay,

Delete all the partitions.

A word of warning - some versions of windows use GPT, which fdisk doesn't understand. Newer fdisk does flag a warning though.
The warning is about GPT, the partition table is close to the front of the disk and there is another copy at the end of the disk somewhere.

If your partition table is really GPT, you need to kill both copies of the partition table or you will have problems later.
Try parted - that understands GPT.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Thu Dec 30, 2010 10:08 pm    Post subject: Reply with quote

not really getting further:

in parted ran
Code:
rm 1


to remove a partiton i could see with
Code:
print


according to this command the disk should be empty,

Code:
fdisk -l


still shows

Code:
Disk /dev/sda (): 255 heads, 63 sectors 38913 cylinders
Units = sectors of 1 x 512 bytes

Device  Flag  Start End             Blocks         Id    System

/dev/sda3      0     625137345   312568672+   5  Whole disk


which i seem to be unable to remove. how's that? any radical formatting tips?

thanks again!
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Thu Dec 30, 2010 10:15 pm    Post subject: Reply with quote

lo-jay,

copy /dev/zero to the first few MB of the drive and the last few MB. Make that 1G if you have the time.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Thu Dec 30, 2010 10:24 pm    Post subject: Reply with quote

sorry - tired - but i don't follow you -
how & where would i do this?

confused...
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Thu Dec 30, 2010 11:12 pm    Post subject: Reply with quote

lo-jay,

Code:
dd if=/dev/zero of=dev/sd<your_drive> bs=1000000 cout=1000
don't get it wrong, there is no undo.
That takes care of 1G at the start of the drive.

The end of the drive is a bit harder. Read man dd. You will need skip ot seek ... I forget which.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Dec 31, 2010 1:15 am    Post subject: Reply with quote

boot to xfce gui
in bottom row of icons find and double click gparted
device-->new partition table-->msdos
edit-->apply all operations
partition--> make 1 ext2 50 mb is enough 200mb is an awful lot
partition--> make 1 swap same size as your ram
partition--> make 1 ext3
edit-->apply all operations
_________________
Defund the FCC.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Dec 31, 2010 1:23 am    Post subject: Reply with quote

lo-jay wrote:
Code:
/dev/sda3      0     625137345   312568672+   5  Whole disk

Calling /dev/sda3 the whole disk sounds like some non-pc compatible platform.

Maybe the output of
Code:
# uname -a
would help us understand better what you are trying to do.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Dec 31, 2010 1:39 am    Post subject: Reply with quote

at this point uname -a will tell about the sysresccd.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Dec 31, 2010 1:45 am    Post subject: Reply with quote

Yes, and it will tell if the CPU is a SPARC or something ...
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Dec 31, 2010 1:56 am    Post subject: Reply with quote

Interesting thought.
Identified in another thread as samsung p580
Quote:
:P580 is the codename of the new laptop made by Samsung which has the business professionals as the main target.

The Samsung P580 can either come with an Intel Core i3 or i5 processor and up to 4GB of DDR3 RAM memory. The 15.6-inch laptop boasts a Nvidia GeFoce GT330M graphics card with 1GB and the usual goodies include WiFi, bluetooth, a few USB ports, eSATA, and a TPM – Trusted Platform Module – that provides more security. The pre-installed operative system is Windows 7.


and a TPM – Trusted Platform Module--which if active is going to cause lots of strange things to happen.
_________________
Defund the FCC.


Last edited by DONAHUE on Fri Dec 31, 2010 2:12 am; edited 1 time in total
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Dec 31, 2010 2:01 am    Post subject: Reply with quote

In that case, Neddy was right.
The old partition table should be nuked from orbit, it is the only way to be sure :wink:
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Fri Dec 31, 2010 10:42 am    Post subject: Reply with quote

well, used the nite to dd the whole thing with

Code:
# dd if=/dev/zero of=/dev/hda bs=10240


and after creating boot & swap it looks like this now:

Code:
Device Boot  Start           End             Blocks         Id    System

       /dev/sda1 *     2048          67583          32768         83    Linux
       /dev/sda2       67584      2164735       1048576        83    Linux


is that alright, or should /dev/sda1 start at
Quote:
1



cheers!
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Fri Dec 31, 2010 12:20 pm    Post subject: Reply with quote

lo-jay,

Thats better. On a disc with 512b sectors and the normal faked 255 heads, 63 sectors per track and a MSDOS Partition table, the first partition starts at sector 63.
Thats head 1, sector 0 track 0. The reasons for this are historical - buy me a beer and I'll tell you all about it :)

On drives with 4kB physical sectors (I don't have one) it gets more tricky. These drives fake 512b sectors but at a large speed penalty.
If you have one of these you need to ensure your partitions are aligned on 4kB boundaries. Don't use fdisk as it obeys the old DOS rules about filesystems starting and ending on cylinder boundaries. Use parted and partition starts that are an integer multiple of 4kiB.

Having said all that, a start block for the first partition of 2048 looks very high but it depends on what your drive reports as its geometry.
Max heads is 255 and max sectors/track is 63, from the sizes of the fields allocaked for CHS addressing, so it doesn't make sense yet.

What is the part number of the drive, so we can look at its data sheet ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Fri Dec 31, 2010 12:31 pm    Post subject: Reply with quote

ok,
Code:
sdparm / dev/sda


gives:
Quote:
ATA TOSHIBA MK 3265GS GJ00


does that help?


thanks again!!!

ps:
Code:
--inquiry
gives: ...
Quote:
vendor specific TOSHIBA MK3265GSX

_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Fri Dec 31, 2010 12:44 pm    Post subject: Reply with quote

lo-jay,

Google has never heard of it but it seems to belong to a family of IDE 2.5 inch 4200rpm drives.
Its unlikely it has 4kB sectors as that is something used on bigger drives (> 1TB) or 'green' drives only.

What you have will work bu you are wasting some space. What is the entire
Code:
fdisk -l
output for the drive?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Fri Dec 31, 2010 1:11 pm    Post subject: Reply with quote

just working on it,

but another dummie question: i do not have to create a filesystem on my extended partition?
do i?

cheers?
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Fri Dec 31, 2010 1:39 pm    Post subject: Reply with quote

lo-jay,

No, you can't ... it doesn't actually exist. The extended partition is a dirty hack introduced when hard drives got to 128Mb.
In those days, the maximum DOS file system size was 32Mb, so four 32Mb partitions for 32Mb file systems and you couldn't use the rest of the disk.

You make logical partitions inside the extended partition and put filesystems on the logical partitions.
Your primary partitions are numbered 1..4. At most, one primary partition may be an extended partition. Logical partitions start at 5 and are numbered incrementally.
If you delete a logical partition, the numbers of all the higher numbered partitions are decremented, which messes up fstab.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Fri Dec 31, 2010 1:44 pm    Post subject: Reply with quote

sorry for this kinda troubled installation, but am stuck again:
i would love to proceed with
Quote:
Quote:
Installing the Gentoo Installation Files



but there seems to be no links browser on the rescuecd?

what to do to go on :? ?

( see the other open thread)

cheers :oops:
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Fri Dec 31, 2010 1:56 pm    Post subject: Reply with quote

lo-jay,

SystemRescueCD has a GUI and a browser.

Boot into the GUI, open a terminal for the install, in the terminal,
Code:
sudo su -
to become root.
Use the GUI as you like and do your install in the root terminal.

Fetch files using the graphical browser and put them wherever they are needed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Fri Dec 31, 2010 2:13 pm    Post subject: Reply with quote

well, noone said it would be easy...

starting all over again.

here

Code:
 fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x45bca98e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048       67583       32768   83  Linux
/dev/sda2           67584     2164735     1048576   83  Linux
/dev/sda3         2164736     2369535      102400   83  Linux
/dev/sda4         2369536   625142447   311386456    5  Extended
/dev/sda5         2371584   526659583   262144000   83  Linux
/dev/sda6       526661632   551827455    12582912   83  Linux
/dev/sda7       551829504   560218111     4194304   83  Linux
/dev/sda8       560220160   568608767     4194304   83  Linux
/dev/sda9       568610816   625142447    28265816   83  Linux




this here troubles me
Quote:
put them wherever they are needed


like now i'm downloading "stage-3-amd64-20101223.tar.bz" to
Quote:
/mnt/gentoo/home/


the burning;-) question i ask myself now is: where to extract it to?




cheers
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Fri Dec 31, 2010 2:45 pm    Post subject: Reply with quote

lo-jay,

Does that disk have a strange boot loader on it that hides itself at the start of the disk ?
Zeroing the whole drive may not have wiped it - it depends on how good it was at hiding.

Other than the 2048 for the start of the first partition, it all looks normal.

You will fetch two files for your Gentoo install, the stage3, which needs to go into /mnt/gentoo and the portage snapshot, which needs to go into /mnt/gentoo/usr.
/mnt/gentoo/usr will be created when you untar the stage3.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum