Create partition in FFS images.


 
Thread Tools Search this Thread
Operating Systems Linux Create partition in FFS images.
# 1  
Old 06-24-2013
Create partition in FFS images.

Hi,

Firstly, I created a 50MB image using:
Code:
dd if=/dev/zero of=./disk.img bs=1MiB count=48

Then I formatted it using:
Code:
mkfs.ufs ./disk.img

This worked correctly as stated by the output of:
Code:
raphaelsc@debian:~/Desktop/FFS$ file disk.img
disk.img: Unix Fast File system [v2] (little-endian) las
number of cylinder groups 4, block size 16384, fragment 
, minimum percentage of free blocks 8, TIME optimization

However, I don't know how to create a partition in the disk image. I tried to use fdisk to create the partition, but it seems not to be correct.
I already compiled my kernel with the required options:
CONFIG_UFS_FS_WRITE and CONFIG_UFS_FS

What should I do to create a UFS (FFS) partition with boot flag set on?

Regards,
Raphael S.C

Last edited by pludi; 06-27-2013 at 09:41 AM.. Reason: code tags
# 2  
Old 07-04-2013
if no better answers, from man fdisk on debian 7 ...
Code:
SEE ALSO
       cfdisk(8), sfdisk(8), mkfs(8), parted(8), partprobe(8), kpartx(8)

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

2. UNIX for Dummies Questions & Answers

Create a raw partition

Hi, I had created a primary partition (/dev/sda3) and made ext3 file system on it. then mounted it on a directory and touch a file (x) into this partition. however, I want to remove this partition and recreate it as an empty partition. so I used 'd' in fdisk command and delete that partition.... (3 Replies)
Discussion started by: Siavash sh
3 Replies

3. UNIX for Dummies Questions & Answers

create new partition

My Linux system's disk is partitioned as follows: center; 1 | 1 | 1 . DEVICE MOUNT POINT SIZE _ hda1 / 100Mb hda5 /usr2048Mb hda6 /home 10Mb hda7 /var512Mb hda8 swap 12Gb There is 4Gb of unpartitioned free space remaining on the disk (in the logical extended partition) The /usr partition... (2 Replies)
Discussion started by: semaphore
2 Replies

4. HP-UX

How to create a partition in HP_UX?

I'm using 11i v3. I have a san disk; how to creeate a partition in a normal way similar to fdisk in linux? (not using lvm) The other question is: I created a partiton using lvm and mounted it. experiment is to take a block level snapshot and attach it as a different disk. I attached the disk... (3 Replies)
Discussion started by: ilan
3 Replies

5. Solaris

How to Create New Partition

Hi there Background: New to Solaris - installed VM Ware on a vista laptop, then installed Solaris 10 using ISO file. My aim, is to get to stage where I can install Oracle 11g Database. Question: See attached file. Simple question, how do I create a new partition say called "Oracle" 30G in... (11 Replies)
Discussion started by: Ackers
11 Replies

6. Linux

how to create new partition in Linux

i want to create on directory called /data under "/ " . but when i m using mkdir /data it is telling permission denied. could any one tell me how to do it ? (1 Reply)
Discussion started by: useless79
1 Replies

7. Filesystems, Disks and Memory

How To Create Partition In Fc5

Hi sir, I want ask you something, i have Fedora Core 5 installed and i wanted to install windows NT at same machine (laptop), currently i have only this partition $ df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 ... (1 Reply)
Discussion started by: mani_um
1 Replies

8. UNIX for Dummies Questions & Answers

How to create ghost images of a Solaris system?

Please excuse me if I asked some stupid questions. I know this has been asked and answered, but I didn't get the answer I need yet. How do I create a ghost image of a Solaris system? And if I can do so, how do I restore it? The purpose is (just like in Windows) to restore a clean system when... (3 Replies)
Discussion started by: correro
3 Replies
Login or Register to Ask a Question