Mounting partition on boot
Posted: Thu Nov 03, 2011 8:32 am
I know that this has been covered over an over in many forums, but mine has an extra challenge.
Simply put, the partition will mount from the desktop when password is supplied. When I edited the fstab to mount on boot the startup process fails - with failure to read DMA and logical blocks.
I start with
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb1
UUID=f89ed5f7-2c5c-43e5-91c7-cfeb4d2dbf80 / ext4 rw,errors=remount-ro 0 1
# /dev/sda6
UUID=727238b7-2062-4f60-b5ff-16fe99b485a5 /home ext4 rw,errors=remount-ro 0 1
# /dev/sdb3
UUID=1b146516-588f-443c-9c41-3df04e5f3ddf swap swap sw 0 0
# /dev/sdb2
UUID=beec6f37-80d1-468f-8005-d201cb4bc899 /home/fiik/backupA ext4 rw,errors=remount-ro 0 1
I have already managed to change things around to allow home on sda6 and a data partition on sdb2. I can access backupA thru my home folder.
I am trying to add a data partition on sda5. I mkdir Home. and edit fstab to give
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb1
UUID=f89ed5f7-2c5c-43e5-91c7-cfeb4d2dbf80 / ext4 rw,errors=remount-ro 0 1
# /dev/sda6
UUID=727238b7-2062-4f60-b5ff-16fe99b485a5 /home ext4 rw,errors=remount-ro 0 1
# /dev/sdb3
UUID=1b146516-588f-443c-9c41-3df04e5f3ddf swap swap sw 0 0
# /dev/sdb2
UUID=beec6f37-80d1-468f-8005-d201cb4bc899 /home/fiik/backupA ext4 rw,errors=remount-ro 0 1
# /dev/sda5
UUID=81a9d2ba-96a3-4c5e-ba92-2d1198261936 /home/fiik/Home ext4 rw,errors=remount-ro 0 1
When I restart with this setup, the script shows the system trying to mount sda5 finding errors and repeatedly failing to read DMA and reporting logic blocks until it gives up.
Hit CTRL D to login.
Going through the rescue mode is beyond me still, so I use the LiveDVD to boot up and edit fstab back to the one that works.
I've thought of putting up with the way it is - works but messy. It would be nice to have it 'elegant'.
Thanks in advance,
Bruce
Simply put, the partition will mount from the desktop when password is supplied. When I edited the fstab to mount on boot the startup process fails - with failure to read DMA and logical blocks.
I start with
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb1
UUID=f89ed5f7-2c5c-43e5-91c7-cfeb4d2dbf80 / ext4 rw,errors=remount-ro 0 1
# /dev/sda6
UUID=727238b7-2062-4f60-b5ff-16fe99b485a5 /home ext4 rw,errors=remount-ro 0 1
# /dev/sdb3
UUID=1b146516-588f-443c-9c41-3df04e5f3ddf swap swap sw 0 0
# /dev/sdb2
UUID=beec6f37-80d1-468f-8005-d201cb4bc899 /home/fiik/backupA ext4 rw,errors=remount-ro 0 1
I have already managed to change things around to allow home on sda6 and a data partition on sdb2. I can access backupA thru my home folder.
I am trying to add a data partition on sda5. I mkdir Home. and edit fstab to give
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb1
UUID=f89ed5f7-2c5c-43e5-91c7-cfeb4d2dbf80 / ext4 rw,errors=remount-ro 0 1
# /dev/sda6
UUID=727238b7-2062-4f60-b5ff-16fe99b485a5 /home ext4 rw,errors=remount-ro 0 1
# /dev/sdb3
UUID=1b146516-588f-443c-9c41-3df04e5f3ddf swap swap sw 0 0
# /dev/sdb2
UUID=beec6f37-80d1-468f-8005-d201cb4bc899 /home/fiik/backupA ext4 rw,errors=remount-ro 0 1
# /dev/sda5
UUID=81a9d2ba-96a3-4c5e-ba92-2d1198261936 /home/fiik/Home ext4 rw,errors=remount-ro 0 1
When I restart with this setup, the script shows the system trying to mount sda5 finding errors and repeatedly failing to read DMA and reporting logic blocks until it gives up.
Hit CTRL D to login.
Going through the rescue mode is beyond me still, so I use the LiveDVD to boot up and edit fstab back to the one that works.
I've thought of putting up with the way it is - works but messy. It would be nice to have it 'elegant'.
Thanks in advance,
Bruce