Sponsored links


Go Back   Sat Industry Forums > Dreambox > Dreambox Hardware > DM-7000s
Register FAQ Members List Calendar Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-01-2005
Registered User
 
Join Date: Jul 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
yellow is on a distinguished road
Howto partition HD inside DB

Hello,
I've got a dreambox 7000 with official 1.09 in flash.
I would like to repartition the hard disk drive which is inside as follows:
1)75 GB for records
2)64 MB for swap
3)5 GB for multiboot images

The problem is that I cannot find fdisk command.
fdisk does exist on 7020 maybe because there's something more than busybox there.
Anyone has an idea? How can I partion hd without fdisk?
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 05-01-2005
Registered User
 
Join Date: Sep 2004
Posts: 339
Thanks: 0
Thanked 0 Times in 0 Posts
noggie is on a distinguished road
Quote:
Originally Posted by yellow
Hello,
I've got a dreambox 7000 with official 1.09 in flash.
I would like to repartition the hard disk drive which is inside as follows:
1)75 GB for records
2)64 MB for swap
3)5 GB for multiboot images

The problem is that I cannot find fdisk command.
fdisk does exist on 7020 maybe because there's something more than busybox there.
Anyone has an idea? How can I partion hd without fdisk?
Install miniroot7000. That will give you fdisk.

Seriously, most images will include "sfdisk". It's maybe not as user-friendly as fdisk, but technically it's actually a little bit better. If you have linux on your PC, your linux installation will probably include a man-page for sfdisk.
Reply With Quote
  #3 (permalink)  
Old 05-01-2005
Registered User
 
Join Date: Jul 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
yellow is on a distinguished road
Quote:
Originally Posted by noggie
Install miniroot7000. That will give you fdisk.

Seriously, most images will include "sfdisk". It's maybe not as user-friendly as fdisk, but technically it's actually a little bit better. If you have linux on your PC, your linux installation will probably include a man-page for sfdisk.
Thanks mate!

From sfdisk manual:
"sfdisk has four (main) uses: list the size of a partition, list the partitions on a device, check the partitions on a device, and - very dangerous - repartition a device." Wooh, dangerz! ;-)
Reply With Quote
  #4 (permalink)  
Old 05-01-2005
Registered User
 
Join Date: Jul 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
yellow is on a distinguished road
Quote:
Originally Posted by yellow
Thanks mate!

From sfdisk manual:
"sfdisk has four (main) uses: list the size of a partition, list the partitions on a device, check the partitions on a device, and - very dangerous - repartition a device." Wooh, dangerz! ;-)
Well, I hope I have done the right partitioning, now I will have to format, but that's 2 ec.
If this could help someone, here is how I did it

~ > sfdisk /dev/ide/host0/bus0/target0/lun0/disc -uM << EOF
> ,75000
> ,64,S
> ;
> EOF
Checking that no-one is using this disk right now ...
OK

Disk /dev/ide/host0/bus0/target0/lun0/disc: 158816 cylinders, 16 heads, 63 secto rs/track
Old situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End MiB #blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 0+ 78167- 78168- 80043263+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 0 - 0 0 0 Empty
/dev/ide/host0/bus0/target0/lun0/part3 0 - 0 0 0 Empty
/dev/ide/host0/bus0/target0/lun0/part4 0 - 0 0 0 Empty
New situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End MiB #blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 0+ 75000- 75001- 76800023+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 75000+ 75064- 65- 66024 82 Linux swap / Solaris
/dev/ide/host0/bus0/target0/lun0/part3 75064+ 78167- 3103- 3177216 83 Linux
/dev/ide/host0/bus0/target0/lun0/part4 0 - 0 0 0 Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
~ >
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dvblogger howto on DB Munken69 Logging Forum 8 09-16-2008 02:13 PM
Multiboot for 7020 - public beta noggie Dreambox Development 265 08-22-2005 08:29 AM
2 partition on hard disk ciaky73 Dreambox Hardware 3 06-25-2004 03:25 PM
Swap partition on my HD shootking DB Images 1 02-12-2004 07:55 AM
Swap partition ullano001 DB Images 1 12-29-2003 11:09 PM


All times are GMT +10. The time now is 06:53 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Page generated in 0.22345 seconds with 10 queries