Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fstab help.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 524
Location: Missouri

PostPosted: Sat Oct 28, 2017 4:12 am    Post subject: fstab help. Reply with quote

Hi, I know I'm being quite annoying, but it has been a while since I dealt with Gentoo, however, I'm enjoying it. I'm a bit stuck on how to properly write my fstab. I have gotten hard drive sdd written in good, now I need the rest of them in order to work. Here is the information on the rest:
Code:

Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  525MB  524MB  primary  ntfs         boot
 2      525MB   499GB  499GB  primary  ntfs
 3      499GB   500GB  900MB  primary  ntfs         diag


Model: ATA SAMSUNG HD103SJ (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size   File system  Name  Flags
 1      1049kB  538MB   537MB  fat32              boot, esp
 2      538MB   794MB   256MB  ext2
 3      794MB   1000GB  999GB                     lvm


Model: ATA SAMSUNG HD103SJ (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  106MB   105MB   primary  ntfs         boot
 2      106MB   1000GB  1000GB  primary  ntfs


Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sdd: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name    Flags
 1      1049kB  3146kB  2097kB  ext2            grub    bios_grub
 2      3146kB  137MB   134MB   ext2            boot    boot, esp
 3      137MB   1211MB  1074MB  linux-swap(v1)  swap
 4      1211MB  500GB   499GB   ext4            rootfs


Warning: Unable to open /dev/sr1 read-write (Read-only file system).  /dev/sr1 has been
opened read-only.
Model: Unknown (unknown)                                                 
Disk /dev/sr1: 2278MB
Sector size (logical/physical): 2048B/2048B
Partition Table: mac
Disk Flags:

Number  Start   End     Size    File system  Name   Flags
 1      2048B   10.2kB  8192B                Apple
 3      176kB   33.7MB  33.6MB               EFI
 2      64.9MB  82.7MB  17.8MB               EFI



Model: ATA SAMSUNG HD103SJ (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size   File system  Name  Flags
 1      1049kB  538MB   537MB  fat32              boot, esp
 2      538MB   794MB   256MB  ext2
 3      794MB   1000GB  999GB                     lvm


Model: ATA SAMSUNG HD103SJ (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  106MB   105MB   primary  ntfs         boot
 2      106MB   1000GB  1000GB  primary  ntfs


Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sdd: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name    Flags
 1      1049kB  3146kB  2097kB  ext2            grub    bios_grub
 2      3146kB  137MB   134MB   ext2            boot    boot, esp
 3      137MB   1211MB  1074MB  linux-swap(v1)  swap
 4      1211MB  500GB   499GB   ext4

If someone could walk me through how it needs to look, I would appreciate it!

Todd
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2644

PostPosted: Sat Oct 28, 2017 9:20 am    Post subject: Re: fstab help. Reply with quote

todd93 wrote:
... how to properly write my fstab.

https://forums.gentoo.org/viewtopic-t-1008740-start-2.html :-)

Did you work through the #About_fstab section?
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 524
Location: Missouri

PostPosted: Sat Oct 28, 2017 11:38 am    Post subject: Re: fstab help. Reply with quote

charles17 wrote:
todd93 wrote:
... how to properly write my fstab.

https://forums.gentoo.org/viewtopic-t-1008740-start-2.html :-)

Did you work through the #About_fstab section?


Hi, charles, thanks for your help, I was able to solve it (mostly)! I have the important things mounted now, the only thing that is giving me an issue is my ubuntu drive somehow doesn't have a filesystem. I don't know how ubuntu installed on it without one, but it did. I can figure that out later, though, now on to Grub lol!

Thanks!
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2644

PostPosted: Sat Oct 28, 2017 2:01 pm    Post subject: Reply with quote

Could you post your output of lsblk -o +fstype,label,uuid,partuuid for that device?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13994

PostPosted: Sat Oct 28, 2017 3:49 pm    Post subject: Reply with quote

Which drive is your Ubuntu drive? You listed numerous drives and partitions above, but gave no commentary as to which ones hold which filesystems. Most likely, Ubuntu is installed in a container (such as LVM, which I see you have), and LVM is the object directly on the filesystem. The output charles17 requested would be helpful in determining this.
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 524
Location: Missouri

PostPosted: Sat Oct 28, 2017 4:30 pm    Post subject: Reply with quote

charles17 wrote:
Could you post your output of lsblk -o +fstype,label,uuid,partuuid for that device?


Okay, I have been hitting brick walls all morning. When I try to run the command you give me, I get the following error:

Code:

/ #  lsblk -o +fstype,label,uuid,partuuid /dev/sdb
lsblk: failed to access sysfs directory: /sys/dev/block: No such file or directory


I do know for a fact that it is LVM as it's the only thing LVM on my machine. I'm not sure what I'm doing wrong in order to get the error I got...

Thanks
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43425
Location: 56N 3W

PostPosted: Sat Oct 28, 2017 6:41 pm    Post subject: Reply with quote

todd93,

LVM requires both kernel support and userspace (lvm2) support.

The partitions that are donalet to LVM do not appear in /etc/fstab.
The process is that one or more block devices are donated to a volume group.
The volume group is divided into logical volumes. Its these logical volumes that appear in fstab.

To see logical volumes run
Code:
vgchange -ay
which activate your volume groups.
Look in /dev/mapper.
A logical volume is a slice of a volume group in the same way as a partition is a slice of a HDD.

To have /dev/mapper/ entries in fstab you need to add lvm to the boot runlevel as lvm needs to run before localmount.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum