Mount partitions in root file system in an hdd install
Posted: 22 Jun 2012, 15:33
Porteus is the only distro that id's everything correctly and runs without problems on my new desktop mobo/cpu setup. I have had problems with both Salix and Slack installs and have spent too much time compilng kernels, bricking my bios and in general trying to figure out exactly what's the problem(s). Since Porteus runs very well as an hdd install on my problem netbook I figured in the interim I'd do a hdd install on my desktop too. The challenge is I want to mount my existing /home, /usr/local, /multimedia and /store partitions in my Porteus root filesystem.
I have used the script below called from /etc/rc.d/rc.local to edit /etc/fstab at boot an remount the partitions. It works fine for /usr/local, /multimedia and /store but I can't seem to get /home to mount as /dev/sda3. I guess there is something else happening at boot or in the background but I'm just out of figuring things out at the moment. Can someone give a heads up on how I can get my /home partition to mount in the root filesystem either with this script or by editing something else.
After running the sript the new /etc/fstab looks like this
Thanks in advance :*)
I have used the script below called from /etc/rc.d/rc.local to edit /etc/fstab at boot an remount the partitions. It works fine for /usr/local, /multimedia and /store but I can't seem to get /home to mount as /dev/sda3. I guess there is something else happening at boot or in the background but I'm just out of figuring things out at the moment. Can someone give a heads up on how I can get my /home partition to mount in the root filesystem either with this script or by editing something else.
Code: Select all
#!/bin/bash
# /usr/local/bin/edit-fstab RM20120622
cat /etc/fstab-good | sed '/sda3/d' | sed '/sda4/d' | sed '/sda7/d' | sed '/sdb1/d' > /etc/fstab
echo "/dev/sda3 /home reiserfs auto,noatime,nodiratime,suid,dev,exec 0 0" >> /etc/fstab
echo "/dev/sda4 /multimedia jfs auto,noatime,nodiratime,suid,dev,exec 0 0" >> /etc/fstab
echo "/dev/sda7 /usr/local reiserfs auto,noatime,nodiratime,suid,dev,exec 0 0" >> /etc/fstab
echo "/dev/sdb1 /store jfs auto,noatime,nodiratime,suid,dev,exec 0 0" >> /etc/fstab
echo -e "\nEnd of /etc/fstab \n" >> /etc/fstab
mount -a
Code: Select all
# System mounts
aufs / aufs defaults 0 0 # AutoUpdate
proc /proc proc defaults 0 0 # AutoUpdate
sysfs /sys sysfs defaults 0 0 # AutoUpdate
# Device partitions
/dev/sda1 /mnt/sda1 ext4 auto,noatime,nodiratime,suid,dev,exec 0 0 # AutoUpdate
/dev/sda6 /mnt/sda6 reiserfs auto,noatime,nodiratime,suid,dev,exec 0 0 # AutoUpdate
/dev/sda8 /mnt/sda8 reiserfs auto,noatime,nodiratime,suid,dev,exec 0 0 # AutoUpdate
/dev/sdb2 /mnt/sdb2 ext4 auto,noatime,nodiratime,suid,dev,exec 0 0 # AutoUpdate
# Swap partitions
/dev/sda5 none swap auto,sw,pri=1 0 0 # AutoUpdate
/dev/sda3 /home reiserfs auto,noatime,nodiratime,suid,dev,exec 0 0
/dev/sda4 /multimedia jfs auto,noatime,nodiratime,suid,dev,exec 0 0
/dev/sda7 /usr/local reiserfs auto,noatime,nodiratime,suid,dev,exec 0 0
/dev/sdb1 /store jfs auto,noatime,nodiratime,suid,dev,exec 0 0
End of /etc/fstab