Create partition in FFS images.

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
Operating Systems Linux Create partition in FFS images.
# 1  
Create partition in FFS images.


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

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

This worked correctly as stated by the output of:
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:

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

Raphael S.C

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

Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #417
Difficulty: Medium
The terms Vanilla JavaScript and Vanilla JS refer to JavaScript which uses very small cookies during web sessions.
True or False?

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. Solaris

[help] create partition for /data

hi experts, i had installed and do mirroring with sun solaris 8 v890 sparc, i had forget to make a partition for directory /data, i have 6 hard drive with disk0 mirror disk1(for root,var,opt,etc) ,disk2 mirror disk3(for /data2) and disk4 mirror disk5(for /data3), how to make a new partition for... (2 Replies)
Discussion started by: bucci
2 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

Featured Tech Videos