LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 09-09-2005, 10:43 AM   #1
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Rep: Reputation: 30
Partitioning and mounting


I have experience with linux...but quite new to bsd......The linux way of doing things using fdisk failed here ...and there lies the problem...............

my /sbin/fdisk /dev/ad0 output is as follows

Code:
tux# /sbin/fdisk /dev/ad0
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=155127 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=155127 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 35519652 (17343 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
sysid 15 (0x0f),(Extended DOS (LBA))
    start 35519715, size 120824865 (58996 Meg), flag 0
        beg: cyl 1023/ head 255/ sector 63;
        end: cyl 1023/ head 254/ sector 63
tux#
I have no data on partion 2 and 3.I have some important data in partiont 4.Partion 4 is a logical volume,which contains 2 partitions,both of which contain important data(reiserfs formatted)

now,I want to merge 2 and 3 and format it using ext2 and mount it at some place.
I also want to mount the logical volumes(2) at 2 different places.

Plz help me out.


 
Old 09-09-2005, 06:53 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
FreeBSD uses UFS not ext3. I'm not sure what your asking. Here are some links.

http://www.freebsd.org/doc/en_US.ISO...ook/index.html
http://www.freebsd.org/doc/en_US.ISO...t-unmount.html
http://www.freebsd.org/doc/en_US.ISO...all-steps.html
 
Old 09-10-2005, 01:29 AM   #3
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Original Poster
Rep: Reputation: 30
I went through the handbook before posting my question.
Simply,put ,my question is this..........How do i combine two empty partitions into one and format it using ext2(bsd does allow this fs)?



tinku
 
Old 09-10-2005, 06:44 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
I would use Fdisk and delete those 2 empty partitions. Then make a new one out of the free space. You can do that from the install disks or you can run sysinstall as root and goto Configure..Fdisk. or you can just run Fdisk. Be careful and take your time. If those slices are mounted then unmount them first. After you make the new slice and format it you can use the mount command to mount it.
something like as root
mount -t ext2fs /dev/hda1 /mounting/point put your own parameters in.
To mount it permanently make a line for it in your fstab.
look at
man mount
man umount
man fdisk
fstab is located at /etc/fstab
 
Old 09-11-2005, 08:05 AM   #5
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Original Poster
Rep: Reputation: 30
Well,fdisk gives an error when I try to delete the partition from sysinstall...The error is Cant write the change..........

Can you give the way to delete a partitino using fdisk in the command line?

tia
tinku
 
Old 09-11-2005, 11:01 AM   #6
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
You're going to have to unmount the partitions first if they are mounted I think.
http://www.freebsd.org/doc/en_US.ISO...t-unmount.html
http://www.freebsd.org/doc/en_US.ISO...all-steps.html

You could also use a live CD to do this.
http://www.freesbie.org/
http://www.knoppix.org/

You could also use the install disks, when you get to Fdisk do what you want then exit the install. Don't delete a slice that you want to keep. Carefull.

You have to run Fdisk as root of course.

http://www.linuxquestions.org/questi...by=&sortorder=

Last edited by teckk; 09-11-2005 at 11:03 AM.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partitioning and mounting using commandline johnnybhoy67 Linux - General 1 10-14-2005 07:39 AM
Mounting an ISO image from a CD different than mounting from HD? NoTiG Linux - Software 4 08-03-2005 04:40 PM
Need help partitioning and mounting my second hd Acid-Face Linux - Newbie 2 10-18-2004 03:08 PM
Gnome 2.6 Right click mounting and the mounting system Acetylcholine Linux - Hardware 0 07-25-2004 07:34 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration