LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-31-2004, 01:19 AM   #1
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Linux swap space in FreeBSD


I know that I could use a swap partition within a freebsd slice in linux,but is the reverse possible too?
I am a total n00b in FreeBSD,and I hope that I have not asked something stupid.
Some other things that I have to ask is
I could not mount bsd partition in linux(Fedora C -1 (2.4.22) and Mandrake9.2(2.6.1))
I tried mount -t ufs -o ufstype=44bsd <device> <directory>
There is only one partition in the slice,there is no swap.
( I know about bsd labels,and have compiled them in kernel,I checked dmesg too)
Next I have trouble mounting ext3 in BSD
The linux partitions are logical,and I could not find a device in /dev that would make me possible to mount ext3 partitions.
I tried to create nodes with mknod ,but it failed
I tried
mount_ext2fs /dev/ad0s2 /mnt
(where ad0s2 is the extended partion but it failed)
there is no such nodes as ad0s2a ,ad0s2b etc
My system (p represents partitions for devfsd)
p1=ntfs
p2</dev/hda5=ntfs,/dev/hda6=reiserfs,/dev/hda7=swap,/dev/hda8=ext3>
p3</dev/hda3=ufs>
Lastly can I mount reiserfs in FreeBSD
FreeBSD version 5.2
Robin

Last edited by rch; 01-31-2004 at 01:21 AM.
 
Old 01-31-2004, 10:57 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,891

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
"I could not mount bsd partition in linux(Fedora C -1 (2.4.22) and Mandrake9.2(2.6.1))
I tried mount -t ufs -o ufstype=44bsd <device> <directory>"

Do you have ufs support compiled in the kernel?


"I know that I could use a swap partition within a freebsd slice in linux,but is the reverse possible too?"

I think so. I dual booted BSD for a while about a year ago and I think that I remember using the Linux swap partition in BSD.

"Next I have trouble mounting ext3 in BSD"

I think that you can mount an ext3 partition as ext2. If you do so then make it read only because writing to ext3 while it is mounted as ext2 could mess up the journal.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 01-31-2004, 09:27 PM   #3
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Original Poster
Rep: Reputation: 48
Of course I have ufs support in kernel
I checked it using lsmod too
You said that you remembered using linux swap in FreeBSD,the problem I am facing is that there is no device for that partition.
Finallly ,another question.
I edited /etc/passwd ,/etc/master.passwd to enable root to log into zsh shell,but it still boots to csh.Tell me what I missed.
 
Old 02-06-2004, 01:31 AM   #4
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
I just started using FreeBSD yesterday... Ran into alot of the same problems... First off....

Linux does NOT support the new UFS2 file system yet.... If you want to be able to mount it, you'll have to reinstall from scratch, unless you can figure out a way to convert the file system back to the oldfs... Make your slice/s in the first fdisk screen. Quit out of that. Then when you get to the "Disk Label" screen where you make the partitions out of the slice?, Create it, then get on the highlighted slice and press Z. Change the switch to -01...

I still can't mount the damn thing tho. I can... I just can't see any files. Atleast I don't get that Bad Magic crap in dmesg. mtab reports a clean mount, and I get no errors when I do mount it, I just can't see squat. Maybe you'll have better luck....Once you switch to UFS1, you only have to mount /dev/hda3 /mnt/FreeBSD cause your kernel sees that it's the old fs...

The reason why you can't mount Linux in FreeBSD is because it's not possible in your case. Primary Partitions only. If that aint a serious flaw, I don't know what is.... Can't even install it unless it's on a Primary (I tried over and over again). Can't read or see anything unless they are on a primary... I had to wipe my entire extended partition (3 linux &1 20gb vfat) so I could recreate my shared on a primary..... Phftttt....

For some reason, I don't quite believe that you can't mount a logical volume. Please let me know if I'm wrong but I read it in the handbook somewhere and posed this question on the bsd forums and no one disputed me so...... It must be true I guess.... Ya' know, I haven't even tried now that I think about it...

The swap question is a good one.... I know about the linux using bsd as well.....

Also, Your trying to mount an entire extended partition with that command.... Your trying to classify an entire extended partition as one slice... /dev/hda8 would be ad0s8.... Ya' know? According to your layout, you wouldn't even have an hda2 listed in cfdisk.... Your layout confuses me.... You must have an extended partition sandwiched in between 2 primaries...... Oh well....

Reply back because I think I just confused the hell out of myself.....

Also, for the shell question... chsh -s /path/to/shell

cd ~/Desktop
ln -s /usr/share/doc/en_US.ISO8859-1/books/handbook/index.html Handbook

Last edited by jong357; 02-06-2004 at 01:37 AM.
 
Old 02-27-2004, 10:55 PM   #5
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Original Poster
Rep: Reputation: 48
I am sorry for replying late.I had enabled the email notification option,but it never came telling me about your reply.
Quote:
Linux does NOT support the new UFS2 file system yet.... If you want to be able to mount it, you'll have to reinstall from scratch, unless you can figure out a way to convert the file system back to the oldfs... Make your slice/s in the first fdisk screen. Quit out of that. Then when you get to the "Disk Label" screen where you make the partitions out of the slice?, Create it, then get on the highlighted slice and press Z. Change the switch to -01...
The reason why you can't mount Linux in FreeBSD is because it's not possible in your case. Primary Partitions only. If that aint a serious flaw, I don't know what is.... Can't even install it unless it's on a Primary (I tried over and over again). Can't read or see anything unless they are on a primary... I had to wipe my entire extended partition (3 linux &1 20gb vfat) so I could recreate my shared on a primary..... Phftttt....
Thanks for the info.
Quote:
Also, Your trying to mount an entire extended partition with that command.... Your trying to classify an entire extended partition as one slice... /dev/hda8 would be ad0s8.... Ya' know? According to your layout, you wouldn't even have an hda2 listed in cfdisk.... Your layout confuses me.... You must have an extended partition sandwiched in between 2 primaries...... Oh well....
I know that I was trying to mount an entire extended partition,so I asked.Now I know that one can't mount extended partition and /dev/hda8 is a extended partition.
Quote:
you wouldn't even have an hda2 listed in cfdisk.... Your layout confuses me.... You must have an extended partition sandwiched in between 2 primaries...... Oh well....
I do have a extended partition between 2 primaries,that is becoz I installed linux first ,creating a extended partition and finally when I had to install FreeBSD I came to know about the prerequisite-
1)must be primary partition2)Must be the last primary partition
So the odd layout.
Correct me if I am wrong.

Quote:
Also, for the shell question... chsh -s /path/to/shell
You mean
$chsh -snf /bin/zsh (?!)
Anyway thanks for the info.

Last edited by rch; 02-27-2004 at 11:04 PM.
 
Old 02-28-2004, 11:57 AM   #6
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
The reason you cant mount a linux partition is BECAUSE THE GPL IS NOT BSDL compatible! If you install support for ext2 etc... You infect your kernel and GPL the whole damn thing which is not something the *BSD take kindly to.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can I use linux swap space with BSD? thedeadhead *BSD 1 08-30-2005 11:52 AM
increasing the swap space after installing linux LinToWinWin Linux - Newbie 4 08-03-2004 09:51 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
using windows swap space in linux jayakrishnan Linux - General 9 02-19-2003 02:52 AM
freeing up swap space on my linux system manmagic Linux - General 1 06-22-2001 07:08 AM

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

All times are GMT -5. The time now is 04:20 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