dwlamb
December 26th, 2012, 07:52 PM
I replaced a hard drive recently. Though I used Clonezilla, after the job of cloning the disk, Gparted in Ubuntu reported the partition as out of alignment and recommended repartitioning. I also decided to make some changes. The functions of the partitions did not change, only the sizes. I changed the file system on one but feel it is inconsequential for it is not key to the system.
A 1Tb drive, it's partitioned accordingly;
sdc1 ext4 sound and video library 625Gb
it was NTFS; I just converted it for this PC no longer runs Windows
sdc2 Extended partition 306.51
sdc5 ext4 /home 68.36Gb
sdc6 ext4 /var 58.59
sdc7 ext4 used for back-ups which are copied to another machine 179.56Gb
To back-up the individual partitions, I booted the system with PartedMagic. Since I was resizing partitions, I opted to save the partitions as individual tarballs with gzip rather than use Clonezilla. It was only necessary to back-up sdc5 and sdc6. sdc1 and sdc7 were mirrored elsewhere. I deleted the partitions as they were and created a new partition table as above. I restored the tarballs to the partitions.
I updated the fstab and it appears here:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=14bcdc12-5a52-492c-b286-192fcb29c0cb / ext4 errors=remount-ro 0 1
# WAS NTFS before manual repartition
UUID=9c219770-f503-45c2-828d-1e2799a8befb /media/sdc1 ext4 defaults 0 0
# /home was on /dev/sdc5 during installation
UUID=0d5b622b-9d7a-46e0-846d-fd8ab12e57c6 /home ext4 defaults 0 2
# /var was on /dev/sdc6 during installation
UUID=75a477a6-c155-4add-8c2a-7a439eda9277 /var ext4 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=2572f5fa-280d-4d53-980f-623061df7f35 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sdb1 /media/sdb1 ext4 users,user,owner 0 0
/dev/sdc7 /media/sdc7 ext4 defaults 0 0
There are no errors on the fstab when I boot. I get as far as a log-in screen. After entering My user name and password, the screen goes black and then cycles back to the log-in screen. The machine does not reboot, it simply cycles back like restarting X-term.
I broke it but now I want to learn how to fix it. Kindly don't suggest a total re-install unless it is absolutely necessary due to and error in my back-ups.
Can someone more knowledgeable than I help?
A 1Tb drive, it's partitioned accordingly;
sdc1 ext4 sound and video library 625Gb
it was NTFS; I just converted it for this PC no longer runs Windows
sdc2 Extended partition 306.51
sdc5 ext4 /home 68.36Gb
sdc6 ext4 /var 58.59
sdc7 ext4 used for back-ups which are copied to another machine 179.56Gb
To back-up the individual partitions, I booted the system with PartedMagic. Since I was resizing partitions, I opted to save the partitions as individual tarballs with gzip rather than use Clonezilla. It was only necessary to back-up sdc5 and sdc6. sdc1 and sdc7 were mirrored elsewhere. I deleted the partitions as they were and created a new partition table as above. I restored the tarballs to the partitions.
I updated the fstab and it appears here:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=14bcdc12-5a52-492c-b286-192fcb29c0cb / ext4 errors=remount-ro 0 1
# WAS NTFS before manual repartition
UUID=9c219770-f503-45c2-828d-1e2799a8befb /media/sdc1 ext4 defaults 0 0
# /home was on /dev/sdc5 during installation
UUID=0d5b622b-9d7a-46e0-846d-fd8ab12e57c6 /home ext4 defaults 0 2
# /var was on /dev/sdc6 during installation
UUID=75a477a6-c155-4add-8c2a-7a439eda9277 /var ext4 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=2572f5fa-280d-4d53-980f-623061df7f35 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sdb1 /media/sdb1 ext4 users,user,owner 0 0
/dev/sdc7 /media/sdc7 ext4 defaults 0 0
There are no errors on the fstab when I boot. I get as far as a log-in screen. After entering My user name and password, the screen goes black and then cycles back to the log-in screen. The machine does not reboot, it simply cycles back like restarting X-term.
I broke it but now I want to learn how to fix it. Kindly don't suggest a total re-install unless it is absolutely necessary due to and error in my back-ups.
Can someone more knowledgeable than I help?