LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 05-06-2009, 04:06 PM   #1
corteplaneta
Member
 
Registered: Jul 2007
Distribution: archlinux, ubuntu, slackware
Posts: 58

Rep: Reputation: 15
Slackware Re-Installation


Hello,

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?

Thanks,

corte
 
Old 05-06-2009, 04:31 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
The best way would be to move /home onto it's own partition, thus separating it completely from the OS.

But the Slackware installer does offer the option to install without formatting first, which would preserve your /home/username directory.
 
Old 05-06-2009, 04:59 PM   #3
corteplaneta
Member
 
Registered: Jul 2007
Distribution: archlinux, ubuntu, slackware
Posts: 58

Original Poster
Rep: Reputation: 15
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!!)

Thanks for the quick response.
 
Old 05-07-2009, 08:22 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,459
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
Hi,

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
Code:
~# cat /etc/fstab
/dev/sda2        swap             swap        defaults         0   0
/dev/sda5        /                ext3        defaults         1   1
/dev/sda6        /home            ext3        defaults         1   2
/dev/sda7        /usr             ext3        defaults         1   2
/dev/sda8        /var             ext3        defaults         1   2
/dev/sda9        /tmp             ext3        defaults         1   2
/dev/sda1        /mnt/winxp       ntfs-3g     umask=000        1   0
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
 
Old 05-07-2009, 07:57 PM   #5
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Quote:
The problem with a re-install without format will be that there will be stale files or directories with files that will remain.
As stated in his initial post, he intends to delete everything but /home from the drive before running the installer.
 
Old 05-08-2009, 06:54 PM   #6
kslen
Member
 
Registered: Nov 2008
Distribution: Slackware & LMDE.
Posts: 74

Rep: Reputation: 19
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.
 
  


Reply

Tags
reinstall


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 01:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration