LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 01:33 PM   #16
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389

Can you post the output of the sudo blkid command?
EDIT: As previously mentioned, using /dev/sdxx as the file system type is not recommended as a file system check at boot up will fail.

My original post gave step by step instructions with examples, you've gone this far and still complaining it can't mount. If you want it to auto mount, don't lie, just follow the instructions to a tee.

Last edited by Brains; 02-03-2017 at 01:40 PM.
 
Old 02-03-2017, 01:55 PM   #17
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
I fixed that.
thanks for the help. The problem I'm having is that when I try to mount lfs using the instructions it still says it can't find /dev/sda2 And there is no long number. I'm using what the output is.
Code:
sudo blkid
then take that and check it against what you have in your fstab to be sure no type'Os and such
 
Old 02-03-2017, 02:04 PM   #18
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
Slackware fstab
Code:
/dev/mmcblk0p1   swap             swap        defaults         0   0
/dev/sda1        /                ext4        defaults         1   1
/dev/sda3        /home            ext4        defaults         1   2

/dev/sdb1        /media/win10user ntfs-3g     fmask=111,dmask=000 1   0
#sdd Data 
#/dev/sda3        /media/data      ext4        defaults        1   2
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/sdb3        /media/winjam    ntfs-3g     defaults   1   3
#/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
Void Linux fstab
Code:
(userx@voider.org⚡️~)>>$ cat /etc/fstab
UUID=89e57b92-7d94-4596-9d21-b921e7b8ba80 / ext4 defaults 0 1
UUID=2fadc5d7-8421-436d-a842-a543cbe20a4f /home ext4 defaults 0 2

UUID=9799b83a-f733-4f65-b4e0-e8e8f419fc20  sw swap  none 0 0 

tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
it works either way.

Last edited by BW-userx; 02-03-2017 at 02:06 PM.
 
Old 02-03-2017, 02:30 PM   #19
Mystified
Member
 
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Original Poster
Rep: Reputation: 20
I can get /mnt/lfs to mount. It's the paramaters for lfs that fail. I'd post the complete output but alt 6 is giving me the be
ginning paragraph symbol. I'm using nano. Not sure what else to do. Please be patient. I'm doing the best I can.

BW-userx, I notice you're using different numbers after defaults. Could that create problems?My /etc/fstab
# / 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

Last edited by Mystified; 02-03-2017 at 02:42 PM.
 
Old 02-03-2017, 02:50 PM   #20
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
it works either way.
And not every system is Debian either. Using device instead of UUID on Debian testing in December gave me more than one problem, the only problem I remember vividly is the first thing that shows up on screen after selecting from grub menu is the error that a file system check was skipped as it could not mount the file system, and it showed up in dmesg. Going back to using UUID fixed this and another issue I had at the time.
But that is the / partition with errors=remount-ro as options in /etc/fstab, which is what the OP should change the options to when they go to boot their creation so the file system check can be done from the OS that works, as well as the creation. For now those options are not necessary.

I have not a clue what Operating system the OP is using as there appears to be a problem providing adequate information.

EDIT: The other problem I had when using device instead of UUID was that I could not mount the partition from another Linux on the same system or from Debian live, likely because of the file system check failure.

Last edited by Brains; 02-03-2017 at 02:58 PM.
 
Old 02-03-2017, 02:58 PM   #21
Mystified
Member
 
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Original Poster
Rep: Reputation: 20
Sorry I'm using a fresh install of Debian. Problem is I didn't install. This is a brand new computer and it came preinstalled. I've installed Debian several times but back then a number of files had to be manually edited. Not sure what it's like now.
 
Old 02-03-2017, 03:11 PM   #22
Mystified
Member
 
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Original Poster
Rep: Reputation: 20
I'm thinking about ditching the idea of installing lfs. Except for my printer everything is working. Problem is I have a lot of spare time and I want something challenging to do. This is a touchscreen and that could be difficult to configure. Any suggestions?
 
Old 02-03-2017, 03:53 PM   #23
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
I'm thinking about ditching the idea of installing lfs. Except for my printer everything is working. Problem is I have a lot of spare time and I want something challenging to do. This is a touchscreen and that could be difficult to configure. Any suggestions?
Set up git and make your first commit (e.g. bugfix) to any linux package you choose.
 
Old 02-03-2017, 03:55 PM   #24
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
I can get /mnt/lfs to mount. It's the paramaters for lfs that fail. I'd post the complete output but alt 6 is giving me the be
ginning paragraph symbol. I'm using nano. Not sure what else to do. Please be patient. I'm doing the best I can.

BW-userx, I notice you're using different numbers after defaults. Could that create problems?My /etc/fstab
# / 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

here a little something to read up on about fstab and what them numbers are used for.



http://www.howtogeek.com/howto/38125...-does-it-work/
 
Old 02-03-2017, 03:57 PM   #25
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 Brains View Post
And not every system is Debian either. Using device instead of UUID on Debian testing in December gave me more than one problem, the only problem I remember vividly is the first thing that shows up on screen after selecting from grub menu is the error that a file system check was skipped as it could not mount the file system, and it showed up in dmesg. Going back to using UUID fixed this and another issue I had at the time.
But that is the / partition with errors=remount-ro as options in /etc/fstab, which is what the OP should change the options to when they go to boot their creation so the file system check can be done from the OS that works, as well as the creation. For now those options are not necessary.

I have not a clue what Operating system the OP is using as there appears to be a problem providing adequate information.

EDIT: The other problem I had when using device instead of UUID was that I could not mount the partition from another Linux on the same system or from Debian live, likely because of the file system check failure.
They must be changing stuff when I used Debian I had no issues with the "old school" way of mounting.

If that is the case for everything Debian not just your system then I am even more happy I left Debian for something else.
 
Old 02-03-2017, 03:59 PM   #26
Mystified
Member
 
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Original Poster
Rep: Reputation: 20
Thanks but I think that's a little ambitious for me. I just installed vb. Problem is I can't use my usb stick. CDs can be a pain.
 
Old 02-03-2017, 04:02 PM   #27
Mystified
Member
 
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by BW-userx View Post
here a little something to read up on about fstab and what them numbers are used for.



http://www.howtogeek.com/howto/38125...-does-it-work/
Definetly will read. Thanks again
 
Old 02-03-2017, 05:10 PM   #28
Mystified
Member
 
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Original Poster
Rep: Reputation: 20
/dev/sda1: LABEL="debian-kde" UUID="f3a3b058-e5a4-49fb-8a04-f7c190e7bec8" TYPE="ext4" PARTUUID="e55dc024-01"
/dev/sda3: UUID="8b050d2d-ddf2-498e-b5a4-be7bc616b1d1" TYPE="ext4" PARTUUID="e55dc024-03"
/dev/sda4: UUID="54ee6d31-6f6e-413d-b4e5-ab82c322d522" TYPE="swap" PARTUUID="e55dc024-04"
/dev/sda2: PARTUUID="e55dc024-02"

Finally
 
Old 02-03-2017, 05:22 PM   #29
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
Code:
/dev/sda1: LABEL="debian-kde" UUID="f3a3b058-e5a4-49fb-8a04-f7c190e7bec8" TYPE="ext4" PARTUUID="e55dc024-01"

/dev/sda3: UUID="8b050d2d-ddf2-498e-b5a4-be7bc616b1d1" TYPE="ext4" PARTUUID="e55dc024-03"

/dev/sda4: UUID="54ee6d31-6f6e-413d-b4e5-ab82c322d522" TYPE="swap" PARTUUID="e55dc024-04"

/dev/sda2: PARTUUID="e55dc024-02"
Finally
now you need to learn html code blocks [ code ] [ /code ] with no spaces ...


/dev/sda2: PARTUUID="e55dc024-02" is missing the rest of it... it is just showing the partition UUID, interesting.

look at and post results of
Code:
fdisk -l /dev/sda
I'm curious how that drive is partitioned out.

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 ?

and out put of fstab

Code:
cat /etc/fstab

Last edited by BW-userx; 02-03-2017 at 05:27 PM.
 
Old 02-03-2017, 05:37 PM   #30
Mystified
Member
 
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by BW-userx View Post
now you need to learn html code blocks [ code ] [ /code ] with no spaces ...


/dev/sda2: PARTUUID="e55dc024-02" is missing the rest of it... it is just showing the partition UUID, interesting.

look at and post results of
Code:
fdisk -l /dev/sda
I'm curious how that drive is partitioned out.

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 ?

and out put of fstab

[code]



cat /etc/fstab
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.

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, thet 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

Last edited by Mystified; 02-03-2017 at 05:41 PM.
 
  


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
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:46 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