VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: partition (RESOLVED)  (Read 1393 times)

flip city

  • Packager
  • Vectorite
  • ****
  • Posts: 340
  • Way Out In HyperSpace
partition (RESOLVED)
« on: October 26, 2009, 07:27:30 pm »

 while doing some changes with g-parted on the master hard drive,(I added a new partition); the partition where vector 6 resides(hda6), was changed to hda5. I adjusted the /boot/grub/menu.lst file(I opt for an all grub boot) to reflect the change, however, when starting Vector, it shows an /sbin/e2fsck/dev/hda6 error message. What command do I issue to correct it to read hda5.
« Last Edit: October 27, 2009, 09:49:10 am by flip city »
Logged

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
Re: partition
« Reply #1 on: October 26, 2009, 07:57:34 pm »

you need to edit /etc/fstab so it shows /dev/hda5 /
Logged

flip city

  • Packager
  • Vectorite
  • ****
  • Posts: 340
  • Way Out In HyperSpace
Re: partition
« Reply #2 on: October 26, 2009, 08:36:34 pm »

naturally vector will not completely boot, so I became root and used mc to get to the /etc/fstab file. I then edited it (change line to read hda5 instead of hda6) and when tying to exit and save the modification, it would not allow the file to be saved. What me do now ?
« Last Edit: October 27, 2009, 09:42:41 am by flip city »
Logged

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
Re: partition
« Reply #3 on: October 26, 2009, 08:50:33 pm »

you can either boot a livecd and fix it from there or remount the root filesystem rw
Code: [Select]
mount -o remount rw /then you should be able to save your changes
Logged

flip city

  • Packager
  • Vectorite
  • ****
  • Posts: 340
  • Way Out In HyperSpace
Re: partition (RESOLVED)
« Reply #4 on: October 26, 2009, 09:47:58 pm »

 back home in Vector safe and sound! That was a valuable learning node, since I will be tweaking the hard drive from time to time. I used the live cd Mint 7xfce. There's a system application,(in the menu it's called Remote Filesystems) named gigolo, that let me see Vector, then opened Vector and went to the etc file; mounted it as root(right click, then select open as root); then found fstab and modified the hda6 line to read hda5; then saved. Reboot.

my humble thanks
« Last Edit: October 27, 2009, 09:44:27 am by flip city »
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4085
Re: partition (RESOLVED)
« Reply #5 on: October 27, 2009, 05:31:03 am »

Keeping a Live CD around is a must for code hackers. In cases like this you just boot from it, then use the live environment for troubleshooting and repair.

Luckily, flip city caught uelsk8s between session.  ;)
Logged

flip city

  • Packager
  • Vectorite
  • ****
  • Posts: 340
  • Way Out In HyperSpace
Re: partition (RESOLVED)
« Reply #6 on: October 27, 2009, 09:08:37 am »

Luckily, flip city caught uelsk8s between session.  ;)

Afterglow...and a tweakin we go!