LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 08-01-2019, 04:39 AM   #1
paintpenguin
LQ Newbie
 
Registered: Jan 2018
Location: UK
Distribution: Arch
Posts: 24

Rep: Reputation: 3
error during reinstall while attempting to keeping home partition


Hello :-)
I did this install about a week ago, and, being both new to Arch and using a separate home partition, I'd been excited to see how keeping the separate home would work, but an error message came up.

Using fdisk to set up and write 4 partitions. I used exactly the same sizes for partitions as before. I hadn't formatted the home partition [didn't type mkfs.ext4 /dev/sda4], and then continued with mounting, but the error message came up when attempting to mount home ... wrong fs type, bad option, bad superblock, missing codepage or helper program, or other error.

An increase in how much there would be to setup afterwards, so I'd be more than grateful to know what I'd done wrong and how to keep data if a reinstall is needed.

Last edited by paintpenguin; 08-01-2019 at 04:41 AM.
 
Old 08-01-2019, 05:08 AM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, arch, ubuntu, others
Posts: 3,433

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
Quote:
Using fdisk to set up and write 4 partitions
how many partitions did you have originally and what did you do before using fdisk to create the 4 partitions. Maybe run fsck on home partition will fix things.
 
1 members found this post helpful.
Old 08-01-2019, 05:48 AM   #3
paintpenguin
LQ Newbie
 
Registered: Jan 2018
Location: UK
Distribution: Arch
Posts: 24

Original Poster
Rep: Reputation: 3
Thank you for your message. :-) I read various guides (over an entire month, lol), ending up focussing most of all on AverageLinuxUser's guide, so I run loadkeys, run a ping, then type fdisk -l. Then fdisk /dev/sda, going on to choose gpt, creating 4 partitions: boot/sda1, swap/sda2, root/sda3, and home/sda4. I do the process for each partition, then 'w' to write. I then am at formatting, but do not type mkfs.ext4 /dev/sda4 for the home partition. After that I mount the 3 other partitions, but then am hitting the issue with the home partition, when I type mount /dev/sda4 /mnt/home. System runs great with the 4 partitions otherwise. I'll try fsck for sure next time; thank you ... just fsck /dev/sda4 when that error message comes up?

Last edited by paintpenguin; 08-01-2019 at 05:50 AM.
 
Old 08-01-2019, 05:55 AM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, arch, ubuntu, others
Posts: 3,433

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
did you rerun
Code:
mkfs.ext4 /dev/sda4
 
Old 08-01-2019, 06:05 AM   #5
paintpenguin
LQ Newbie
 
Registered: Jan 2018
Location: UK
Distribution: Arch
Posts: 24

Original Poster
Rep: Reputation: 3
Sorry, I should clarify that it was about 5 days ago I hit the error, and ended up doing a full reinstall and setting everything up fresh. I'd love to test out a format and run fsck, and I suppose I could, lol, just to know, but I'd need to do all backups and be ready incase program reinstalls needed. I just wondered if there was something I'd got wrong, and hoped to prepare for next time. Sorry for any confusion. I had tried to rerun the command again 5 days ago though, yes.
 
Old 08-01-2019, 07:56 AM   #6
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, arch, ubuntu, others
Posts: 3,433

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
If I'm reading this right, you was wanting to keep your home partition intact and redo the other 3 partitions, with fdisk, delete the other three paritions and then recreate them, not create a new partition table and make 4 new partitions again

Last edited by colorpurple21859; 08-01-2019 at 07:58 AM.
 
Old 08-01-2019, 02:47 PM   #7
paintpenguin
LQ Newbie
 
Registered: Jan 2018
Location: UK
Distribution: Arch
Posts: 24

Original Poster
Rep: Reputation: 3
Thank you. I'm looking up fsck more, so will add commands to notes, to use next time there's a reinstall, and will remember to manage the partitions also.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
aquota.group & aquota.user - reinstall but keeping /home funkytwig Linux - Software 6 03-27-2019 12:13 PM
lostdrivers dell 3450 after attempting an android dule boot.need help with reboot usb 2.o Drivers in bios and reinstall of drivers how and w Cyerdave75 Linux - Newbie 1 12-20-2015 11:24 PM
Any gotchas on fresh install while keeping /home? DJOtaku Fedora 2 01-26-2015 08:04 PM
[SOLVED] Best way to merge /home and / while keeping data on separate volume alanhr Linux - General 2 03-30-2014 02:02 PM
[SOLVED] Reinstall. Access same /home directory as before keeping permissions (UID) intact MaxIBoy Linux - General 4 12-14-2009 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 01:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration