DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-03-14 19:35:45

dhub
Member
Registered: 2011-01-01
Posts: 112

Using reloaded to resize disk partitions

As I've been playing with my new Debian install my biggest frustration so far is the pain involved in getting my disks partitioned and set up with LVM (I need LVM for iscsi/aoe/drbd). 

My current process is:

  1. Plug disk into a sata->usb adapter and plug it into my PC
  2. Create a partition table Similar to the normal partition table used by the DNS-323 (partition 1 is swap, 2 is ext2fs, 4 is extfs like the dns-323 partition table, Partition 3 is configured with most of the disk and is type lvm)
  3. Create the ext2fs filesystems on partitions 2 and 4
  4. Mount up partition 2
  5. Copy a .systemfile directory into partition 2
  6  Copy ffp to fun_plug on partition
  7. Unmount partition 2
  8. Plug the disk into the dns-323
  9. Run hd_util -w

I'm thinking with static mkfs.ext2, gparted (or sfdisk) and resize2fs binaries it would potentially be possible have an initrd that resizes partition 2 and creates partition 3 and reboots all without removing the disk from the dns-323. 

Before I start working on this approach anyone have any better ideas?

Offline

 

#2 2011-03-14 20:29:35

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Using reloaded to resize disk partitions

http://www.inreto.de/dns323/fsck/
It reloads into an initramfs that includes parted and e2fsutils.

Quite a few other approaches were discussed in this thread: http://dns323.kood.org/forum/viewtopic. … 620#p18620

Offline

 

#3 2011-03-14 20:50:50

dhub
Member
Registered: 2011-01-01
Posts: 112

Re: Using reloaded to resize disk partitions

Great, that looks like a very useful approach.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB