|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
boot0cfg or grub and mount (HARDDISK PROBLEM)
Hi everyone,
The following is what my fdisk editor shows under sysinstall Code:
Disk name: ad4 FDISK Partition Editor DISK Geometry: 60801 cyls/255 heads/63 sectors = 976768065 sectors (476937MB) Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62 - 12 unused 0 63 90188847 90188909 ad4s1 8 freebsd 165 90188910 122865120 213054029 ad4s4 8 freebsd 165 213054030 763714035 976768064 ad4s2 8 freebsd 165 976768065 5103 976773167 - 12 unused 0 ad4s1 and ad4s2 are just empty partitions. When I boot up, I get the following: F1: FreeBSD F2: FreeBSD F4: FreeBSD How do I disable both F1 and F2 in the boot menu? I tried using boot0cfg but failed miserably, under man boot0cfg Code:
To enable just slices 1 and 2 in the menu: boot0cfg -m 0x3 ad0 Code:
boot0cfg -m 0x1 ad4 or boot0cfg -m 0x8 ad4 How do I mount ad4s1 and ad4s2 under /usr? please look at what I did: Code:
[disappearedng@ /]$ cd /usr [disappearedng@ /usr]$ ls X11R6 bin compat games home include lib libdata libexec local mount obj ports sbin share src [disappearedng@ /usr]$ cd mount/ [disappearedng@ /usr/mount]$ ls 350gb 50gb [disappearedng@ /usr/mount]$ mount /dev/ad4 ad4 ad4s1 ad4s1c ad4s2 ad4s2c ad4s4 ad4s4a ad4s4b ad4s4c ad4s4d ad4s4e ad4s4f [disappearedng@ /usr/mount]$ sudo mount /dev/ad4s1 50gb/ Password: mount: /dev/ad4s1 : Invalid argument [disappearedng@ /usr/mount]$ sudo mount /dev/ad4s2 350gb/ mount: /dev/ad4s2 : Invalid argument [disappearedng@ /usr/mount]$ In addition, How do I get FreeBSD to automatically mount when the system starts?? Thx |
|
|||
Anyone????
|
|
|||
Code:
Disk: ad4 Partition name: ad4s1 Free: 90188847 blocks (44037MB) Disk: ad4 Partition name: ad4s4 Free: 0 blocks (0MB) Disk: ad4 Partition name: ad4s2 Free: 763714035 blocks (364GB) Part Mount Size Newfs Part Mount Size Newfs ---- ----- ---- ----- ---- ----- ---- ----- ad4s4a <none> 512MB * ad4s4b swap 4046MB SWAP ad4s4d <none> 3047MB * ad4s4e <none> 512MB * ad4s4f <none> 51875MB * Code:
[disappearedng@ /usr/home/disappearedng]$ ls /dev/ad* /dev/ad4 /dev/ad4s2 /dev/ad4s4a /dev/ad4s4d /dev/ad4s1 /dev/ad4s2c /dev/ad4s4b /dev/ad4s4e /dev/ad4s1c /dev/ad4s4 /dev/ad4s4c /dev/ad4s4f 1) Do I have to create a slice first? 2) If so, what utilities should I be using? 3) if not, do i just mount /dev/ad4s1? 4) Why am I getting this errror? Code:
[disappearedng@ /usr/home/disappearedng]$ sudo mount /dev/ad4s1c /usr/mount/50gb/ mount: /dev/ad4s1c : Invalid argument [disappearedng@ /usr/home/disappearedng]$ sudo mount /dev/ad4s1 /usr/mount/50gb/ mount: /dev/ad4s1 : Invalid argument |
|
|||
Quote:
btw ad4s2 is a 350 gb empty partition that I partitioned by deleting the original linux partition that I had. |
|
||||
Nou nead to make slices on them, and then make File system.
Only then you can mount you can only mount (for example) /dev/ad5s1 somewhere if there;s other than UFS filesystem on it (NTFS, FAT.....) if you will make 1 huge slice on each of them, then you will need to mount /dev/ad4sXd Where X is partition you can make slices with bsdlabel, if i'm correct, but i don't remember how to use it from console |
|
||||
> How do I disable both F1 and F2 in the boot menu?
by the given logic use boot0cfg -m 0x8 ad4 but IMO modifying boot0 like this is in bad taste. boot0 is an elegant program that works automatically, shows bootable partitions, remembers the last booted partition, never requires a reinstallation (unless you wipe it from disk) and it does this using less than 446 bytes of memory! did you create a filesystem on ad4s1? # newfs -U ad4s1 # mount /dev/ad4s1 /mnt Last edited by ephemera; 10th July 2008 at 06:29 PM. |
|
||||
http://www2.lv.freebsd.org/doc/en_US...t-unmount.html
Also you may want to read this http://www2.lv.freebsd.org/doc/en_US...anization.html |
|
||||
Quote:
If i was you, i would do this under some linux live cd... with fdisk (that is my opinion, i'm just guessing, from text you just wrote) EDIT: Don't forget to leave bootable flag for FreeBSD partition Last edited by graudeejs; 10th July 2008 at 07:01 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GRUB on previous Linux installation | indiocolifa | FreeBSD Installation and Upgrading | 2 | 26th March 2009 06:50 AM |
Having trouble adding 7.0 to GRUB 0.97 | Arenlor | FreeBSD General | 4 | 26th June 2008 01:02 AM |
Harddisk problem. | disappearedng | FreeBSD General | 5 | 18th June 2008 08:21 PM |
Mounting External harddisk | rex | FreeBSD General | 1 | 3rd June 2008 09:34 PM |
mount on boot problem | topche | FreeBSD General | 7 | 11th May 2008 04:07 PM |