LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-03-2017, 05:54 PM   #31
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242

Quote:
Originally Posted by Mystified View Post
Believe it or not I was an admin for a long time on mandrivausers.org. I did updates and pieced together mods using php which I had to figure out on my own.
Don't feel bad I'm still learning myself ....

Quote:
Originally Posted by Mystified View Post
I'm not kidding when I say I'm rusty' I've forgotten a lot!
Code:
Device     Boot      Start        End    Sectors   Size Id Type
/dev/sda1  *          2048   29296639   29294592    14G 83 Linux
/dev/sda2         29296640   58593279   29296640    14G 83 Linux
/dev/sda3         58593280 1933592575 1874999296 894.1G 83 Linux
/dev/sda4       1933592576 1953523711   19931136   9.5G 82 Linux swap / Solaris
When I had it installed I told them I wanted some extra blank partitions, they gave me one and a separate /home

The reason t's out of order is because it wasn't there at all and I put it there.

Code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=f3a3b058-e5a4-49fb-8a04-f7c190e7bec8 /               ext4  defaults 0       1
# /home was on /dev/sda3 during installation
#UUID=8b050d2d-ddf2-498e-b5a4-be7bc616b1d1 /home           ext4    defaults        0       2
# swap was on /dev/sda4 during installation
UUID=54ee6d31-6f6e-413d-b4e5-ab82c322d522 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
UUID=e55dc00204	 /mnt/lfs	   ext4	 defaults	   0	 1
#/dev/sda2 /mnt/lfs  ext4 defaults 0 1
How did you put that partition there? maybe you did a oops.

do you know how to use gparted? what is dev/sda2 being used for , anything?
can you delete it then reestablish it using gparted?
 
Old 02-03-2017, 09:59 PM   #32
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Obviously a partition exists, doesn't look like it's formatted.
 
Old 02-03-2017, 10:42 PM   #33
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally Posted by BW-userx View Post

/dev/sda2: PARTUUID="e55dc024-02" is missing the rest of it... it is just showing the partition UUID, interesting.
It's missing a filesystem is what it's missing, otherwise it would show a TYPE= line.
 
Old 02-04-2017, 01:27 AM   #34
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by BW-userx View Post
it too is out of sequence. 1 , 3 , 4 , 2 like someone deleted then added a partition or partitioned you hard drive in half then added two more partitions off what space was on sda1 some how screwing up sda2 ?
In a UEFI system, the partitions are in the order they are created, not in the order they are on the disk, and this partition scheme is not GPT, but apparently following that order.

@ goumba
So.... what you are saying is basically what I'm saying, just using different wording?
Thanks for the help, it's needed.
 
1 members found this post helpful.
Old 02-04-2017, 05:42 AM   #35
Mystified
Member
 
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by BW-userx View Post
Don't feel bad I'm still learning myself ....


How did you put that partition there? maybe you did a oops.

do you know how to use gparted? what is dev/sda2 being used for , anything?
can you delete it then reestablish it using gparted?
No I've never used it. I always partitioned during installation.
i know I've explained this but in case someone missed it I bought this computer from linuxlaptops and they partitioned and it's supposed to be ext4. There's nothing on the partition and yes I could edit fstab and remove if that's what you mean.

thanks

Last edited by Mystified; 02-04-2017 at 05:45 AM.
 
Old 02-04-2017, 06:36 AM   #36
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally Posted by Brains View Post
@ goumba
So.... what you are saying is basically what I'm saying, just using different wording?
Thanks for the help, it's needed.
Sorry, I hadn't seen your post when I posted, didn't mean to step on you. Call it lack of sleep.
 
Old 02-04-2017, 06:57 AM   #37
Mystified
Member
 
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Original Poster
Rep: Reputation: 20
I found this through google.
Code:
/sbin/mkfs -t ext3 /dev/sdb1
I know I would use ext4 and sda2 but is this correct?
 
Old 02-04-2017, 07:05 AM   #38
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally Posted by Mystified View Post
I found this through google.
Code:
/sbin/mkfs -t ext3 /dev/sdb1
I know I would use ext4 and sda2 but is this correct?
yes, what you posted above, as well as

Code:
/sbin/mkfs.ext4 /dev/sdb
and

Code:
/sbin/mke2fs -t ext4 /dev/sdb
are all synonymous. You'll see different variations all over the net. They all do the same thing. On Debian, at least, mkfs.* are symlinks to mke2fs.

Last edited by goumba; 02-04-2017 at 10:09 AM. Reason: corrected a typo, thanks to hydrurga for pointing it out.
 
Old 02-04-2017, 07:18 AM   #39
Mystified
Member
 
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Original Poster
Rep: Reputation: 20
Ok so nothing is simple. both said no such file or directory. I went to /sbin and found mke2fs

I tried running it again and got

Code:
command not found
 
Old 02-04-2017, 07:30 AM   #40
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Mystified View Post
Ok so nothing is simple. both said no such file or directory. I went to /sbin and found mke2fs

I tried running it again and got

Code:
command not found
Can you please paste here the exact command that you tried running, along with its error output.
 
Old 02-04-2017, 07:34 AM   #41
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Something's definitely wrong here. I noticed you said you bought the system, and Debian was preinstalled. Perhaps something is broken. I don't know how they installed Debian.

Try this:

Code:
apt-get update
apt-get install --reinstall e2fsprogs e2fslibs
That will reinstall the programs for dealing with ext*. Reboot, just to be safe. Then give it another shot.
 
Old 02-04-2017, 07:35 AM   #42
Mystified
Member
 
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Original Poster
Rep: Reputation: 20
I worked this time! Back to the beginning

Thanks

Last edited by Mystified; 02-04-2017 at 07:39 AM.
 
Old 02-04-2017, 07:43 AM   #43
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
After a long reply on how to fix, I noticed the typo

Last edited by goumba; 02-04-2017 at 07:45 AM.
 
Old 02-04-2017, 07:44 AM   #44
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally Posted by Mystified View Post
I worked this time! Back to the beginning

Thanks
What did you do that fixed it?

NVM, didn't see typo, sleep dep sucks.

Dude, you edited out your typo, now it looks like I'm talking to myself.

Last edited by goumba; 02-04-2017 at 10:00 AM.
 
Old 02-04-2017, 07:59 AM   #45
Mystified
Member
 
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by goumba View Post
What did you do that fixed it?

NVM, didn't see typo, sleep dep sucks.
I ran
Code:
mkefs -t -ext4 /dev/sda2
then I checked /etc/fstab. It was there!

Thanks again for all the patience and help. It's greatly appreciated.
 
  


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
Editing Fstab linda Linux - General 4 09-03-2006 01:59 PM
editing /etc/fstab Mad Malc Linux - Newbie 6 09-19-2005 01:25 AM
editing the fstab nkoplm Linux - Newbie 1 06-30-2005 02:21 AM
Editing fstab jodef Yoper 4 11-27-2004 09:06 AM
editing the etc/fstab firefightin4fun Linux - Newbie 8 09-20-2003 10:53 PM

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

All times are GMT -5. The time now is 06:23 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
Open Source Consulting | Domain Registration