SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I asked this question in another thread (as a sub question), but I was curious as to whether it was possible to delete all directories on / with the exception of /home, then re-install slackware without a re-format?
Excellent, I'll go ahead & back everything up then attempt to re-install without a reformat. I've always been afraid of having too much free space 1 partition & not enough on another, therefore, I never put /home on a separate one (though I now see the value in this!!)
The problem with a re-install without format will be that there will be stale files or directories with files that will remain.
I suggest that you copy or move the '/home' to a alternate storage, then when you do rebuild you can move to a separate storage or device. You could create a new '/home' at the end of your hdd to allow you to rebuild without over writing or formatting.
A good solution would be to create a extended partition on your hdd that would allow you to have more than just the 4 primary partitions. That way you could create your '/' and '/home' on separate partitions. I use the '4th' primary assignment as my extended partition then create;
Code:
~# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf5b5f5b5
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 4074 2008125 82 Linux swap
/dev/sda3 4075 10300 50010345 83 Linux
/dev/sda4 10301 60801 405649282+ 5 Extended
/dev/sda5 10301 10425 1004031 83 Linux
/dev/sda6 10426 11671 10008463+ 83 Linux
/dev/sda7 11672 12668 8008371 83 Linux
/dev/sda8 12669 12918 2008093+ 83 Linux
/dev/sda9 12919 13915 8008371 83 Linux
/dev/sda10 13916 15161 10008463+ 83 Linux
/dev/sda11 15162 16407 10008463+ 83 Linux
/dev/sda12 16408 28856 99996561 83 Linux
/dev/sda13 28857 41305 99996561 83 Linux
/dev/sda14 41306 53754 99996561 83 Linux
/dev/sda15 53755 60801 56604996 83 Linux
Disk /dev/sdd: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb2214719
Device Boot Start End Blocks Id System
/dev/sdd1 * 1 4981 40009851 7 HPFS/NTFS
/dev/sdd2 4982 9962 40009882+ 83 Linux
Code:
cfdisk (util-linux-ng 2.13.1)
Disk Drive: /dev/sda
Size: 500107862016 bytes, 500.1 GB
Heads: 255 Sectors per Track: 63 Cylinders: 60801
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
sda1 Boot Primary NTFS [^C] 31453.48
sda2 Primary Linux swap 2056.32
sda3 Primary Linux ext3 [/spare1] 51210.60
sda5 Logical Linux ext3 [/] 1028.16
sda6 Logical Linux ext3 [/home] 10248.70
sda7 Logical Linux ext3 [/usr] 8200.61
sda8 Logical Linux ext3 [/var] 2056.32
sda9 Logical Linux ext3 [/tmp] 8200.61
sda10 Logical Linux ext3 10248.70
sda11 Logical Linux ext3 10248.70
sda12 Logical Linux ext3 102396.52
sda13 Logical Linux ext3 102396.52
Don't forget to bring along your configuration files.
Code:
su -c "cp -r /etc /home/user/backup/"
Backing up the whole thing and then copying what you need back into their rightful places is preferable over rewriting perfectly good configuration files any day.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.