Sponsored Content
Full Discussion: Fstab for 2nd hdd, how to?
Operating Systems Linux Fedora Fstab for 2nd hdd, how to? Post 302970464 by 1in10 on Wednesday 6th of April 2016 08:50:46 PM
Old 04-06-2016
on bsd 10 the loader.conf in /dev

My next attempt (on bsd 10) after searching loader.conf in /boot was to set there
two lines fore ext2fs and ext4fs. So my loader.conf now looks like this

Code:
# * IMPORTANT NOTICE *
# Run 'grub-mkconfig -o /boot/grub/grub.cfg' after making changes to this file
###############################################################################
drm_load="YES"
vboxguest_load="YES"
vboxvideo_load="YES"
crypto_load="YES"
aesni_load="YES"
geom_eli_load="YES"
# Tune ZFS Arc Size - Change to adjust memory used for disk cache
vfs.zfs.arc_max="512M"
zfs_load="YES"
ext2fs_load="YES"
ext4fs_load="YES"
twdm2_enable="YES"

The last line was recommended after reinstalling ext2fs.
By the way, my shell allways sets my last commands to zero after rebooting, how to change that?
The up above notice to run

Code:
'grub-mkconfig -o /boot/grub/grub.cfg' after making changes to this file

did result in nothing, saying that the command

Code:
grub-mkconfig

was not found.
So what to do?

Every time I tried to mount the 2nd hdd, there appears the message, ain't got no rights to do so.
So installing the whole system again, at the point where you can add a disk, I did so, adding even a slice in the format ufs. But again, no rights to mount the volume.
As root in the termninal changing the fstab brings me even more trouble. Rebooting and I am hung in the recovery mode unable to comment the line out in the fstab. I guess this is due to sudo as a file in all that packages. Within the terminal I can modify the file, rebooting, sets me to nothing.
Reading about this, installing in /usr/ports etx2fs and ext4fs
which are already there. So the kernel-bakery was not necessary.
After that I moved on to
Code:
 /boot

looking at
Code:
loader.conf 
loader.conf.pcbsd 
loader.rc

By the way, I set in the first two under
Code:
# Load File-System Support
ext2fs_load="YES"
ext4fs_load="YES"

May I should apply as well to
Code:
# Load Linux compat
linux_lvm="YES"

I really don't know.

After that I had a look at
Code:
 /dev

where the second hdd is listed as
Code:
 ada1

and
Code:
 ada1s1

. So it is there.
After that looking at
Code:
 /etc/rc.conf

and
Code:
 rc.conf.pcbsd

The last one is warning not to write anything into it, 'cause updating the whole thing will overwrite it again. So any changes should be done in /etc/rc.conf

And right here in
Code:
 /etc

I see fstab. But I made this experience before, any changes to this file are leading to nothing. I guess the reason for this is an installed sudo (never mind on debian jessie you will have fakeroot, calif and sudo, so you may read all that complaints of apple users and sudo).
I once added a line to this fstab, and my day was done, hung up at reboot. Even changing file permissions to 775. So reinstall all that system again.
Now looking at gsmartcontrol, my 2nd disk is sound and safe, no bad blocks, it is just not accepted to mount it.

Reading now the freebsd manpage about gpart and another article, there is a hint to add a slice to the 2nd hdd, starting at 1MB, just to have another partition table other than mbr on it. I did so at reinstalling the sys, resulting in nothing again. So my next attempt would be to read the next days gpart and test it with an usb-stick, unless someone here has got another idea. To cut a long story short, is it a good idea to add a slice to the 2nd hdd, beside the mbr that is already there, just to gain access to it? Or how to copy the content and after that format it? And how to gain access to it? That is the crucial point.

Last edited by 1in10; 04-09-2016 at 09:03 PM.. Reason: setting it up again, starting all over again
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

dual boot solaris off of 2nd HDD

I did a search on the board, but I could not find anything specific to dual booting windows and solaris, with solaris being placed on a second hard drive. I have solaris 8 intel, and I am trying to dual boot, but the Solaris installation process is quite intimidating. I am afraid I am going to do... (3 Replies)
Discussion started by: dangral
3 Replies

2. Linux

/etc/fstab

I've created a new drive and i've added it to my fstab file but on startup it will not mount. here is how i put it into my fstab file, is that right? /dev/hdb2 /disk2a ext3 defaults 1 2 (6 Replies)
Discussion started by: byblyk
6 Replies

3. SCO

Sco 5.06 How To Mount A 2nd Hdd Help Help!!!!

Hi guys, I have this problem , One of our client's hdd went down and we cannot boot up the machine , I've installed a new hdd with a fresh copy of SCO 5.0.6 same as the one in the old HDD, i think the data still good in the old HDD. My question!!! How can i access the data from the fresh... (4 Replies)
Discussion started by: josramon
4 Replies

4. UNIX for Dummies Questions & Answers

Old HDD copy to new HDD ? im lost...

Over the last few months the HDD spins louder and louder, so I fiqured its time to replace the HDD. Its been running 24/7/365 since 98 :eek:. yes i said since 98 :D I have an IBM system 43P Model 240. 233 MHz. running AIX Version 4. The current HDD is an IBM DGHS COMP IEC -950 FRU PN#... (5 Replies)
Discussion started by: Chevy89rocks
5 Replies

5. Red Hat

Using a variable in fstab

We have a load of servers which require cloning in VMWare, each of which have their own area on netapp for storage. I was trying to be a bit clever and use a variable within /etc/fstab so I dont need to edit it every time like so; netapp:/vol/vol_nfs_server/servers/`hostname | sed 's/\./ /g' |... (1 Reply)
Discussion started by: JayC89
1 Replies

6. UNIX for Dummies Questions & Answers

fstab

hi , i'm creating a shell script using fstab for my project of last year, i wonder you can help me to know what is the command allow me to get the list of unmounted partitions. thanks (4 Replies)
Discussion started by: Linux001
4 Replies

7. Ubuntu

fstab question

I have created a thumbdrive with a bootable version of Ubuntu 10.04 LTS, it uses Grub legacy. One of the issues I have is that everytime I boot a new system from the thumbdrive, it writes entries for the partitions in the fstab. Consequently, when I boot another system, the OS reads the fstab... (2 Replies)
Discussion started by: stumpyuk
2 Replies

8. Red Hat

Mount /etc/fstab

Can you please help me mount below filesystem in fstab ( I have rhel 5 ) as the line is long - it is not taking as single line How can break this in 2 line and act as one ....please help ... (4 Replies)
Discussion started by: saurabh84g
4 Replies

9. AIX

IBM AIX Internal HDD vs SAN HDD and Oracle

Hi Folks, I am facing an issue with the performance. P4 with 1 processor and 16 GB RAM and SAN HDD = Oracle report takes 25 minutes P5 with 2 processors and 16 GB RAM internall HDD with LPAR = Oracle Report takes 1 hour 15 minutes ( please note I have assigned all the max processors and... (7 Replies)
Discussion started by: filosophizer
7 Replies

10. Emergency UNIX and Linux Support

2nd hdd is Linux_lvm can't mount MBR on BSD with GPT

rying it this way, because I can't handle the slices for the second hdd. If there is someone on this forum who can help me out of that misery, he would really save my digital life in this digital ocean. So not giving up, reading several times the manual of gpart. But the best hint in all that... (0 Replies)
Discussion started by: 1in10
0 Replies
All times are GMT -4. The time now is 04:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy