Linux Today: Linux News On Internet Time.

More on LinuxToday

CIOL.com: Striking at the / [moving your root partition]

Sep 30, 2000, 14:18 (3 Talkback[s])
(Other stories by Venkatesha Murthy G.)


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

[ Thanks to Harry for this link. ]

"My Linux machine at home has 2 hard disks - /dev/hda is a 630MB disk that came with the machine when I bought it. /dev/hda2 is a 8.1GB disk that I added last year. When I added the new disk, I moved /home and /usr to the /dev/hdb, leaving / and swap on the first disk, where they always were. Things were perfect until recently, when the the smaller disk started showing signs of age and the machine threw up ominous messages from the IDE driver - Unrecoverable error on such and such a disk block, this LBA, etc. etc. Nothing fatal - I could still compose articles and access the net when the phone and the ISP let me. But I decided to be proactive and move the / to /dev/hdb before the Unrecoverable error truly became unrecoverable."

"When you are installing / for the first time, the setup program copies stuff from CD/floppy/hard disk to the intended / partition. When you are moving /, you have to do the copying yourself. Choose the partition you want to make the new /, make sure there's enough space, make an ext2 file system on it, then copy stuff from old / to the new partition; tar cvf here and tar xvf there. That's all? Well, not exactly."

"The next step is trivial, a lull before the storm. You need to edit the future /etc/fstab and modify the entry for /. All you''ve achieved so far is to setup the files in your new /. You now need to arrange things so that your machine will boot into the new /."

Complete Story

Related Stories: