LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
anon026
Member
 
Registered: Jan 2018
Posts: 33

Rep: Reputation: Disabled
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 anon026; 08-01-2019 at 04:41 AM.
 
Old 08-01-2019, 05:08 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
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
anon026
Member
 
Registered: Jan 2018
Posts: 33

Original Poster
Rep: Reputation: Disabled
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 anon026; 08-01-2019 at 05:50 AM.
 
Old 08-01-2019, 05:55 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
did you rerun
Code:
mkfs.ext4 /dev/sda4
 
Old 08-01-2019, 06:05 AM   #5
anon026
Member
 
Registered: Jan 2018
Posts: 33

Original Poster
Rep: Reputation: Disabled
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
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
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
anon026
Member
 
Registered: Jan 2018
Posts: 33

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-16-2019, 10:20 AM   #8
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi paintpenguin,

As with colorpurple21859, I am not 100% clear on what you've done or are trying to do.

That said, you seem to be trying to mount a partition with no file system on it. You can't do that. Mounting requires a file system. So when you say you stopped short of "formatting" your home partition (/dev/sda4), that is the explanation for the error message you are receiving.

Other than that, it would be best if you more fully described your objective if you need further assistance.

Cheers,


***EDIT *** Apologies - I just realized the last post in this thread is several months old.

Last edited by Rickkkk; 11-16-2019 at 10:21 AM.
 
  


Reply



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 03:50 AM.

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
Open Source Consulting | Domain Registration